Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3826
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3826
Complete source record
{
"id": "3da2994f00fe86faf283094f413f6cfe5cfc5510ac26b0933576facfcfa969ff",
"url": "https://osv.dev/vulnerability/CVE-2021-3826",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3826",
"summary": "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.",
"evidence": "osv:CVE-2021-3826",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3826",
"aliases": [
"CVE-2021-3826"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gcc-mirror/gcc",
"type": "GIT",
"events": [
{
"introduced": "7ca388565af176bd4efd4f8db1e5e9e11e98ef45"
},
{
"last_affected": "7ca388565af176bd4efd4f8db1e5e9e11e98ef45"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gnu:gcc:11.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "11.2"
},
{
"last_affected": "11.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"11.2",
"releases/gcc-11.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3826.json"
}
}
],
"modified": "2026-10-24T10:30:40.167411539Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://gcc.gnu.org/git/?p=gcc.git%3Ba=commit%3Bh=5481040197402be6dfee265bd2ff5a4c88e30505",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MYLS3VR4OPL5ECRWOR4ZHMGXUSCJFZY/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6AKZ2DTS3ATVN5PANNVLKLE5OP4OF25Q/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MTEHT3G6YKJ7F7MSGWYSI4UM3XBAYXZ/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AXFC74WRZ2Q7F2TSUKPYNIL7ZPBWYI6L/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H424YXGW7OKXS2NCAP35OP6Y4P4AW6VG/",
"https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579987"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "35"
},
{
"last_affected": "35"
},
{
"introduced": "36"
},
{
"last_affected": "36"
},
{
"introduced": "37"
},
{
"last_affected": "37"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3826",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434854,
"published_at": "2022-09-01T21:15:08.843+00:00"
}