CVE-2021-3826
NixOS vulnerability analysis and mitigation

Overview

A heap/stack buffer overflow vulnerability was discovered in the dlang_lname function within d-demangle.c in libiberty. The vulnerability, identified as CVE-2021-3826, was discovered in September 2021 and affects the symbol demangling functionality. The vulnerable function was introduced in gcc-11.1.0 on May 14, 2020, and was later patched in gcc-12.1.0 on September 23, 2021 (Ubuntu CVE).

Technical details

The vulnerability exists in the dlang_lname function of d-demangle.c, which is part of the libiberty library. The issue occurs when processing crafted mangled symbols, where a null pointer dereference could occur due to improper input validation. The vulnerability has been assigned a CVSS 3 Severity Score of 6.5 (Medium) (Ubuntu CVE).

Impact

When successfully exploited, this vulnerability can lead to a denial of service condition through a segmentation fault and subsequent crash of the affected application. The impact occurs when processing specially crafted mangled symbols (NVD).

Mitigation and workarounds

The vulnerability was patched in gcc-12.1.0 with commit 54810401974 titled 'libiberty: prevent buffer overflow when decoding user input'. Various distributions have backported the fix to their maintained versions, including Fedora and Ubuntu. Users are advised to update to the patched versions of the affected packages (GCC Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management