PT-2017-4212 · Gnu+5 · Gnu C Library+5

Aurelien Jarno

·

Published

2016-12-27

·

Updated

2024-06-15

·

CVE-2017-16997

CVSS v2.0

9.3

High

VectorAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GNU C Library versions 2.19 through 2.26
Description The issue is related to the fillin rpath and decompose rpath functions in the GNU C Library, which mishandle RPATH and RUNPATH containing $ORIGIN for privileged programs. This allows a local user to gain privileges via a Trojan horse library in the current working directory. The problem is associated with the misinterpretation of an empty RPATH/RUNPATH token as the "./" directory. It is noted that this configuration of RPATH/RUNPATH for a privileged program is apparently very uncommon.
Recommendations For GNU C Library versions 2.19 through 2.26, consider restricting the use of the fillin rpath and decompose rpath functions until a patch is available. As a temporary workaround, avoid using RPATH and RUNPATH containing $ORIGIN for privileged programs to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Untrusted Search Path

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2016-2499
ALT-PU-2017-2833
BDU:2022-05945
CESA-2018_3092
CVE-2017-16997
MGASA-2018-0096
MGASA-2018-0098
OPENSUSE-SU-2018_0089-1
OPENSUSE-SU-2024:10792-1
RHSA-2018:3092
RHSA-2018_3092
SUSE-SU-2018:0074-1
USN-3534-1

Affected Products

Alt Linux
Centos
Gnu C Library
Red Hat
Suse
Ubuntu