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.
Published: 2026-08-19
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is caused by an unbounded out‑of‑bounds write in the IPv6 neighbor‑discovery code that processes the 6LoWPAN Context Option. A malicious Router Advertisement can provide a context length field larger than the RFC 6775 maximum, causing a memset to zero beyond the intended 16‑byte array in memory and corrupting kernel state. The flaw, classified as CWE‑787, can lead to reliability loss and a local denial‑of‑service triggered by a single crafted packet.

Affected Systems

The issue exists in Zephyr RTOS when the 6LoWPAN context feature is compiled with CONFIG_NET_6LO_CONTEXT enabled. Any Zephyr kernel that accepts Router Advertisements on the link is potentially vulnerable. No explicit version numbers are listed in the advisory, so all builds containing the affected code path should be considered at risk until the patch is applied.

Risk and Exploitability

The CVSS score of 8.1 indicates a high‑severity vulnerability. EPSS data is not available, so the exploitation probability is unknown but the flaw is trivial to trigger on an adjacent host. It is not listed in CISA’s KEV catalog, suggesting no active exploitation has been documented. Nevertheless, because the denial of service results from a kernel memory overwrite, an attacker on the same link can reliably crash the device with a single packet. The recommended mitigation is to apply the vendor’s patch that limits the context_len field to the RFC maximum.

Generated by OpenCVE AI on August 20, 2026 at 08:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Zephyr patch that rejects any context_len greater than 128 before the length computation.
  • If the patch is unavailable, disable CONFIG_NET_6LO_CONTEXT or 6LoWPAN support in the build until a fix can be applied.
  • Enforce network segmentation or use router‑advertisement filtering to block rogue RA packets from hostile hosts on the same link.

Generated by OpenCVE AI on August 20, 2026 at 08:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
Vendors & Products Zephyrproject
Zephyrproject zephyr

Wed, 19 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title Out-of-bounds write in IPv6 6LoWPAN Context Option handling via unauthenticated Router Advertisement
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}


Subscriptions

Zephyrproject Zephyr
cve-icon MITRE

Status: PUBLISHED

Assigner: zephyr

Published:

Updated: 2026-08-20T15:26:33.782Z

Reserved: 2026-06-18T15:22:29.825Z

Link: CVE-2026-12633

cve-icon Vulnrichment

Updated: 2026-08-20T15:25:18.431Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-19T21:16:53.633

Modified: 2026-08-26T16:59:23.267

Link: CVE-2026-12633

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T08:15:17Z

Weaknesses