cve.bz

CVE-2023-4911 GNU C Library Buffer Overflow Vulnerability

7.8 highKEVExploitEPSS 64%Fix available

High (7.8) in GNU GNU C Library. In CISA KEV since 2023-11-21. EPSS 64% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
64% (unchanged from 64% a week ago; 64% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2023-11-21, due 2023-12-12
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:2.28-225.el8_8.6
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support: fixed in 0:2.28-189.6.el8_6
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:2.34-60.el9_2.7
  • Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support: fixed in 0:2.34-28.el9_0.4
  • Red Hat Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: fixed in 0:2.28-189.6.el8_6
  • Red Hat Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: fixed in 0:4.5.3-10.el8ev
  • Red Hat Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: fixed in 0:4.5.3-202312060823_8.6
  • Debian, Ubuntu, Red Hat, openSUSE, AlmaLinux, Rocky Linux, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release
  • Patch: https://bugzilla.redhat.com/show_bug.cgi?id=2238352

Ask an AI about this CVE

Show the promptExplain CVE-2023-4911 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4911?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4911?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-4911 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-4911

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-4911](https://cve.bz/cve/badge/CVE-2023-4911.svg)](https://cve.bz/cve/CVE-2023-4911)

HTML:

<a href="https://cve.bz/cve/CVE-2023-4911"><img src="https://cve.bz/cve/badge/CVE-2023-4911.svg" alt="CVE-2023-4911"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:2.28-225.el8_8.6
Red Hat Enterprise Linux 8.6 Extended Update Support0:2.28-189.6.el8_6
Red Hat Enterprise Linux 90:2.34-60.el9_2.7
Red Hat Enterprise Linux 9.0 Extended Update Support0:2.34-28.el9_0.4
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:2.28-189.6.el8_6
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.5.3-10.el8ev
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.5.3-202312060823_8.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11glibc2.31-13+deb11u7DSA-5514-1
Debian12glibc2.36-9+deb12u3DEBIAN-CVE-2023-4911 DSA-5514-1
Debian13, 14glibc2.37-12DEBIAN-CVE-2023-4911
Ubuntu22.04:LTSglibc2.35-0ubuntu3.4UBUNTU-CVE-2023-4911 USN-6409-1
Ubuntu24.04:LTSglibc2.38-1ubuntu6UBUNTU-CVE-2023-4911
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-225.el8_8.6RHSA-2023:5455
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-225.el8_8.6RHSA-2023:5455
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-225.el8_8.6RHSA-2023:5455
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-60.el9_2.7RHSA-2023:5453
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-60.el9_2.7RHSA-2023:5453
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-60.el9_2.7RHSA-2023:5453
Red Hatrhel_eus:8.6::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 9 more0:2.28-189.6.el8_6RHSA-2023:5476
Red Hatrhel_eus:8.6::baseosnscd, glibc, libnsl and 215 more0:2.28-189.6.el8_6RHSA-2023:5476
Red Hatrhel_eus:8.6::crbnss_hesiod, glibc-static, nscd-debuginfo and 11 more0:2.28-189.6.el8_6RHSA-2023:5476
Red Hatrhel_eus:9.0::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-28.el9_0.4RHSA-2023:5454
Red Hatrhel_eus:9.0::baseosnscd, glibc, libnsl and 212 more0:2.34-28.el9_0.4RHSA-2023:5454
Red Hatrhel_eus:9.0::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-28.el9_0.4RHSA-2023:5454
3 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedglibc2.38-4.1openSUSE-SU-2024:13294-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-225.el8_8.6ALSA-2023:5455
AlmaLinux9nscd, glibc, libnsl and 212 more2.34-60.el9_2.7ALSA-2023:5453
Rocky Linux8glibc0:2.28-225.el8_8.6RLSA-2023:5455
Azure Linux2glibc2.35-5AZL-31117
Azure Linux3glibc2.38-6AZL-34733
Alpaquita23, streamglibc2.37.0-r6BELL-CVE-2023-4911
BellSoft Hardened Containers23, streamglibc2.37.0-r6BELL-CVE-2023-4911

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability was introduced in glibc version 2.34. RHEL-8 ships glibc 2.28, which is not originally affected by this vulnerability. However, the commit that introduced this vulnerability was backported to RHEL-8.5, making this version and onward vulnerable. RHEL-8.4 and older are not affected by this vulnerability.

Red Hat's 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 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

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8glibc-0:2.28-225.el8_8.6Fixed 2023-10-05RHSA-2023:5455
Red Hat Enterprise Linux 8.6 Extended Update Supportglibc-0:2.28-189.6.el8_6Fixed 2023-10-05RHSA-2023:5476
Red Hat Enterprise Linux 9glibc-0:2.34-60.el9_2.7Fixed 2023-10-05RHSA-2023:5453
Red Hat Enterprise Linux 9.0 Extended Update Supportglibc-0:2.34-28.el9_0.4Fixed 2023-10-05RHSA-2023:5454
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8glibc-0:2.28-189.6.el8_6Fixed 2023-10-05RHSA-2023:5476
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-release-virtualization-host-0:4.5.3-10.el8evFixed 2024-01-03RHSA-2024:0033
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.5.3-202312060823_8.6Fixed 2024-01-03RHSA-2024:0033
Red Hat Enterprise Linux 6glibcNot affected
Red Hat Enterprise Linux 7compat-glibcNot affected
Red Hat Enterprise Linux 7glibcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-4911.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-162-05Siemens SIMATIC S7-1500 CPU family2025-06-10EnergySIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-166-10Siemens SIMATIC S7-1500 TM MFP BIOS2023-06-13MultipleSIMATIC S7-1500 TM MFP - BIOSnone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON