GLSA-201705-15 : sudo: Privilege escalation

Medium Nessus Plugin ID 100523

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201705-15 (sudo: Privilege escalation)

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.
For further information, please see the Qualys Security Advisory Impact :

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 Workaround :

There is no known workaround at this time.

Solution

All sudo users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-admin/sudo-1.8.20_p1'

See Also

http://www.nessus.org/u?b66177f6

https://security.gentoo.org/glsa/201705-15

Plugin Details

Severity: Medium

ID: 100523

File Name: gentoo_GLSA-201705-15.nasl

Version: 3.11

Type: local

Published: 2017/05/31

Updated: 2019/04/10

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.9

Temporal Score: 5.4

Vector: CVSS2#AV:L/AC:M/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

CVSS v3.0

Base Score: 6.4

Temporal Score: 5.8

Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:sudo, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2017/05/30

Reference Information

CVE: CVE-2017-1000367

GLSA: 201705-15