CVE-2021-3420
NixOS vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2021-3420) was discovered in newlib versions prior to 4.0.0. The vulnerability involves improper overflow validation in multiple memory allocation functions including mEMALIGn, pvALLOc, nano_memalign, nano_valloc, and nano_pvalloc. This security flaw was reported in March 2021 and affects various embedded systems and real-time operating systems (RTOS) that use the newlib library (NVD, RedHat Bugzilla).

Technical details

The vulnerability is classified as an Integer Overflow or Wraparound (CWE-190) issue. The flaw received a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating its severe nature. The technical root cause stems from insufficient checking in memory alignment logic within the malloc and nano-malloc family routines (NVD).

Impact

The vulnerability can lead to an integer overflow, resulting in the allocation of a small buffer instead of the intended larger one, ultimately causing a heap-based buffer overflow. This could potentially allow attackers to execute arbitrary code, cause system crashes, or compromise system security (NVD, CISA).

Exploitability

The vulnerability is remotely exploitable with low attack complexity and requires no privileges or user interaction. While the vulnerability is serious, there were no known public exploits specifically targeting this vulnerability at the time of disclosure (CISA).

Mitigation and workarounds

The primary mitigation is to update to newlib version 4.0.0 or later, which contains the fix for this vulnerability. For systems that cannot be immediately updated, CISA recommends minimizing network exposure for all control system devices, ensuring they are not accessible from the Internet, and locating control system networks and remote devices behind firewalls isolated from the business network (CISA).

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-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox
NoYesAug 18, 2026

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