CVE-2017-16997
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.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | glibc | Fixed | 2.23-0ubuntu10 | UBUNTU-CVE-2017-16997 |
| Ubuntu 14.04 | eglibc | Fixed | 2.19-0ubuntu6.14 | UBUNTU-CVE-2017-16997 |
| Debian 14 | glibc | Fixed | 2.25-6 | DEBIAN-CVE-2017-16997 |
| Debian 13 | glibc | Fixed | 2.25-6 | DEBIAN-CVE-2017-16997 |
| Debian 12 | glibc | Fixed | 2.25-6 | DEBIAN-CVE-2017-16997 |
| Red Hat Enterprise Linux 8 | compat-libpthread-nonshared | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-all-langpacks | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-benchtests | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-common | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-gconv-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-headers | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-aa | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-af | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-agr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ak | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-am | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-an | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-anp | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ar | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-as | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ast | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ayc | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-az | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-be | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bem | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ber | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bg | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bhb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bho | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-br | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-brx | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-bs | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-byn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ca | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ce | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-chr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-cmn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-crh | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-cs | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-csb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-cv | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-cy | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-da | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-de | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-doi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-dsb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-dv | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-dz | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-el | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-en | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-eo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-es | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-et | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-eu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fa | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ff | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fil | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fur | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-fy | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ga | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-gd | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-gez | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-gl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-gu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-gv | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ha | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hak | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-he | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hif | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hne | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hsb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ht | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-hy | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ia | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-id | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ig | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ik | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-is | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-it | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-iu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ja | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ka | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kab | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kk | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-km | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ko | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kok | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ks | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ku | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-kw | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ky | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lg | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-li | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lij | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ln | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lt | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lv | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-lzh | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mag | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mai | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mfe | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mg | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mhr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-miq | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mjw | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mk | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ml | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mni | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ms | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-mt | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-my | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nan | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nb | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nds | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ne | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nhn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-niu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-nso | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-oc | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-om | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-or | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-os | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-pa | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-pap | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-pl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ps | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-pt | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-quz | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-raj | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ro | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ru | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-rw | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sa | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sah | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sat | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sc | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sd | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-se | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sgs | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-shn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-shs | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-si | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sid | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sk | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sm | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-so | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sq | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ss | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-st | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sv | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-sw | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-szl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ta | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tcy | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-te | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tg | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-th | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-the | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ti | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tig | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tk | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tl | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tn | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-to | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tpi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tr | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ts | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-tt | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ug | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-uk | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-unm | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ur | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-uz | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-ve | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-vi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-wa | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-wae | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-wal | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-wo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-xh | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-yi | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-yo | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-yue | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-yuw | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-zh | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-langpack-zu | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-locale-source | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-minimal-langpack | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-nss-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-static | Not affected | ||
| Red Hat Enterprise Linux 8 | glibc-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | libnsl | Not affected | ||
| Red Hat Enterprise Linux 8 | nscd | Not affected | ||
| Red Hat Enterprise Linux 8 | nss_db | Not affected | ||
| Red Hat Enterprise Linux 8 | nss_hesiod | Not affected | ||
| Red Hat Enterprise Linux 7 | compat-glibc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | compat-glibc-headers | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | glibc | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-common | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-debuginfo-common | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-devel | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-headers | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-static | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | glibc-utils | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 7 | nscd | Fixed | 0:2.17-260.el7 | RHSA-2018:3092 |
| Red Hat Enterprise Linux 6 | compat-glibc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | compat-glibc-headers | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc-headers | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glibc-utils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | nscd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | compat-glibc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | glibc | Will not fix Will not fix |
What the vendor says
As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- glibc 2.19 through 2.26: affected: glibc 2.19 through 2.26
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:3092 (vendor-advisory)
- https://access.redhat.com/errata/RHBA-2019:0327 (vendor-advisory)
References
- https://sourceware.org/bugzilla/show_bug.cgi?id=22625
- http://www.securityfocus.com/bid/102228
- https://sourceware.org/ml/libc-alpha/2017-12/msg00528.html
- https://bugs.debian.org/884615
- https://access.redhat.com/errata/RHSA-2018:3092
- https://access.redhat.com/errata/RHBA-2019:0327
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.