CVE-2017-15804
Critical · 9.8CVSS
9.8
EPSS
2.8%
Published
Oct 22, 2017
CISA due date
—
Cloudanix analysis
A bug in a fundamental system library lets attackers potentially take full control of computers by sending specially crafted names that start with a tilde.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Buffer overflow in the glob function during unescaping of usernames prefixed with the ~ operator, resulting in memory corruption that can lead to arbitrary code execution.
Why it matters to the business
Remote compromise of affected systems can lead to full system takeover, data exfiltration, or denial of service; the vulnerability affects a Kubernetes CSI component with low but non-zero exploitation probability and requires prompt package update to avoid operational disruption.
How an attack unfolds
An attacker supplies crafted input containing a username string beginning with ~ to an application that invokes glibc's glob function; the overflow occurs during unescaping before 2.27, allowing memory corruption and potential code execution without authentication.
How to fix it
Upgrade eks-distro-kubernetes-csi-external-resizer-1.9 to version 1.9.0-r7 which incorporates the glibc fix; rebuild or redeploy containers with patched glibc >= 2.27 where possible.
How to confirm the fix worked
Verify package version is 1.9.0-r7 or newer; confirm glibc version >= 2.27 via ldd or package manager; test glob behavior with crafted ~user inputs in a controlled environment to ensure no overflow occurs.
Typical attack path
- Locate services or binaries linked against glibc versions before 2.27 that call glob on untrusted input containing ~user patterns
- Craft and deliver a malicious username string via network request or local interface that reaches the glob call
- Trigger the buffer overflow to corrupt memory and achieve code execution or crash
How to detect it
Review application logs for crashes or unexpected behavior during filename globbing operations; examine process memory dumps or core files for signs of overflow when ~user patterns are processed; no known in-the-wild exploitation artifacts exist.
What your security team should do
- Apply the fixed package version 1.9.0-r7 immediately due to critical CVSS and memory corruption impact
- Scan container images and runtime environments for vulnerable glibc versions
- Monitor for any new exploit maturity indicators given stable but non-zero EPSS
The record
The glob function in glob.c in the GNU C Library (aka glibc or libc6) before 2.27 contains a buffer overflow during unescaping of user names with the ~ operator.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | glibc | 0 | 2.25-3 |
| Debian:11 | glibc | 0 | 2.25-3 |
| Debian:12 | glibc | 0 | 2.25-3 |
| Debian:13 | glibc | 0 | 2.25-3 |
| Mageia:5 | glibc | 0 | 2.20-26.mga5 |
| Mageia:5 | libtirpc | 0 | 0.2.5-3.3.mga5 |
| Mageia:6 | glibc | 0 | 2.22-26.mga6 |
| Mageia:6 | libtirpc | 0 | 1.0.1-5.1.mga6 |
| Red Hat:enterprise_linux:6::client | glibc | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-debuginfo | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-debuginfo-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-devel | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-headers | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-static | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | glibc-utils | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::client | nscd | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-debuginfo | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-debuginfo-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-devel | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-headers | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-static | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | glibc-utils | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::computenode | nscd | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-debuginfo | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-debuginfo-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-devel | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-headers | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-static | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | glibc-utils | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::server | nscd | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-debuginfo | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-debuginfo-common | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-devel | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-headers | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-static | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | glibc-utils | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:6::workstation | nscd | 0 | 0:2.12-1.212.el6 |
| Red Hat:enterprise_linux:7::client | glibc | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-debuginfo | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-debuginfo-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-devel | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-headers | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-static | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | glibc-utils | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::client | nscd | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-debuginfo | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-debuginfo-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-devel | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-headers | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-static | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | glibc-utils | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::computenode | nscd | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-debuginfo | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-debuginfo-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-devel | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-headers | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-static | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | glibc-utils | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::server | nscd | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-debuginfo | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-debuginfo-common | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-devel | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-headers | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-static | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | glibc-utils | 0 | 0:2.17-222.el7 |
| Red Hat:enterprise_linux:7::workstation | nscd | 0 | 0:2.17-222.el7 |
| SUSE:Linux Enterprise Desktop 12 SP2 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Desktop 12 SP3 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Server 11 SP4 | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | glibc | 0 | 2.19-40.16.950 |
| SUSE:Linux Enterprise Server 12 SP2 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Server 12 SP3 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Server 12-LTSS | glibc | 0 | 2.19-22.27.958 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | glibc | 0 | 2.19-40.16.950 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | glibc | 0 | 2.11.3-17.110.19.2 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | glibc | 0 | 2.22-62.3.4 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | glibc | 0 | 2.22-62.3.4 |
| Ubuntu:14.04:LTS | eglibc | 0 | 2.19-0ubuntu6.14 |
| Ubuntu:16.04:LTS | glibc | 0 | 2.23-0ubuntu10 |
| Ubuntu:18.04:LTS | glibc | 0 | 2.27-3ubuntu1 |
Related vulnerabilities
- CVE-2021-35942 The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read… Also affects glibc
- CVE-2021-3326 The iconv function in the GNU C Library (aka glibc or libc6) 2.32 and earlier, when… Also affects glibc
- CVE-2020-1752 A use-after-free vulnerability introduced in glibc upstream version 2.14 was found in the… Also affects glibc
- CVE-2020-10029 The GNU C Library (aka glibc or libc6) before 2.32 could overflow an on-stack buffer… Also affects glibc
- CVE-2017-15671 The glob function in glob.c in the GNU C Library (aka glibc or libc6) before 2.27, when… Also affects glibc
- CVE-2017-15670 The GNU C Library (aka glibc or libc6) before 2.27 contains an off-by-one error leading… Also affects glibc
- CVE-2015-5180 res_query in libresolv in glibc before 2.25 allows remote attackers to cause a denial of… Also affects glibc
- CVE-2015-8985 The pop_fail_stack function in the GNU C Library (aka glibc or libc6) allows… Also affects glibc