CVE-2023-4911: GNU C Library Buffer Overflow Vulnerability
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBCTUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBCTUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
Other sources
glibc could allow a local authenticated attacker to gain elevated privileges on the system, caused by a buffer overflow in the dynamic loader's processing of the GLIBCTUNABLES environment variable. By sending overly long data, an attacker could exploit this vulnerability to gain root privileges on the system.
— IBM
Glibc: buffer overflow in ld.so leading to privilege escalation
— Microsoft
GNU C Library's dynamic loader ld.so contains a buffer overflow vulnerability when processing the GLIBCTUNABLES environment variable, allowing a local attacker to execute code with elevated privileges.
— CISA
Researchers discovered a vulnerability in the GNU C Library's dynamic loader (ld.so). This vulnerability was introduced in April 2021 (glibc 2.34) by the following commit: https://sourceware.org/git?p=glibc.git;a=commit;h=2ed18c5b534d9e92fc006202a5af0df6b72e7aca
Per researchers this vulnerability is exploitable by any local user and can lead to privilege escalation when combined with almost any SUID-root binaries.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.35-0ubuntu3.4 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.37-0ubuntu2.1 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.38-1ubuntu6 - Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.28-10+deb10u1Fixed in 2.28-10+deb10u2Fixed in 2.31-13+deb11u7Fixed in 2.36-9+deb12u3Fixed in 2.37-12Fixed in 2.37-13 - Upgrade
Upgrade
redhat/glibcto a version that resolves this vulnerability.Fixed in 2.39 - Compensating control
Mitigate CVE-2023-4911 by applying mitigations per vendor instructions; if mitigations are unavailable, discontinue use of the product.
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is CVE-2023-4911?
CVE-2023-4911 is a vulnerability in the GNU C Library's dynamic loader ld.so, which allows a local attacker to escalate privileges on the system.
What is the severity of CVE-2023-4911?
CVE-2023-4911 has a severity score of 7.8 (High).
How does CVE-2023-4911 affect glibc?
CVE-2023-4911 affects glibc versions 2.35-0ubuntu3.4 and 2.37-0ubuntu2.1 on Ubuntu, and versions 2.28-10+deb10u1, 2.28-10+deb10u2, 2.31-13+deb11u7, and 2.36-9+deb12u3 on Debian.
How can a local attacker exploit CVE-2023-4911?
A local attacker can exploit CVE-2023-4911 by using maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission, allowing them to execute arbitrary code.
How can I fix CVE-2023-4911?
To fix CVE-2023-4911, update glibc to the recommended versions provided by the vendor or distribution, such as version 2.35-0ubuntu3.4 for Ubuntu or version 2.31-13+deb11u7 for Debian.