Skip to content
Threat Brief

← All advisories

CVE-2023-4911

High 7.8KEV · exploitedPublic exploitFix status unknown

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

Record last updated

CVSS score

7.8

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

64%

Higher than 99% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

1075days overdue

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

VendorProductAffected versionsFixed inPer
GNUGNU C LibraryNot documentedNot documentedCISA KEV
Red HatRed Hat Enterprise Linux 6 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (unaffected)0:2.28-225.el8_8.6Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (unaffected)0:2.28-225.el8_8.6Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support (unaffected)0:2.28-189.6.el8_6Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:2.34-60.el9_2.7Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:2.34-60.el9_2.7Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.0 Extended Update Support (unaffected)0:2.34-28.el9_0.4Not documentedCVE Program
Red HatRed Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected)0:2.28-189.6.el8_6Not documentedCVE Program
Red HatRed Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected)0:4.5.3-10.el8evNot documentedCVE Program
Red HatRed Hat Virtualization 4 for Red Hat Enterprise Linux 8 (unaffected)0:4.5.3-202312060823_8.6Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

  2. 21 Nov 2023KEV

    Added to the CISA Known Exploited Vulnerabilities catalog

    Source: CISA KEV (opens in a new tab)

  3. 21 Nov 2023Exploitation

    Exploitation confirmed by CISA KEV

    Source: CISA KEV (opens in a new tab)

Vendor guidance and references

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.