Vulnerability · Published Sep 1, 2022 · Assigned by redhat
CVE-2021-3826
Medium 6.5
In plain English
A medium-severity memory corruption in gcc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)1.5%top 25.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty allows attackers to potentially cause a denial of service (segmentation fault and crash) via a crafted mangled symbol.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | gdb | 10.2-11.el9 | ALSA-2023:6372 |
| AlmaLinux:9 | gdb-doc | 10.2-11.el9 | ALSA-2023:6372 |
| AlmaLinux:9 | gdb-gdbserver | 10.2-11.el9 | ALSA-2023:6372 |
| AlmaLinux:9 | gdb-headless | 10.2-11.el9 | ALSA-2023:6372 |
| AlmaLinux:9 | gdb-minimal | 10.2-11.el9 | ALSA-2023:6372 |
| Debian:12 | binutils | 2.37.50.20220121-1 | DEBIAN-CVE-2021-3826 |
| Debian:13 | binutils | 2.37.50.20220121-1 | DEBIAN-CVE-2021-3826 |
| Debian:14 | binutils | 2.37.50.20220121-1 | DEBIAN-CVE-2021-3826 |
| Debian:12 | libiberty | 20220713-1 | DEBIAN-CVE-2021-3826 |
| Debian:13 | libiberty | 20220713-1 | DEBIAN-CVE-2021-3826 |
| Debian:14 | libiberty | 20220713-1 | DEBIAN-CVE-2021-3826 |
| Ubuntu:22.04:LTS | gcc-11 | no fix listed | UBUNTU-CVE-2021-3826 |
| Ubuntu:24.04:LTS | gcc-11 | no fix listed | UBUNTU-CVE-2021-3826 |
| Ubuntu:25.10 | gcc-11 | no fix listed | UBUNTU-CVE-2021-3826 |
| Ubuntu:26.04:LTS | gcc-11 | no fix listed | UBUNTU-CVE-2021-3826 |
| Ubuntu:26.10 | gcc-11 | no fix listed | UBUNTU-CVE-2021-3826 |
| Ubuntu:22.04:LTS | libiberty | no fix listed | UBUNTU-CVE-2021-3826 |
Affected products (as reported)
Weakness: CWE-119
References
- https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579987
- https://gcc.gnu.org/git/?p=gcc.git%3Ba=commit%3Bh=5481040197402be6dfee265bd2ff5a4c88e30505
- FEDORA-2022-8e1df11a7a vendor-advisory
- FEDORA-2022-affcf9eea6 vendor-advisory
- FEDORA-2022-19538a3732 vendor-advisory
- FEDORA-2022-c9a1fd5370 vendor-advisory
- FEDORA-2022-667ee398b1 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html