Skip to content
OpenAdvisories
Unscored Public exploit CVE-2017-16997 EUVD-2017-8165GHSA-q5m3-4jcg-c4rf

elf/dl-load.c in the GNU C Library (aka glibc or libc6) 2.19 through 2.26 mishandles RPATH and RUNPATH containing $ORIGIN for a privileged …

Published Dec 18, 2017 · Updated Aug 5, 2024 · Assigned by debian

Description

elf/dl-load.c in the GNU C Library (aka glibc or libc6) 2.19 through 2.26 mishandles RPATH and RUNPATH containing $ORIGIN for a privileged (setuid or AT_SECURE) program, which allows local users to gain privileges via a Trojan horse library in the current working directory, related to the fillin_rpath and decompose_rpath functions. This is associated with misinterpretion of an empty RPATH/RUNPATH token as the "./" directory. NOTE: this configuration of RPATH/RUNPATH for a privileged program is apparently very uncommon; most likely, no such program is shipped with any common Linux distribution.

Affected products

VendorProductAffectedFixed
— glibc 2.19 through 2.26 glibc 2.19 through 2.26 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glibc 2.25-6 —
Debian 13 glibc 2.25-6 —
Debian 12 glibc 2.25-6 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS glibc 2.23-0ubuntu10 USN-3534-1
Ubuntu 14.04 LTS eglibc 2.19-0ubuntu6.14 USN-3534-1
ReleasePackageFixed inAdvisory
RHEL 7 nscd +7 2.17-260.el7 RHSA-2018:3092
ReleasePackageFixed inAdvisory
SLES 12 SP3 glibc 2.22-62.3.4 SUSE-SU-2018:0074-1
SLES 12 SP2 glibc 2.22-62.3.4 SUSE-SU-2018:0074-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 glibc 2.22-62.3.4 SUSE-SU-2018:0074-1
SLES for SAP 12 SP2 glibc 2.22-62.3.4 SUSE-SU-2018:0074-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.34-1.2 openSUSE-SU-2024:10792-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 nscd +6 2.17-260.0.9.el7 ELSA-2018-3092

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References