cve.bz

CVE-2021-46195 gnu gcc: Uncontrolled Recursion

5.5 mediumExploit referenceEPSS 0.9%

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

On this page
GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c. This vulnerability allows attackers to cause a Denial of Service (DoS) by consuming excessive CPU and memory resources.

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
0.9% (unchanged from 0.9% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th 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-2021-46195 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-46195?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-46195?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-2021-46195 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-2021-46195

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

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:gcc12.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14binutils2.37.90.20220207-1DEBIAN-CVE-2021-46195
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moregcc-11no fix listedUBUNTU-CVE-2021-46195
Red Hatenterprise_linux:9::crbmingw-gcc, mingw32-cpp, mingw32-gcc and 26 more0:12.0.1-11.2.el9RHSA-2022:8415
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
AlmaLinux9mingw32-cpp, mingw32-gcc, mingw64-cpp and 5 more12.0.1-11.2.el9ALSA-2022:8415

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been rated as having a security impact of Low. The problem is only triggered when deliberately corrupt input is passed to a tool that attempts to demangle symbol names. Normal users should never encounter this problem.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9mingw-gcc-0:12.0.1-11.2.el9Fixed 2022-11-15RHSA-2022:8415
Red Hat Enterprise Linux 10gccFix deferred
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 8gccNot affected
Red Hat Enterprise Linux 8gcc-toolset-10-gccNot affected
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
27 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-2021-46195.

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