cve.bz

CVE-2024-2961 Out-of-bounds Write

7.3 highExploitEPSS 88%

High (7.3). EPSS 88% estimated probability of exploitation activity in the next 30 days.

On this page
The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 bytes when converting strings to the ISO-2022-CN-EXT character set, which may be used to crash an application or overwrite a neighbouring variable.

Severity

CVSS 3.1

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

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-2961 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-2961?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-2961?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-2024-2961 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The GNU C Library glibcfrom 2.1.93 before 2.40

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10glibc2.28-10+deb10u3DLA-3807-1
Debian11glibc2.31-13+deb11u9DSA-5673-1
Debian12glibc2.36-9+deb12u6DEBIAN-CVE-2024-2961 DSA-5673-1
Debian13, 14glibc2.37-18DEBIAN-CVE-2024-2961
Ubuntu20.04:LTSglibc2.31-0ubuntu9.15UBUNTU-CVE-2024-2961 USN-6737-1
Ubuntu22.04:LTSglibc2.35-0ubuntu3.7UBUNTU-CVE-2024-2961 USN-6737-1
Ubuntu24.04:LTSglibc2.39-0ubuntu8.1UBUNTU-CVE-2024-2961 USN-6737-2
UbuntuPro:14.04:LTSeglibc2.19-0ubuntu6.15+esm3UBUNTU-CVE-2024-2961 USN-6762-1
UbuntuPro:16.04:LTSglibc2.23-0ubuntu11.3+esm6UBUNTU-CVE-2024-2961 USN-6762-1
UbuntuPro:18.04:LTSglibc2.27-3ubuntu1.6+esm2UBUNTU-CVE-2024-2961 USN-6762-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationnscd, glibc, glibc-devel and 6 more0:2.17-326.el7_9.3RHSA-2024:3588
Red Hatenterprise_linux:7::computenodeglibc-static, glibc-debuginfo, glibc-debuginfo-common0:2.17-326.el7_9.3RHSA-2024:3588
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-236.el8_9.13RHSA-2024:2722
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-251.el8_10.1RHSA-2024:3269
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-236.el8_9.13RHSA-2024:2722
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-251.el8_10.1RHSA-2024:3269
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-236.el8_9.13RHSA-2024:2722
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-251.el8_10.1RHSA-2024:3269
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-100.el9_4.2RHSA-2024:3339
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-100.el9_4.2RHSA-2024:3339
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-100.el9_4.2RHSA-2024:3339
Red Hatrhel_aus:8.2::appstreamglibc-utils, glibc-debuginfo, glibc-debuginfo-common and 1 more0:2.28-101.el8_2.2RHSA-2024:3464
16 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 14 moreglibc2.31-150300.74.1SUSE-SU-2024:1375-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2glibc2.26-150000.13.73.1SUSE-SU-2024:1977-1
SUSELinux Enterprise Live Patching 15 SP4, Linux Enterprise Live Patching 15 SP5glibc-livepatches0.1-150400.3.3.1SUSE-SU-2024:1805-1
SUSELinux Enterprise Server 11 SP4 LTSS EXTREME COREglibc2.11.3-17.110.52.1SUSE-SU-2024:1728-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5glibc2.22-114.34.1SUSE-SU-2024:1675-1
SUSELinux Micro 6.0glibc2.38-7.1SUSE-SU-2025:20038-1
SUSEPackage Hub 15 SP6phpMyAdmin5.2.2-bp156.4.3.1openSUSE-SU-2025:0081-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4glibc2.31-150300.74.1SUSE-SU-2024:1375-1
openSUSELeap 15.6phpMyAdmin5.2.2-bp156.4.3.1openSUSE-SU-2025:0081-1
openSUSETumbleweedglibc2.39-5.1openSUSE-SU-2024:13877-1
openSUSETumbleweedphpMyAdmin5.2.2-1.1openSUSE-SU-2025:14688-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-236.el8_9.13ALSA-2024:2722
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-251.el8_10.1ALSA-2024:3269
AlmaLinux9nscd, glibc, libnsl and 212 more2.34-100.el9_4.2ALSA-2024:3339
Rocky Linux8glibc0:2.28-236.el8_9.13RLSA-2024:2722
Rocky Linux8glibc0:2.28-251.el8_10.11RLSA-2024:3269
Rocky Linux9glibc0:2.34-100.el9_4.2RLSA-2024:3339
Alpaquita23glibc2.37.0-r11BELL-CVE-2024-2961
Alpaquitastreamglibc2.37.0-r12BELL-CVE-2024-2961
BellSoft Hardened Containers23glibc2.37.0-r11BELL-CVE-2024-2961
BellSoft Hardened Containersstreamglibc2.37.0-r12BELL-CVE-2024-2961

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; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The described vulnerability in the iconv() function of GNU C Library, particularly affecting ISO-2022-CN-EXT character set conversions, poses a important severity issue due to its potential for out-of-bound writes. Such buffer overflows can lead to arbitrary memory corruption, which can be exploited by attackers to execute arbitrary code, crash applications, or overwrite critical data structures, including neighboring variables. Given that the overflow can occur with specific, predictable values through SS2designation and SS3designation escape sequences, an attacker could craft malicious input to specifically trigger these overflows. Exploitation of this vulnerability could result in denial of service, privilege escalation, or even remote code execution, posing a significant threat to the security and integrity of affected systems.

