CVE-2017-16997
glibc: Incorrect handling of RPATH in elf/dl-load.c can be used to execute code loaded from arbitrary libraries
Overview
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-426
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 17 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | glibc +6 | 2.17-260.0.9.el7 |
Red Hat 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | compat-glibc +1 | wont fix | — |
| 7 | glibc +6 | 0:2.17-260.el7 | RHSA-2018:3092 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | glibc | 2.25-6 |
| 12 | glibc | 2.25-6 |
| 13 | glibc | 2.25-6 |
| 14 | glibc | 2.25-6 |
| 9 | glibc | 2.24-11+deb9u4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| glibc | 2.25-6 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | glibc +11 | 2.34-1.2 | openSUSE-SU-2024:10792-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-glibc | 2.25-6 |
| 12 | rootio-glibc | 2.25-6 |
| 13 | rootio-glibc | 2.25-6 |
seal Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | glibc +1 | 2.28-164.0.5.el8_5.3+sp999 |
| 8 | glibc +1 | 2.28-251.el8_10.11+sp999 |
| 8 | glibc +1 | 2.28-251.el8_10.14+sp999 |
| 9 | glibc +1 | 2.34-125.el9_5.1+sp999 |
References
- www.securityfocus.com http://www.securityfocus.com/bid/102228
- access.redhat.com https://access.redhat.com/errata/RHBA-2019:0327
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3092
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-16997
- bugs.debian.org https://bugs.debian.org/884615
- linux.oracle.com https://linux.oracle.com/cve/CVE-2017-16997.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2018-3092.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-16997
- sourceware.org https://sourceware.org/bugzilla/show_bug.cgi?id=22625
- sourceware.org https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.