# CVE-2026-12633: Out-of-bounds write in IPv6 6LoWPAN Context Option handling via unauthenticated Router Advertisement

- Severity: High 8.1 (CVSS:3.1, scored by zephyr) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-08-19T20:37:34.532Z
- Modified: 2026-11-04T05:18:40.707Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: zephyr

## Description

The IPv6 neighbor-discovery code in subsys/net/ip/ipv6_nbr.c processes the 6LoWPAN Context Option (6CO, RFC 6775) carried inside ICMPv6 Router Advertisements. In handle_ra_6co() the 8-bit context_len field is taken directly from the packet and was never bounded to the RFC maximum of 128. The function computes context->context_len / 8 and then performs memset(context->prefix + context_len, 0, sizeof(context->prefix) - context_len), where context->prefix is a fixed 16-byte array.

With context_len between 136 and 255 (and the option length field set to 3, which the pre-fix validation accepts), context_len / 8 evaluates to 17..31, so the memset length 16 - context_len/8 underflows the unsigned size_t argument to roughly SIZE_MAX. This produces an unbounded out-of-bounds memset that zeroes kernel memory well past the 6lo context structure.

The defect is reachable from unauthenticated, link-local input: any host on the same link can send a crafted Router Advertisement with a 6CO option. The RA handler validates only the option length field before calling handle_ra_6co(), so a single packet triggers the wild write. The code is compiled when CONFIG_NET_6LO_CONTEXT is enabled.

The impact is a reliable remote (adjacent) denial of service via memory corruption, with collateral integrity loss as the memset zeroes contiguous memory before the system faults. Router Advertisements are link-scoped and not forwarded, so the attacker must be on the same link (AV:A). The fix rejects any context_len greater than 128 before the length computation.

(As written by CVE List.)

## Affected

- zephyr: from 1.8.0 before 4.3.2; from 4.4.0 before 4.4.2

## References

- <https://github.com/zephyrproject-rtos/zephyr/commit/15e838c739be637bf23fd56a5c26f2b32079551b> (patch)
- <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-h5m5-hm6j-cgpf>

## Sources

- CVE List: [CVE-2026-12633](https://www.cve.org/CVERecord?id=CVE-2026-12633), CVE Terms of Use, modified 2026-11-04
- NVD: [CVE-2026-12633](https://nvd.nist.gov/vuln/detail/CVE-2026-12633), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-12633 · Whole record: https://cve.day/CVE-2026-12633.json · Rebuilt by cve.day 2026-11-25T22:59:34.206Z
