# CVE-2023-4911: Glibc: buffer overflow in ld.so leading to privilege escalation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2023-11-21; federal due date 2023-12-12
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 72.60% (percentile 100, 2026-11-26)
- **CWE:** CWE-122
- **Aliases:** EDB-52479
- **Published:** 2023-10-03T17:25:08.434Z
- **Modified:** 2026-11-07T12:17:39.143Z

## Who should check

- Anyone running glibc \>= 2.34, \< 2.39
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 8.6 Extended Update Support all versions
- Anyone running Red Hat Enterprise Linux 9 all versions
- Anyone running Red Hat Enterprise Linux 9.0 Extended Update Support all versions
- Anyone running Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 6 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 7 (versions: see the vendor advisory)

## 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.

## Affected and fixed versions

- glibc: \>= 2.34, \< 2.39 (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Extended Update Support: all versions (cvelist)
- Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 6: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)

## Mitigation

- Upgrade glibc to 2.39 or later.
- Vendor workaround: 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 external compiling server can be used to sign the generated kernel module with a key enrolled into the kernel's keyring or starting with SystemTap 4.7 you can sign a module without a compile server. See further information here - https://www.redhat.com/sysadmin/secure-boot-systemtap

## Timeline

- 2023-10-03: Published
- 2023-11-21: Added to CISA KEV (exploited in the wild)
- 2023-12-12: CISA remediation due date for US federal agencies
- 2026-11-07: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-4911. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-4911.md
Affected: glibc >= 2.34, < 2.39; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.6 Extended Update Support all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.0 Extended Update …
Fixed in: glibc 2.39

Steps:
1. Search this machine and project for glibc, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.6 Extended Update Support, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.0 Extended Update Support, Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-4911 being exploited?

Yes. CISA lists CVE-2023-4911 in its Known Exploited Vulnerabilities catalog since 2023-11-21, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 72.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-4911?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-4911?

glibc \>= 2.34, \< 2.39; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.6 Extended Update Support all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.0 Extended Update Support all versions; Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 all versions; Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 all versions; Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 7.

### Is there a fix for CVE-2023-4911?

Yes. Fixed in glibc 2.39. Upgrade glibc to 2.39 or later. Vendor workaround: 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 external compiling server can be used to sign the generated kernel module with a key enrolled into the kernel's keyring or starting with SystemTap 4.7 you can sign a module without a compile server. See further information here - https://www.redhat.com/sysadmin/secure-boot-systemtap

### How do I check if I'm affected by CVE-2023-4911?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2023:5453>
- vendor: <https://access.redhat.com/errata/RHSA-2023:5454>
- vendor: <https://access.redhat.com/errata/RHSA-2023:5455>
- vendor: <https://access.redhat.com/errata/RHSA-2023:5476>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0033>
- patch: <https://bugzilla.redhat.com/show_bug.cgi?id=2238352>
- exploit: <https://www.qualys.com/2023/10/03/cve-2023-4911/looney-tunables-local-privilege-escalation-glibc-ld-so.txt>
- exploit: <https://www.exploit-db.com/exploits/52479>
- exploit: <http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html>
- exploit: <http://packetstormsecurity.com/files/176288/Glibc-Tunables-Privilege-Escalation.html>
- exploit: <http://seclists.org/fulldisclosure/2023/Oct/11>
- exploit: <http://www.openwall.com/lists/oss-security/2023/10/03/2>
- other: <https://access.redhat.com/security/cve/CVE-2023-4911>
- other: <https://www.qualys.com/cve-2023-4911/>
- other: <http://www.openwall.com/lists/oss-security/2023/10/03/3>
- other: <http://www.openwall.com/lists/oss-security/2023/10/05/1>
- other: <http://www.openwall.com/lists/oss-security/2023/10/13/11>
- other: <http://www.openwall.com/lists/oss-security/2023/10/14/3>
- other: <http://www.openwall.com/lists/oss-security/2023/10/14/5>
- other: <http://www.openwall.com/lists/oss-security/2023/10/14/6>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/>
- other: <https://security.gentoo.org/glsa/202310-03>
- other: <https://security.netapp.com/advisory/ntap-20231013-0006/>
- other: <https://www.debian.org/security/2023/dsa-5514>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-4911>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-831302.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-4911>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/52479>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2023-4911> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-4911>
