cve.bz

CVE-2022-27943 Uncontrolled Recursion

5.5 mediumExploit referenceEPSS 1.0%

Medium (5.5). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
libiberty/rust-demangle.c in GNU GCC 11.2 allows stack consumption in demangle_const, as demonstrated by nm-new.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. 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-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

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

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-2022-27943](https://cve.bz/cve/badge/CVE-2022-27943.svg)](https://cve.bz/cve/CVE-2022-27943)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:gcc11.2
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14gcc-12no fix listedDEBIAN-CVE-2022-27943
Ubuntu14.04:LTSgcc-mingw-w64no fix listedUBUNTU-CVE-2022-27943
Ubuntu16.04:LTSgcc-3.3, gcc-4.7, gcc-avr and 14 moreno fix listedUBUNTU-CVE-2022-27943
Ubuntu18.04:LTSgcc-avr, gcc-opt, gcc-msp430 and 7 moreno fix listedUBUNTU-CVE-2022-27943
Ubuntu20.04:LTSgcc-avr, gcc-opt, gcc-msp430 and 6 moreno fix listedUBUNTU-CVE-2022-27943
Ubuntu22.04:LTSgdb, gcc-11, gcc-12 and 10 moreno fix listedUBUNTU-CVE-2022-27943
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moregcc-11, gcc-12, gcc-avr and 4 moreno fix listedUBUNTU-CVE-2022-27943
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 18 morebinutils2.39-150100.7.40.1SUSE-SU-2022:4146-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 5 morebinutils2.39-9.50.1SUSE-SU-2022:4277-1
SUSELinux Enterprise Software Development Kit 12 SP5binutils, cross-ppc-binutils, cross-spu-binutils2.39-9.50.1SUSE-SU-2022:4277-1
openSUSELeap 15.3, Leap 15.4binutils, cross-rx-binutils, cross-arm-binutils and 19 more2.39-150100.7.40.1SUSE-SU-2022:4146-1
openSUSETumbleweedbinutils2.39-2.1openSUSE-SU-2024:12631-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

The issue is classified as low severity primarily because binutils is not typically exposed to untrusted inputs in most environments, limiting its exploitation potential. The stack overflow in demangle_const() only triggers during the parsing of malformed ELF files, which would require an attacker to convince a user to process a malicious file with it. Moreover, binutils does not handle privileged operations, meaning exploitation is unlikely to lead to system compromise or escalation of privileges. Additionally, the impact is localized to the application itself, without affecting the broader system or network security.

This vulnerability is due to a flaw in libiberty. Neither libgcc nor libstdc++ include the affected code. Consequently, neither of those libraries are affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6compat-gcc-295Out of support scope
Red Hat Enterprise Linux 6compat-gcc-296Out of support scope
Red Hat Enterprise Linux 6compat-gcc-32Out of support scope
Red Hat Enterprise Linux 6compat-gcc-34Out of support scope
Red Hat Enterprise Linux 6gccOut of support scope
Red Hat Enterprise Linux 7compat-gcc-32Out of support scope
Red Hat Enterprise Linux 7compat-gcc-34Out of support scope
Red Hat Enterprise Linux 7compat-gcc-44Out of support scope
Red Hat Enterprise Linux 7gccOut of support scope
Red Hat Enterprise Linux 8gccFix deferred
Red Hat Enterprise Linux 8gcc-toolset-10-gccFix deferred
Red Hat Enterprise Linux 8gcc-toolset-11-gccFix deferred
Red Hat Enterprise Linux 9gccFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-core-bff-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
26 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-2022-27943.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC 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.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

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

References

Check your stackJSON