GHSA-39p4-p83c-58hr: ICMPv6 option validation accepts a trailing byte residue, sending the Router Advertisement, Neighbor Solicitation, Neighbor Advertisement and Redirect option walkers past the packet or into a permanent loop

GHSA ID

GHSA‑39p4‑p83c‑58hr

CVE ID

CVE‑2026‑102714

Severity

High

CWE

CWE-125, CWE-191, CWE-835, CWE-1287

Published

2026‑10‑13

Last updated

2026‑10‑13

Affected packages

Package Vulnerable versions Patched versions

NetX Duo

⇐ 6.5.2.202603

6.5.2.202603a

Description

Summary

_nx_icmpv6_validate_options() scans the option area with while (length > 2) (common/src/nx_icmpv6_validate_options.c:79). An area whose size leaves a one- or two-byte residue exits the loop with that tail unexamined; the residue is not negative, so the function returns NX_SUCCESS. Its zero-length rejection never sees those bytes.

Every consumer then re-walks the same area, reading a two-byte option header at the residue and subtracting nx_icmpv6_option_length << 3 with no zero check and no remaining-length check. Three outcomes follow, selected by bytes the attacker controls.

Details

Zero length byte. The walker subtracts zero and advances zero. All four handlers loop forever — _nx_icmpv6_process_ra (nx_icmpv6_process_ra.c:245, :528), _nx_icmpv6_process_ns (:251, :329), _nx_icmpv6_process_na (:147, :156) and _nx_icmpv6_process_redirect (:247, :350). The walk runs in the IP thread, which is the highest-priority thread and does not yield inside the loop, so the system stops until a watchdog reset and the frame can be replayed after each one.

Non-zero length byte on a short residue. The three unsigned counters underflow — 2 - 8 becomes 0xFFFFFFFA — and the walk continues past the packet buffer, reading until it faults or meets a zero length byte and freezes. The Router Advertisement counter is signed and exits cleanly in this case.

One-byte residue. The walker reads a two-byte option header, over-reading one byte.

Impact

During a runaway walk, stray bytes parsing as a link-layer address option are copied into the neighbor cache (nx_icmpv6_process_ns.c:280, :293) and subsequently used as the destination MAC for frames to that neighbour, placing off-packet memory on the link. Confirmed by inspection, not reproduced.

One ICMPv6 Router Advertisement, Neighbor Solicitation, Neighbor Advertisement or Redirect from any host on the link, behind the ICMPv6 checksum. No prior state is needed for the Neighbor Advertisement path; Router Advertisement and the others require hop limit 255 and a link-local source, which keeps all of it on-link.

Affected configurations

Requires FEATURE_NX_IPV6.

Versions up to and including 6.5.2.202603.

Severity

CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N, 7.1, High. CWE-125, CWE-191, CWE-835 and CWE-1287.

AV:A because every path is reachable only from the local link. VA:H because the walk runs in the IP thread, which is the highest-priority thread and does not yield inside the loop.

Patches

Fixed in NetX Duo 6.5.2.202603a.

_nx_icmpv6_validate_options() now accounts for every byte of the option area: the loop runs while any length remains, a remainder too short to hold an option header is rejected inside it, the existing zero-length rejection is kept, and the area must divide exactly into whole options. The four processing loops additionally reject a zero option length, releasing the packet before they return. No public API changes, so applications need no source change.

Workarounds

None in configuration. Every path is reachable from any host on the link wherever FEATURE_NX_IPV6 is built in, so the options are to restrict which hosts reach the link or to build without IPv6 support.

Credits

Reported by Arash Ale Ebrahim from SYSPWN (@Microsvuln) and @L0stHeart.

The maintainers' analysis of this report was produced with AI assistance under human review, in accordance with the Eclipse Foundation’s Generative AI Usage Guidelines.