CVE-2021-3321
NixOS vulnerability analysis and mitigation

Overview

Integer Underflow vulnerability (CVE-2021-3321) was discovered in Zephyr versions >= 2.4.0, affecting the IEEE 802154 Fragment Reassembly Header Removal functionality. The vulnerability was disclosed on October 12, 2021, and involves an incomplete check of minimum IEEE 802154 fragment size leading to an integer underflow (Zephyr Advisory).

Technical details

The vulnerability stems from insufficient validation of certain elements within the IEEE 802154 fragment reassembly logic. The bug occurs due to initial frame validation in the ieee802154_validate_frame function, which only accounts for the initial mpdu header data without validating the minimum length of the data payload for data frames. When stripping the header, the size is assumed from the fragment's type without proper validation, leading to an integer underflow in the calculation of frag->len - hdr_len (Zephyr Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH with vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H (NVD).

Impact

The vulnerability results in an underflown size value being used in a memmove operation, leading to a large out-of-bounds write in a network buffer. At minimum, this causes the firmware to crash (denial of service). The resulting memory corruption may potentially be exploitable for Remote Code Execution (RCE) on the affected board. In proof-of-concept testing, the vulnerability caused crashes in the kernel function z_time_slice due to corruption of the kernel struct 'z_kernel' (Zephyr Advisory).

Exploitability

The vulnerability requires adjacent network access and high attack complexity to exploit, but no privileges or user interaction are needed. The vulnerability has been confirmed to be exploitable through specially crafted IEEE 802154 fragments (Zephyr Advisory).

Mitigation and workarounds

The vulnerability has been patched in Zephyr version 2.5.0. The fix involves validating fragment sizes before adding them to the cache, ensuring they can at least hold their header (NET_6LO_DISPATCH_FRAG1 or NET_6LO_DISPATCH_FRAGN). The patches have been implemented in main #31908 and v2.4: #33453 (Zephyr Advisory).

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