summaryrefslogtreecommitdiff
blob: 978da950b49a5f579e00aebb661a9b8e48d22325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201612-02">
  <title>DavFS2: Local privilege escalation</title>
  <synopsis>A vulnerability in DavFS2 allows local users to gain root
    privileges.
  </synopsis>
  <product type="ebuild">davfs2</product>
  <announced>2016-12-02</announced>
  <revised count="1">2016-12-02</revised>
  <bug>485232</bug>
  <access>local</access>
  <affected>
    <package name="net-fs/davfs2" auto="yes" arch="*">
      <unaffected range="ge">1.5.2</unaffected>
      <vulnerable range="lt">1.5.2</vulnerable>
    </package>
  </affected>
  <background>
    <p>DavFS2 is a file system driver that allows you to mount a WebDAV server
      as a local disk drive.
    </p>
  </background>
  <description>
    <p>DavFS2 installs “/usr/sbin/mount.davfs” as setuid root. This utility
      uses “system()” to call “/sbin/modprobe”.
    </p>
    
    <p>While the call to “modprobe” itself cannot be manipulated, a local
      authenticated user can set the “MODPROBE_OPTIONS” environment
      variable to pass a user controlled path, allowing the loading of an
      arbitrary kernel module.
    </p>
  </description>
  <impact type="normal">
    <p>A local user could gain root privileges.</p>
  </impact>
  <workaround>
    <p>The system administrator should ensure that all modules the
      “mount.davfs” utility tries to load are loaded upon system boot
      before any local user can call the utility.
    </p>
    
    <p>An additional defense measure can be implemented by enabling the Linux
      kernel module signing feature. This assists in the prevention of
      arbitrary modules being loaded.
    </p>
  </workaround>
  <resolution>
    <p>All DavFS2 users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=net-fs/davfs2-1.5.2"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2013-4362">CVE-2013-4362</uri>
  </references>
  <metadata tag="requester" timestamp="2015-12-07T21:54:18Z">
    BlueKnight
  </metadata>
  <metadata tag="submitter" timestamp="2016-12-02T13:32:55Z">whissi</metadata>
</glsa>