CVE-2017-16997: Critical severity GNU glibc vulnerability

Published 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 ATSECURE) program, which allows local users to gain privileges via a Trojan horse library in the current working directory, related to the fillinrpath and decomposerpath 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.

Other sources

Incorrect handling of RPATH (or RUNPATH) in elf/dl-load.c could be used to run executables with libraries loaded from the current directory. Executables with ATSECURE or SETUID that contain '$ORIGIN' in RPATH/RUNPATH could be used to run arbitrary code and lead to escalation of privileges.

This vulnerability was introduced in glibc version 2.19.

References: https://sourceware.org/bugzilla/showbug.cgi?id=22625 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884615 http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16997

Red Hat

Affected Software

12 affected componentsFixes available
redhat/glibc<2.25.1
2.25.1
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
debian/glibc
2.31-13+deb11u112.31-13+deb11u132.36-9+deb12u132.36-9+deb12u72.41-12+deb13u12.42-13

Event History

Dec 17, 2017
Data Sourced
via Debian·05:36 PM
SeverityAffected Software
Dec 18, 2017
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
DescriptionWeakness
Data Sourced
via NVD·01:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 5, 2024
Data Sourced
via Launchpad·12:40 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:17 PM
RemedyDescriptionSeverityAffected Software
Feb 21, 2026
Data Sourced
via Debian·03:20 PM
Description

Frequently Asked Questions

1

What is CVE-2017-16997?

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.

2

How severe is CVE-2017-16997?

CVE-2017-16997 has a severity rating of 7.8 (Critical).

3

Which software versions are affected by CVE-2017-16997?

Versions of glibc from 2.19 to 2.26 are affected by CVE-2017-16997.

4

How can I fix 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.

5

Where can I find more information about CVE-2017-16997?

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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203