First published: Sun Dec 17 2017(Updated: )
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.
Credit: security@debian.org security@debian.org
Affected Software | Affected Version | How to fix |
---|---|---|
GNU glibc | =2.19 | |
GNU glibc | =2.20 | |
GNU glibc | =2.21 | |
GNU glibc | =2.22 | |
GNU glibc | =2.23 | |
GNU glibc | =2.25 | |
GNU glibc | =2.26 | |
Redhat Enterprise Linux Desktop | =7.0 | |
Redhat Enterprise Linux Server | =7.0 | |
Redhat Enterprise Linux Workstation | =7.0 | |
redhat/glibc | <2.25.1 | 2.25.1 |
debian/glibc | 2.31-13+deb11u11 2.31-13+deb11u10 2.36-9+deb12u8 2.36-9+deb12u7 2.40-3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-16997 is a vulnerability in the GNU C Library (glibc or libc6) that mishandles RPATH and RUNPATH, allowing local users to gain privileges via a Trojan horse library.
CVE-2017-16997 has a severity rating of 7.8 (Critical).
Versions of glibc from 2.19 to 2.26 are affected by CVE-2017-16997.
Update glibc to version 2.28-10+deb10u1 or later, 2.31-13+deb11u6 or later, or 2.36-9+deb12u2 or later.
More information about CVE-2017-16997 can be found at the following references: [SecurityFocus](http://www.securityfocus.com/bid/102228), [Red Hat Advisory RHBA-2019:0327](https://access.redhat.com/errata/RHBA-2019:0327), [Red Hat Advisory RHSA-2018:3092](https://access.redhat.com/errata/RHSA-2018:3092).