CVE-2026-104379
NVD
Vulnerability Summary
`net_if_try_send_data()` in `subsys/net/ip/net_if.c` reads `net_pkt_family(pkt)` a second time after calling `net_ipv6_prepare_for_send()`. When that function returns `NET_CONTINUE` it has already handed the packet off: IPv6 fragmentation (`CONFIG_NET_IPV6_FRAGMENT`) unreferences it before returning, and the neighbor discovery path queues it on the neighbor's pending queue, from where the RX thread may transmit and free it as soon as a Neighbor Advertisement arrives, or the NS error and timeout paths may free it. If the freed `net_pkt` is reallocated to an IPv4 or ARP packet before the sending thread resumes (the slab free list is LIFO, so the next TX allocation receives it), the stale pointer now reports `NET_AF_INET`. `net_ipv4_prepare_for_send()` then runs on a packet the caller does not own, replaces the `NET_CONTINUE` verdict with `NET_OK`, and `net_if_try_queue_tx()` queues the foreign packet for transmission a second time. The packet is then transmitted and unreferenced twice, or the TX thread dereferences an already released buffer. On a dual-stack device an adjacent attacker can open this window by answering the device's Neighbor Solicitations while sending IPv4 traffic that makes the stack allocate TX packets, such as ICMPv4 echo requests. The result is a double free or use-after-free of network packet and buffer memory in the kernel network stack, which typically crashes the device. Exploiting it requires winning a race, and ordinary dual-stack traffic can also trigger it. Affected components - `subsys/net/ip/net_if.c` - `subsys/net/ip/ipv6_nbr.c` Affected versions `>= 3.3.0, < 4.3.2; >= 4.4.0, < 4.5.0` Fix Fixed in 4.3.2, 4.5.0. Release lines that have not yet taken the backport remain affected — see the affected version range above. Introduced by: b6cd83bf7adc (net: ipv4: Add fragmented packet support, v3.3.0; CONFIG_NET_IPV4_FRAGMENT only), widened to every CONFIG_NET_IPV4 build by 9dba02f8f4f (net: ipv4: Add PMTU support, v4.1.0) Evidence - subsys/net/ip/net_if.c:561-577 (post-fix) / v4.4.0:subsys/net/ip/net_if.c:525-531 (pre-fix) — family re-read after net_ipv6_prepare_for_send(); IPv4 branch can overwrite NET_CONTINUE with NET_OK - subsys/net/ip/net_if.c:592-595 — verdict NET_OK queues pkt via net_if_try_queue_tx(), turning the stale pointer into a double queue/double unref - subsys/net/ip/ipv6_nbr.c:950-971 — fragmentation path calls net_pkt_unref(pkt) then returns NET_CONTINUE - subsys/net/ip/ipv6_nbr.c:1102-1124 — ND path hands pkt to net_ipv6_send_ns() and returns NET_CONTINUE; comment says packet must not be touched afterwards - subsys/net/ip/ipv6_nbr.c:2295-2341 — net_ipv6_send_ns() puts pending pkt on pending_queue under nbr mutex; error path frees it via nbr_clear_ns_pending() - subsys/net/ip/ipv6_nbr.c:308-325, 2025-2029 — NA handler (RX thread) calls nbr_send_pending() which transmits and releases the pending packet - subsys/net/ip/ipv4.c:578-609 — net_ipv4_prepare_for_send() operates on the (foreign) packet and returns NET_OK in the common case - subsys/net/ip/net_core.c:465-472 — net_try_send_data() already caches iface/family because pkt may be garbage after net_if_try_send_data(), confirming the ownership rule - include/zephyr/net/net_pkt.h:119-124 — only fifo (offset 0) is clobbered by slab free, so harm requires reuse by an IPv4 packet - git blame: b6cd83bf7adc (v3.3.0, under CONFIG_NET_IPV4_FRAGMENT) and 9dba02f8f4f (v4.1.0, unconditional for CONFIG_NET_IPV4); shape unchanged in v4.2.0/v4.3.0/v4.4.0 <!-- zepsec:patch --> Patches | Branch | Pull request | Status | | --- | --- | --- | | `main` | #119690 — `a38cb68982a7` | merged | | `v4.4-branch` | #121310 | merged | | `v4.3-branch` | #121309 | merged | | `v3.7-branch` | #121308 | merged | <!-- zepsec:patch --> For more information If you have any questions or comments about this advisory: Open an issue in zephyr Email us at Zephyr-vulnerabilities embargo: 2026-11-29
CVSS v3.1 Base Metrics — Score 5.9
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:HAttack VectorAdjacent
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityHigh
Affected & Patched Versions
- zephyr >= 3.3.0, < 4.3.2
- zephyr >= 4.4.0, < 4.5.0
- zephyr 4.3.2
- zephyr 4.5.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run zephyr and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 29, 2026Published
- Nov 29, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new zephyr CVEsYou are reading CVE-2026-104379. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 29, 2026 18:46 UTC