CVE-2017-1000366
glibc contains a vulnerability that allows specially crafted LD_LIBRARY_PATH values to manipulate the heap/stack, causing them to alias, potentially resulting in arbitrary code execution. Please note that additional hardening changes have been made to glibc to prevent manipulation of stack and heap memory but these issues are not directly exploitable, as such they have not been given a CVE. This affects glibc 2.25 and earlier.
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-0ubuntu9 | UBUNTU-CVE-2017-1000366 |
| Ubuntu 14.04 | eglibc | Fixed | 2.19-0ubuntu6.13 | UBUNTU-CVE-2017-1000366 |
| Debian 14 | glibc | Fixed | 2.24-12 | DEBIAN-CVE-2017-1000366 |
| Debian 13 | glibc | Fixed | 2.24-12 | DEBIAN-CVE-2017-1000366 |
| Debian 12 | glibc | Fixed | 2.24-12 | DEBIAN-CVE-2017-1000366 |
| Red Hat Enterprise Linux 7 | glibc | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-common | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-debuginfo-common | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-devel | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-headers | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-static | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | glibc-utils | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 7 | nscd | Fixed | 0:2.17-157.el7_3.4 | RHSA-2017:1481 |
| Red Hat Enterprise Linux 6 | glibc | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-common | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-debuginfo-common | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-devel | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-headers | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-static | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | glibc-utils | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 6 | nscd | Fixed | 0:2.12-1.209.el6_9.2 | RHSA-2017:1480 |
| Red Hat Enterprise Linux 4 | glibc | Will not fix Will not fix |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2017:1712 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1479 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1480 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1567 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1481 (vendor-advisory)
- http://www.debian.org/security/2017/dsa-3887 (vendor-advisory)
References
- https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt
- http://www.securitytracker.com/id/1038712
- https://www.exploit-db.com/exploits/42275/
- https://access.redhat.com/errata/RHSA-2017:1712
- https://www.suse.com/security/cve/CVE-2017-1000366/
- https://access.redhat.com/errata/RHSA-2017:1479
- https://access.redhat.com/errata/RHSA-2017:1480
- http://www.securityfocus.com/bid/99127
- https://www.exploit-db.com/exploits/42276/
- https://www.suse.com/support/kb/doc/?id=7020973
- https://access.redhat.com/errata/RHSA-2017:1567
- https://www.exploit-db.com/exploits/42274/
- https://access.redhat.com/security/cve/CVE-2017-1000366
- https://access.redhat.com/errata/RHSA-2017:1481
- http://www.debian.org/security/2017/dsa-3887
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.