Red Hat's mitigation

This issue can be mitigated by removing the ISO-2022-CN-EXT from glibc-gconv-extra's modules configuration. This can be done by:

1) Verify if the module is loaded by running:

~~~

$ iconv -l | grep -E 'CN-?EXT'

ISO-2022-CN-EXT//

ISO2022CNEXT//

~~~

If the grep output looks like the above, ISO-2022-CN-EXT module is enabled.

2) Disabled the module by editing the file located at /usr/lib64/gconv/gconv-modules.d/gconv-modules-extra.conf and comment the following lines. For RHEL 7 the file that needs to be edited is /usr/lib64/gconv/gconv-modules. This step requires to be executed by a privileged user:

~~~

# from to module cost

alias ISO2022CNEXT// ISO-2022-CN-EXT//

module ISO-2022-CN-EXT// INTERNAL ISO-2022-CN-EXT 1

module INTERNAL ISO-2022-CN-EXT// ISO-2022-CN-EXT 1

~~~

For commenting those lines just add the '#' character at the beginning of mentioned lines:

~~~

# from to module cost

#alias ISO2022CNEXT// ISO-2022-CN-EXT//

#module ISO-2022-CN-EXT// INTERNAL ISO-2022-CN-EXT 1

#module INTERNAL ISO-2022-CN-EXT// ISO-2022-CN-EXT 1

~~~

3) Update the iconv cache by running:

~~~

sudo iconvconfig

~~~

4) Check if the module was disabled by running the first step again. This time ISO-2022-CN-EXT should not appear in the output.

Please notice that disabling the mentioned gconv module may lead applications relying in the affected module to fail in converting characters and should be used as a temporary mitigation before being able to fully update the affected package.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7glibc-0:2.17-326.el7_9.3Fixed 2024-06-04RHSA-2024:3588
Red Hat Enterprise Linux 8glibc-0:2.28-236.el8_9.13Fixed 2024-05-07RHSA-2024:2722
Red Hat Enterprise Linux 8glibc-0:2.28-251.el8_10.1Fixed 2024-05-22RHSA-2024:3269
Red Hat Enterprise Linux 8.2 Advanced Update Supportglibc-0:2.28-101.el8_2.2Fixed 2024-05-29RHSA-2024:3464
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportglibc-0:2.28-151.el8_4.2Fixed 2024-05-23RHSA-2024:3309
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceglibc-0:2.28-151.el8_4.2Fixed 2024-05-23RHSA-2024:3309
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsglibc-0:2.28-151.el8_4.2Fixed 2024-05-23RHSA-2024:3309
Red Hat Enterprise Linux 8.6 Extended Update Supportglibc-0:2.28-189.10.el8_6Fixed 2024-05-09RHSA-2024:2799
Red Hat Enterprise Linux 8.8 Extended Update Supportglibc-0:2.28-225.el8_8.11Fixed 2024-05-23RHSA-2024:3312
Red Hat Enterprise Linux 9glibc-0:2.34-100.el9_4.2Fixed 2024-05-23RHSA-2024:3339
Red Hat Enterprise Linux 9.0 Extended Update Supportglibc-0:2.34-28.el9_0.6Fixed 2024-05-28RHSA-2024:3423
Red Hat Enterprise Linux 9.2 Extended Update Supportglibc-0:2.34-60.el9_2.14Fixed 2024-05-28RHSA-2024:3411
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202410010038-0Fixed 2024-10-09RHSA-2024:7590
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202410081857-0Fixed 2024-10-16RHSA-2024:7939
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202410112148-0Fixed 2024-10-23RHSA-2024:8235
Red Hat Enterprise Linux 10glibcNot affected
Red Hat Enterprise Linux 6compat-glibcNot affected
Red Hat Enterprise Linux 6glibcOut of support scope
Red Hat Enterprise Linux 6nss_dbOut of support scope
Red Hat Enterprise Linux 7compat-glibcNot affected
9 more in the JSON and on Red Hat's page.

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-2024-2961.

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

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. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET EXPLOIT glibc iconv Abitrary File Read RCE (CVE-2024-2961) sid 2056446

References

Check your stackJSON