# CVE-2022-27943: libiberty/rust-demangle.c in GNU GCC 11.2 allows stack consumption in demangleconst, as demonstrated by nm-new.

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-03-26T00:00:00.000Z
- Modified: 2026-10-14T17:17:37.830Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu gcc: 11.2
- fedoraproject fedora: 36

## Every score

- CISA-ADP: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=28995> (exploit, issue-tracking, third-party-advisory)
- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105039> (exploit, issue-tracking, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H424YXGW7OKXS2NCAP35OP6Y4P4AW6VG/> (vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2022-27943](https://www.cve.org/CVERecord?id=CVE-2022-27943), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2022-27943](https://nvd.nist.gov/vuln/detail/CVE-2022-27943), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2022-27943 · Whole record: https://cve.day/CVE-2022-27943.json · Rebuilt by cve.day 2026-11-25T22:58:10.280Z
