Demangler crash via unchecked null parse result
Published Sep 1, 2022 · Updated Aug 3, 2024
Null-pointer dereference in GNU Compiler Collection 11.2.0 allows remote attackers to crash a demangler via a crafted D symbol. In libiberty/d-demangle.c, dlang_type dereferences a null mangled pointer returned while parsing malformed input before testing for a D type back-reference. Triggering the crash requires a person or downstream tool to pass an attacker-controlled mangled D symbol to the affected demangler; the reported consequence is process termination.
Summary
What happened
Null-pointer dereference in GNU Compiler Collection 11.2.0 allows remote attackers to crash a demangler via a crafted D symbol. In libiberty/d-demangle.c, dlang_type dereferences a null mangled pointer returned while parsing malformed input before testing for a D type back-reference. Triggering the crash requires a person or downstream tool to pass an attacker-controlled mangled D symbol to the affected demangler; the reported consequence is process termination.
The record
- CVE
- CVE-2021-3826
- Published
- Sep 1, 2022
- Updated
- Aug 3, 2024
- Vendor
- GNU Project
- Product
- GNU Compiler Collection
- Classifications
- CWE-787, CWE-119, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 1, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=gcc 11.2.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Malformed D symbol regression triggerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo