CVE-2021-3581
NixOS vulnerability analysis and mitigation

Overview

A Buffer Access vulnerability with Incorrect Length Value (CVE-2021-3581) was discovered in Zephyr versions 2.5.0 and above. The vulnerability was disclosed on October 5, 2021, affecting the Zephyr Real-Time Operating System (RTOS). This security flaw was identified in the Bluetooth protocol stack implementation (Zephyr Advisory).

Technical details

The vulnerability stems from insufficient length validation during the SCAN_RSP HCI command processing in the Zephyr Bluetooth protocol stack. The issue is classified as CWE-805 (Buffer Access with Incorrect Length Value) and has been assigned a CVSS v3.1 base score of 8.8 (HIGH) by NIST with a vector of CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The Zephyr Project separately assessed it with a CVSS score of 7.0 (HIGH) with vector CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to memory overflow conditions where data in memory can be overwritten. This could potentially result in arbitrary code execution. The high severity ratings indicate significant potential impacts on system confidentiality, integrity, and availability (Zephyr Advisory).

Mitigation and workarounds

The vulnerability has been patched in Zephyr version 2.6.0. Fixes were also provided for various branches including main (#35935), v2.5 (#35984), v2.4 (#35985), and v1.14 (#35983). Users are advised to upgrade to the patched versions to mitigate this vulnerability (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-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