CVE-2026-12633: memory-safety in zephyrproject zephyr
CVE-2026-12633 is a memory safety vulnerability in the Zephyr project's IPv6 neighbor-discovery code. It arises from improper bounds checking of the 6LoWPAN Context Option (6CO) context_len field in Router Advertisements, leading to an out-of-bounds memset that overwrites kernel memory. This flaw can be triggered remotely by an unauthenticated attacker on the same local network segment, causing a denial of service through memory corruption. The vulnerability affects Zephyr versions from 1.8.0 up to but not including 4.4.2. A fix is available that rejects context_len values greater than 128 before processing.
AI Analysis
Technical Summary
The vulnerability exists in subsys/net/ip/ipv6_nbr.c within Zephyr's IPv6 neighbor-discovery implementation. The 8-bit context_len field from the 6LoWPAN Context Option in ICMPv6 Router Advertisements is not properly bounded to the RFC maximum of 128. When context_len is between 136 and 255, the calculation context_len / 8 results in a value between 17 and 31, causing an underflow in the memset length argument. This leads to an unbounded out-of-bounds write that zeroes kernel memory beyond the intended 16-byte context->prefix array. The flaw is exploitable by any unauthenticated host on the same link sending a crafted Router Advertisement. The vulnerability requires CONFIG_NET_6LO_CONTEXT to be enabled in the build. The impact is a reliable remote denial of service via memory corruption and integrity loss. The fix involves rejecting context_len values greater than 128 before performing the memset.
Potential Impact
An unauthenticated attacker on the same local network can send a specially crafted Router Advertisement with a malicious 6LoWPAN Context Option to trigger an out-of-bounds memory write. This causes memory corruption leading to a denial of service by crashing the system. The integrity of kernel memory is compromised as the memset zeroes memory beyond the intended buffer. The vulnerability does not affect confidentiality or availability beyond denial of service. The attack vector is local network adjacent (AV:A), requires no privileges (PR:N), and no user interaction (UI:N).
Mitigation Recommendations
A fix is available that rejects any context_len value greater than 128 before the length computation and memset operation. Users should upgrade Zephyr to version 4.4.2 or later where this vulnerability is patched. If upgrading is not immediately possible, ensure that CONFIG_NET_6LO_CONTEXT is disabled to avoid compiling the vulnerable code. No other mitigations are indicated by the vendor advisory.
CVE-2026-12633: memory-safety in zephyrproject zephyr
Description
CVE-2026-12633 is a memory safety vulnerability in the Zephyr project's IPv6 neighbor-discovery code. It arises from improper bounds checking of the 6LoWPAN Context Option (6CO) context_len field in Router Advertisements, leading to an out-of-bounds memset that overwrites kernel memory. This flaw can be triggered remotely by an unauthenticated attacker on the same local network segment, causing a denial of service through memory corruption. The vulnerability affects Zephyr versions from 1.8.0 up to but not including 4.4.2. A fix is available that rejects context_len values greater than 128 before processing.
CVSS v3.1
Score 8.1high
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in subsys/net/ip/ipv6_nbr.c within Zephyr's IPv6 neighbor-discovery implementation. The 8-bit context_len field from the 6LoWPAN Context Option in ICMPv6 Router Advertisements is not properly bounded to the RFC maximum of 128. When context_len is between 136 and 255, the calculation context_len / 8 results in a value between 17 and 31, causing an underflow in the memset length argument. This leads to an unbounded out-of-bounds write that zeroes kernel memory beyond the intended 16-byte context->prefix array. The flaw is exploitable by any unauthenticated host on the same link sending a crafted Router Advertisement. The vulnerability requires CONFIG_NET_6LO_CONTEXT to be enabled in the build. The impact is a reliable remote denial of service via memory corruption and integrity loss. The fix involves rejecting context_len values greater than 128 before performing the memset.
Potential Impact
An unauthenticated attacker on the same local network can send a specially crafted Router Advertisement with a malicious 6LoWPAN Context Option to trigger an out-of-bounds memory write. This causes memory corruption leading to a denial of service by crashing the system. The integrity of kernel memory is compromised as the memset zeroes memory beyond the intended buffer. The vulnerability does not affect confidentiality or availability beyond denial of service. The attack vector is local network adjacent (AV:A), requires no privileges (PR:N), and no user interaction (UI:N).
Mitigation Recommendations
A fix is available that rejects any context_len value greater than 128 before the length computation and memset operation. Users should upgrade Zephyr to version 4.4.2 or later where this vulnerability is patched. If upgrading is not immediately possible, ensure that CONFIG_NET_6LO_CONTEXT is disabled to avoid compiling the vulnerable code. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-18T15:22:29.825Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a861799acd9273b499c15a4
Added to database: 08/19/2026, 20:52:41 UTC
Last enriched: 09/11/2026, 05:02:00 UTC
Last updated: 10/02/2026, 14:46:05 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.