Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-4911

HIGH 7.8ExploitedPoCEPSS 100%

Glibc: buffer overflow in ld.so leading to privilege escalation

Also known as EDB-52479

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

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)

Vulnerability facts

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 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
Fixed in
glibc 2.39
Exploited in the wild
Yes: in CISA KEV since 2023-11-21; federal due date 2023-12-12
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
72.60% chance of exploitation in 30 days (percentile 100, 2026-11-26)
CWE
CWE-122
Published
Modified

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

Package / productAffectedFixedSource
glibc>= 2.34, < 2.39—cvelist
Red Hat Enterprise Linux 8all versions—cvelist
Red Hat Enterprise Linux 8all versions—cvelist
Red Hat Enterprise Linux 8.6 Extended Update Supportall versions—cvelist
Red Hat Enterprise Linux 9all versions—cvelist
Red Hat Enterprise Linux 9all versions—cvelist
Red Hat Enterprise Linux 9.0 Extended Update Supportall versions—cvelist
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8all versions—cvelist
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8all versions—cvelist
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8all versions—cvelist
Red Hat Enterprise Linux 6——cvelist
Red Hat Enterprise Linux 7——cvelist
Red Hat Enterprise Linux 7——cvelist

Timeline

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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors