# CVE-2021-3826: Heap/stack buffer overflow in the dlanglname function in d-demangle.c in libiberty allows attackers to potentially cause a denial of servic…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/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): 1.56%, higher than 75% of CVEs (2026-12-01)
- Published: 2022-09-01T00:00:00.000Z
- Modified: 2026-11-02T19:17:44.330Z
- Weaknesses: CWE-119, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- gcc: gcc 11.2.0
- gnu gcc: 11.2
- fedoraproject fedora: 35; 36; 37

## References

- <https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579987> (mailing-list, patch, vendor-advisory)
- <https://gcc.gnu.org/git/?p=gcc.git%3Ba=commit%3Bh=5481040197402be6dfee265bd2ff5a4c88e30505> (broken-link)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AXFC74WRZ2Q7F2TSUKPYNIL7ZPBWYI6L/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MYLS3VR4OPL5ECRWOR4ZHMGXUSCJFZY/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6AKZ2DTS3ATVN5PANNVLKLE5OP4OF25Q/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H424YXGW7OKXS2NCAP35OP6Y4P4AW6VG/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MTEHT3G6YKJ7F7MSGWYSI4UM3XBAYXZ/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

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

---

Page: https://cve.day/CVE-2021-3826 · Whole record: https://cve.day/CVE-2021-3826.json · Rebuilt by cve.day 2026-11-25T22:58:07.808Z
