GLSA-201612-14 : util-linux: Arbitrary code execution

High Nessus Plugin ID 95547

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-201612-14 (util-linux: Arbitrary code execution)

A command injection flaw was discovered in util-linux’s “blkid”
utility. It uses caching files (/dev/.blkid.tab or /run/blkid/blkid.tab) to store info about the UUID, LABEL etc. it finds on certain devices.
However, it does not strip ‘”’ character, so it can be confused to build variable names containing shell metacharacters, which it would usually encode inside the value.
Impact :

A local attacker could create a specially crafted partition label containing arbitrary code which would get executed when the “blkid”
utility processes that value.
Workaround :

There is no known workaround at this time.

Solution

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

See Also

https://security.gentoo.org/glsa/201612-14

Plugin Details

Severity: High

ID: 95547

File Name: gentoo_GLSA-201612-14.nasl

Version: Revision: 2.3

Type: local

Published: 2016/12/06

Updated: 2018/01/29

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 7.2

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

CVSS v3.0

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: p-cpe:/a:gentoo:linux:util-linux, cpe:/o:gentoo:linux

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

Patch Publication Date: 2016/12/06

Reference Information

CVE: CVE-2014-9114

GLSA: 201612-14