GLSA-201803-02 : util-linux: User-assisted execution of arbitrary code

high Nessus Plugin ID 107200

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-201803-02 (util-linux: User-assisted execution of arbitrary code)

It was discovered that the umount bash-completion as provided by util-linux does not escap mount point paths.
Impact :

An attacker controlling a volume label could entice a user with privileges to mount/umount filesystems to use umount command with auto completion, possibly resulting in execution of arbitrary code with root privileges.
Workaround :

Disable Bash-completion or remove “/usr/share/bash-completion/completions/umount”.

Solution

All util-linux users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-apps/util-linux-2.30.2-r1'

See Also

https://security.gentoo.org/glsa/201803-02

Plugin Details

Severity: High

ID: 107200

File Name: gentoo_GLSA-201803-02.nasl

Version: 1.3

Type: local

Published: 3/8/2018

Updated: 9/4/2018

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

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

CVSS v3

Risk Factor: High

Base Score: 7.8

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

Vulnerability Information

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

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

Patch Publication Date: 3/7/2018

Reference Information

CVE: CVE-2018-7738

GLSA: 201803-02