summaryrefslogtreecommitdiff
blob: bbe749e941919573939c583b7d8381b8a9188391 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201705-15">
  <title>sudo: Privilege escalation</title>
  <synopsis>A vulnerability in sudo allows local users to gain root privileges.</synopsis>
  <product type="ebuild">sudo,privilege</product>
  <announced>2017-05-30</announced>
  <revised count="4">2017-10-10</revised>
  <bug>620182</bug>
  <access>local</access>
  <affected>
    <package name="app-admin/sudo" auto="yes" arch="*">
      <unaffected range="ge">1.8.20_p1</unaffected>
      <vulnerable range="lt">1.8.20_p1</vulnerable>
    </package>
  </affected>
  <background>
    <p>sudo (su “do”) allows a system administrator to delegate authority
      to give certain users (or groups of users) the ability to run some (or
      all) commands as root or another user while providing an audit trail of
      the commands and their arguments.
    </p>
  </background>
  <description>
    <p>Qualys discovered a vulnerability in sudo’s get_process_ttyname() for
      Linux, that via sudo_ttyname_scan() can be directed to use a
      user-controlled, arbitrary tty device during its traversal of “/dev”
      by utilizing the world-writable /dev/shm.
    </p>
    
    <p>For further information, please see the Qualys Security Advisory</p>
  </description>
  <impact type="high">
    <p>A local attacker can pretend that his tty is any character device on the
      filesystem, and after two race conditions, an attacker can pretend that
      the controlled tty is any file on the filesystem allowing for privilege
      escalation
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All sudo users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=app-admin/sudo-1.8.20_p1"
    </code>
    
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-1000367">
      CVE-2017-1000367
    </uri>
    <uri link="https://www.qualys.com/2017/05/30/cve-2017-1000367/cve-2017-1000367.txt">
      Qualys Security Advisory for CVE-2017-1000367
    </uri>
  </references>
  <metadata tag="requester" timestamp="2017-05-30T07:27:08Z">K_F</metadata>
  <metadata tag="submitter" timestamp="2017-10-10T00:11:49Z">K_F</metadata>
</glsa>