CVE-2023-4911
High 7.8KEV · exploitedPublic exploitFix status unknownGlibc: buffer overflow in ld.so leading to privilege escalation
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 99% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 1075 days ago for U.S. federal agencies
Description
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
Weakness: CWE-122
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- For customers who cannot update immediately and do not have Secure Boot feature enabled, the issue can be mitigated using the provided SystemTap script with the following steps. When enabled, any setuid program invoked with GLIBC_TUNABLES in the environment will be terminated immediately. To invoke the setuid program, users will then have to unset or clear the GLIBC_TUNABLES envvar, e.g. `GLIBC_TUNABLES= sudo` . Note that these mitigation steps will need to be repeated if the system is rebooted. 1) Install required systemtap packages and dependencies as per - https://access.redhat.com/solutions/5441 2) Create the following systemtap script, and name it stap_block_suid_tunables.stp: ~~~ function has_tunable_string:long() { name = "GLIBC_TUNABLES" mm = @task(task_current())->mm; if (mm) { env_start = @mm(mm)->env_start; env_end = @mm(mm)->env_end; if (env_start != 0 && env_end != 0) while (env_end > env_start) { cur = user_string(env_start, ""); env_name = tokenize(cur, "="); if (env_name == name && tokenize("", "") != "") return 1; env_start += strlen (cur) + 1 } } return 0; } probe process("/lib*/ld*.so*").function("__tunables_init") { atsecure = 0; /* Skip processing if we can't read __libc_enable_secure, e.g. core dump handler (systemd-cgroups-agent and systemd-coredump). */ try { atsecure = @var("__libc_enable_secure"); } catch { printk (4, sprintf ("CVE-2023-4911: Skipped check: %s (%d)", execname(), pid())); } if (atsecure && has_tunable_string ()) raise (9); } ~~~ 3) Load the systemtap module into the running kernel: ~~~ stap -g -F -m stap_block_suid_tunables stap_block_suid_tunables.stp ~~~ 4) Ensure the module is loaded: ~~~ lsmod | grep -i stap_block_suid_tunables stap_block_suid_tunables 249856 0 ~~~ 5) Once the glibc package is updated to the version containing the fix, the systemtap generated kernel module can be removed by running: ~~~ rmmod stap_block_suid_tunables ~~~ If Secure Boot is enabled on a system, the SystemTap module must be signed. An exte… Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| GNU | GNU C Library | Not documented | Not documented | CISA KEV |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 0:2.28-225.el8_8.6 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (unaffected) | 0:2.28-225.el8_8.6 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support (unaffected) | 0:2.28-189.6.el8_6 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:2.34-60.el9_2.7 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:2.34-60.el9_2.7 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support (unaffected) | 0:2.34-28.el9_0.4 | Not documented | CVE Program |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected) | 0:2.28-189.6.el8_6 | Not documented | CVE Program |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected) | 0:4.5.3-10.el8ev | Not documented | CVE Program |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected) | 0:4.5.3-202312060823_8.6 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
21 Nov 2023KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
21 Nov 2023Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Vendor guidance and references
- RHSA-2023:5453 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2023:5454 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2023:5455 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2023:5476 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:0033 (opens in a new tab)vendor-advisory, x_refsource_redhat, x_transferred
- https://access.redhat.com/security/cve/cve-2023-4911, (opens in a new tab)vendor-advisory
- https://sourceware.org/git/?p=glibc.git (opens in a new tab)vendor-advisory
- https://www.debian.org/security/2023/dsa-5514 (opens in a new tab)vendor-advisory, x_transferred
- http://seclists.org/fulldisclosure/2023/Oct/11 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/03/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/03/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/05/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/13/11 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/5 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/6 (opens in a new tab)x_transferred
- https://access.redhat.com/security/cve/CVE-2023-4911 (opens in a new tab)vdb-entry, x_refsource_redhat, x_transferred
- RHBZ#2238352 (opens in a new tab)issue-tracking, x_refsource_redhat, x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html (opens in a new tab)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/ (opens in a new tab)x_transferred
- https://nvd.nist.gov/vuln/detail/CVE-2023-4911 (opens in a new tab)government
- https://security.gentoo.org/glsa/202310-03 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20231013-0006/ (opens in a new tab)x_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-4911 (opens in a new tab)government-resource
- https://www.qualys.com/2023/10/03/cve-2023-4911/looney-tunables-local-privilege-escalation-glibc-ld-so.txt (opens in a new tab)x_transferred
- https://www.qualys.com/cve-2023-4911/ (opens in a new tab)x_transferred
Public exploit code
Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.