CVE-2026-104379: Use-after-free of transmitted IPv6 packet in Zephyr net_if_try_send_data
netiftrysenddata() in subsys/net/ip/netif.c reads netpktfamily(pkt) a second time after calling netipv6prepareforsend(). When that function returns NETCONTINUE it has already handed the packet off: IPv6 fragmentation (CONFIGNETIPV6FRAGMENT) 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 netpkt 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 NETAFINET. netipv4prepareforsend() then runs on a packet the caller does not own, replaces the NETCONTINUE verdict with NETOK, and netiftryqueuetx() 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 Software
Event History
Frequently Asked Questions
Which deployments are most exposed to attacker-triggered exploitation?
Dual-stack devices are specifically described as exposed. The race involves an IPv6 packet being handed off through IPv6 fragmentation or neighbor discovery, followed by reuse of its freed packet buffer for IPv4 or ARP traffic.
What does an attacker need to do to trigger the race?
An adjacent attacker can answer the device's Neighbor Solicitations while also sending IPv4 traffic that causes the stack to allocate packets. This can cause the freed IPv6 packet object to be reused before the original sending thread resumes.
What is the likely operational impact if the race succeeds?
A packet can be queued and transmitted a second time, then unreferenced twice. The TX thread may also dereference an already released buffer, which can cause availability impact and unintended packet handling.