---
id: CVE-2022-27943
title: >-
  libiberty/rust-demangle.c in GNU GCC 11.2 allows stack consumption in
  demangle_const, as demonstrated by nm-new.
summary: >-
  libiberty/rust-demangle.c in GNU GCC 11.2 allows stack consumption in
  demangle_const, as demonstrated by nm-new.
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
vendor: gnu
product: gcc
affected:
  - gcc = 11.2
  - fedora = 36
published: '2022-03-26'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T17:17:37.830'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-27943'
references:
  - url: 'https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105039'
    label: cve@mitre.org
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H424YXGW7OKXS2NCAP35OP6Y4P4AW6VG/
    label: cve@mitre.org
  - url: 'https://sourceware.org/bugzilla/show_bug.cgi?id=28995'
    label: cve@mitre.org
  - url: 'https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105039'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H424YXGW7OKXS2NCAP35OP6Y4P4AW6VG/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://sourceware.org/bugzilla/show_bug.cgi?id=28995'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-27943.json
  - url: 'https://access.redhat.com/security/cve/CVE-2022-27943'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2071728'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2022-27943'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-27943'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
epss: 0.00953
epssPercentile: 0.61152
ingestedAt: '2026-10-08T20:06:22.172Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-08T18:52:35.314730Z'
---

## Overview

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

## Affected

- `gcc = 11.2`
- `fedora = 36`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-10-08 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-27943.json)
