CVE-2021-46195
No exploitation reported by the sources we read.
- Published2022-01-14
- WeaknessCWE-674
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2022-01-1420:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.0 | = 12.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- binutilsSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 2.39-9.50.1
- binutilsSUSE:OpenStack Cloud 9all versions · fixed in 2.39-9.50.1
- binutilsSUSE:Manager Server 4.1all versions · fixed in 2.39-150100.7.40.1
- binutilsSUSE:Manager Retail Branch Server 4.1all versions · fixed in 2.39-150100.7.40.1
- binutilsSUSE:Manager Proxy 4.1all versions · fixed in 2.39-150100.7.40.1
- binutilsSUSE:Linux Enterprise Software Development Kit 12 SP5all versions · fixed in 2.39-9.50.1and 2 other packages
- binutilsSUSE:Linux Enterprise Server for SAP Applications 15 SP2all versions · fixed in 2.39-150100.7.40.1
- binutilsSUSE:Linux Enterprise Server for SAP Applications 15 SP1all versions · fixed in 2.39-150100.7.40.1
37 more package ranges on OSV.dev
Vendor advisories
gcc: uncontrolled recursion in libiberty/rust-demangle.c
cpp as a component of Red Hat Enterprise Linux 10 · gcc-c++ as a component of Red Hat Enterprise Linux 10 · gcc-gfortran as a component of Red Hat Enterprise Linux 10 · +152 more
Siemens SIMATIC S7-1500
SIMATIC 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) · +2 more
SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more
Red Hat Security Advisory: mingw-gcc security and bug fix update
Fix
- Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
- Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
- Vendor fix Red Hat Product Security RHSA-2022:8415 · 113 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
- No fix available, says the vendor Red Hat Product Security CVE-2021-46195 · 76 productsFix deferred
- No fix planned, says the vendor Red Hat Product Security CVE-2021-46195 · 79 productsOut of support scope
Advisories and patches
- gcc.gnu.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-10-08
- NVDCVSS 3.15.5read 2026-10-23
- NVDCVSS 2.04.3read 2026-10-23
- NVDweakness (CWE)CWE-674read 2026-10-23
- FIRST EPSSEPSS score0.9 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2021-32895same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-gr6j-4vhj-c665same flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:8415advisory covering several CVEsAlmaLinux · MIT
- openSUSE-SU-2024:12631-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:8415advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2022:4146-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:4277-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Published
- 2022-01-14
- Last Modified
- 2026-10-14
- NVD status
- Modified
- GitHub Advisory
- GHSA-gr6j-4vhj-c665
Frequently asked questions
What is CVE-2021-46195?
Is CVE-2021-46195 actively exploited?
What is the CVSS score for CVE-2021-46195?
Running gcc? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2021-3826same product
- CVE-2023-4039same product
- CVE-2022-27943same product
- CVE-2026-95619same product
- CVE-2026-114691same productGcc: integer wrap in `std
- CVE-2026-102010same product
- CVE-2026-115455same productGcc: stack overflow in std::bitset on libstdc++
- CVE-2026-114690same productGcc: confirmed out-of-bounds read/write in libstdc++ parallel `std
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-gr6j-4vhj-c665
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0