CVE-2022-1042
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-1042 is an out-of-bounds write vulnerability discovered in the Zephyr bluetooth mesh core stack that can be triggered during provisioning. The vulnerability affects Zephyr versions up to and including 3.0.0, and was disclosed on July 26, 2022. This security flaw was identified by Han Yan, Lewei Qu, and Dongxiang Ke of Baidu AIoT Security Team (Zephyr Advisory).

Technical details

The vulnerability occurs when a Transaction Continue PDU is received before the Transaction Start PDU (i.e., start segment lost). In this scenario, the SegN becomes initialized as 0xff, allowing subsequent SegO values up to 63, which leads to an out-of-bounds write condition. When SegO is greater than 2, XACTSEGDATA(seg) exceeds 43, causing data to be copied beyond the 66-byte limit of rx_buf. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 HIGH (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) by NVD, while Zephyr Project rated it as 8.2 HIGH (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L) (NVD).

Impact

The vulnerability can lead to out-of-bounds write operations, potentially allowing an attacker to corrupt memory and execute arbitrary code. The CVSS metrics indicate high impacts on confidentiality, with potential compromises to integrity and availability of the affected systems (Zephyr Advisory).

Mitigation and workarounds

The vulnerability has been fixed through multiple patches: main branch via PR #45066, v3.0 via PR #45135, and v2.7 via PR #45134. Users are advised to update to the patched versions of the Zephyr operating system (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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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