
CVE catalog
CVE-2022-27943
gcc-12 affected and fixed versions
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
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.95% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debiantrixie | gcc-12 | 12.4.0-5 | Affected | [CVE-2022-27943] |
| Debiansid | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debiansid | gcc-12 | 12.5.0-11 | Affected | [CVE-2022-27943] |
| Debianforky | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debianforky | gcc-12 | 12.5.0-11 | Affected | [CVE-2022-27943] |
| Debianbookworm | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debianbookworm | gcc-12 | 12.2.0-14+deb12u1 | Affected | [CVE-2022-27943] |
| UnknownRelease not reported | gcc-12 | Not reported | UnknownSource applicability is not established | Provider not reported |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| UnknownRelease not reported | gcc-12 | Not reported | UnknownSource applicability is not established | Provider not reported |
| Debianbookworm | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debianbookworm | gcc-12 | 12.2.0-14+deb12u1 | Affected | [CVE-2022-27943] |
| Debianforky | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debianforky | gcc-12 | 12.5.0-11 | Affected | [CVE-2022-27943] |
| Debiansid | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debiansid | gcc-12 | 12.5.0-11 | Affected | [CVE-2022-27943] |
| Debiantrixie | gcc-12 | Not reported | AffectedDistribution reports no fix | [CVE-2022-27943] |
| Debiantrixie | gcc-12 | 12.4.0-5 | Affected | [CVE-2022-27943] |
Original provider fields
{
"package_releases": [
{
"name": "gcc-12",
"status": "vulnerable",
"release": "sid",
"version": "12.5.0-11"
},
{
"name": "gcc-12",
"status": "vulnerable",
"release": "forky",
"version": "12.5.0-11"
},
{
"name": "gcc-12",
"status": "vulnerable",
"release": "trixie",
"version": "12.4.0-5"
},
{
"name": "gcc-12",
"status": "vulnerable",
"release": "bookworm",
"version": "12.2.0-14+deb12u1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "gcc-12",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": null,
"name": "gcc-12",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": null,
"name": "gcc-12",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": null,
"name": "gcc-12",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "unimportant",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "gcc-12",
"fixed_version": "not yet fixed",
"applicability_unknown": true
},
{
"name": "gcc",
"ranges": [],
"ecosystem": "cpe",
"provider_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-27943",
"fixed_version": "",
"provider_source": "nvd",
"provider_record_id": "NVD-CVE-2022-27943",
"provider_updated_at": "2026-10-14T17:17:37.830"
},
{
"name": "fedora",
"ranges": [],
"ecosystem": "cpe",
"provider_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-27943",
"fixed_version": "",
"provider_source": "nvd",
"provider_record_id": "NVD-CVE-2022-27943",
"provider_updated_at": "2026-10-14T17:17:37.830"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [cpp-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [g++-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [g++-12-multilib]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12]Unknown
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-base]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-hppa64-linux-gnu]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-locales]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· all · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· all · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-multilib]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-offload-amdgcn]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-offload-nvptx]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-plugin-dev]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-source]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· all · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· all · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gcc-12-test-results]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gccgo-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gccgo-12-multilib]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gdc-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gdc-12-multilib]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gfortran-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gfortran-12-multilib]Unknown
Source package: [gcc-12]
Details (1)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
- [gm2-12]Unknown
Source package: [gcc-12]
Details (2)
12.2.0-14+deb12u1· amd64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
12.2.0-14+deb12u1· arm64 · bookwormAffected
dsa · gcc-12 · debian · bookworm
Observed:
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-398330.json]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_4146-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2022-27943]
- [https://osv.dev/vulnerability/CVE-2022-27943]
- [https://security-tracker.debian.org/tracker/CVE-2022-27943]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-27943.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0794.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]