Skip to content
Fencer Vulns
medium 5.5

CVE-2021-46195 json

GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c.

published 2022-01-14 4 y ago modified 2026-10-14 26 d ago also EUVD-2021-32895

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 58%
public exploits
0
none known

Summary

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.

Patch / fix

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
  • binutils Debian 14, Debian 13, Debian 12 2.37.90.20220207-1

debian advisories DEBIAN-CVE-2021-46195

  • mingw-gcc RHEL 9 12.0.1-11.2.el9
  • mingw32-cpp RHEL 9 12.0.1-11.2.el9
  • mingw32-gcc RHEL 9 12.0.1-11.2.el9
  • mingw64-cpp RHEL 9 12.0.1-11.2.el9
  • mingw64-gcc RHEL 9 12.0.1-11.2.el9
  • mingw32-libgcc RHEL 9 12.0.1-11.2.el9
  • mingw64-libgcc RHEL 9 12.0.1-11.2.el9
  • mingw32-gcc-c++ RHEL 9 12.0.1-11.2.el9

red hat advisories RHSA-2022:8415

  • binutils SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 2.39-9.50.1
  • cross-ppc-binutils SLE Software Development Kit 12 SP5 2.39-9.50.1
  • cross-spu-binutils SLE Software Development Kit 12 SP5 2.39-9.50.1
  • binutils SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES 15 SP2-LTSS +20 more 2.39-150100.7.40.1
  • cross-rx-binutils openSUSE Leap 15.4, openSUSE Leap 15.3 2.39-150100.7.40.1
  • cross-arm-binutils openSUSE Leap 15.4, openSUSE Leap 15.3 2.39-150100.7.40.1
  • cross-avr-binutils openSUSE Leap 15.4, openSUSE Leap 15.3 2.39-150100.7.40.1
  • cross-ppc-binutils openSUSE Leap 15.4, openSUSE Leap 15.3 2.39-150100.7.40.1

suse advisories SUSE-SU-2022:4277-1SUSE-SU-2022:4146-1

  • binutils openSUSE Tumbleweed 2.39-2.1

opensuse advisories openSUSE-SU-2024:12631-1

  • mingw32-cpp AlmaLinux 9 12.0.1-11.2.el9
  • mingw32-gcc AlmaLinux 9 12.0.1-11.2.el9
  • mingw64-cpp AlmaLinux 9 12.0.1-11.2.el9
  • mingw64-gcc AlmaLinux 9 12.0.1-11.2.el9
  • mingw32-libgcc AlmaLinux 9 12.0.1-11.2.el9
  • mingw64-libgcc AlmaLinux 9 12.0.1-11.2.el9
  • mingw32-gcc-c++ AlmaLinux 9 12.0.1-11.2.el9
  • mingw64-gcc-c++ AlmaLinux 9 12.0.1-11.2.el9

almalinux advisories ALSA-2022:8415

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-46195 updated cvss 3.3

gcc: uncontrolled recursion in libiberty/rust-demangle.c

  • Red Hat Enterprise Linux 6 cpp, gcc, libgcc, libgcj, libitm, gcc-c++, +23 more Red Hat Enterprise Linux 7 cpp, gcc, libgo, gcc-go, libgcc, libitm, +20 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 gcc-toolset-11-gcc, gcc-toolset-11-gcc-c++, gcc-toolset-11-libgccjit, gcc-toolset-11-gcc-gfortran, gcc-toolset-11-gcc-gdb-plugin Red Hat Enterprise Linux 9 cpp, gcc, libgcc, libitm, gcc-c++, libasan, +13 more Red Hat Enterprise Linux 10 gcc
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-core-bff-rhel9, rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-automl-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-mlflow-rhel9, +6 more
    under investigation
  • Red Hat CodeReady Linux Builder (v. 9) mingw-gcc 12.0.1-11.2.el9, mingw32-cpp 12.0.1-11.2.el9, mingw32-gcc 12.0.1-11.2.el9, mingw64-cpp 12.0.1-11.2.el9, mingw64-gcc 12.0.1-11.2.el9, mingw32-libgcc 12.0.1-11.2.el9, +3 more
    fixed: vendor fix RHSA-2022:8415
  • Red Hat Enterprise Linux 8 cpp, gcc, libgcc, libitm, gcc-c++, libasan, +18 more Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-kube-rbac-proxy-rhel9, rhoai/odh-maas-controller-rhel9, rhoai/odh-mlflow-operator-rhel9, rhoai/odh-model-controller-rhel9, rhoai/odh-ogx-k8s-operator-rhel9, +14 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-23-348-10 updated cvss 5.5

Siemens SIMATIC S7-1500

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5
    affected: fixed in V3.1.5, mitigation support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
31 d ago

Exploit prediction

0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • gcc.gnu.org https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103841 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Affected products

  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
  • Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
  • Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.