CVE-2026-102956: Ethernet L2 net_pkt reference-count error on ARP request send failure can free an unrelated packet
ethernetsend() in subsys/net/l2/ethernet/ethernet.c dropped the caller's reference on an IPv4 packet whenever netarpprepare() returned NETARPPKTREPLACED. That return value is also used when ARP could not queue the packet because every ARP cache entry is already pending. In that case ARP holds no reference of its own, so the original packet was freed before the replacing ARP request was transmitted.
If transmitting the ARP request then failed (a driver send error or an ethernetfillheader() failure), the error path called netpktref() on the freed packet. netiftx() then called netpktunref() on it again. If the freed netpkt slab slot was reallocated in between, the stray unref releases a reference owned by an unrelated packet, which is freed while still in use.
An attacker on the local link can drive the ARP cache into the all-pending state. CONFIGNETARPTABLESIZE defaults to 2, so it is enough to elicit replies to a few spoofed, non-responding on-subnet addresses. Reaching the memory corruption also needs a transmit failure the attacker does not directly control and a narrow slab-reuse race. The practical impact is corruption or a crash of the network stack (denial of service).
Affected Software
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Zephyr devices using IPv4 over Ethernet with ARP are exposed when an attacker can access the local Ethernet link. The attacker can drive the ARP cache into an all-pending state using spoofed, non-responding on-subnet addresses.
Is the default ARP configuration sufficient to trigger the prerequisite condition?
Yes. CONFIG_NET_ARP_TABLE_SIZE defaults to 2, so only a few pending ARP entries are needed to exhaust the cache.
What additional conditions are required for memory corruption or a crash?
After the ARP cache is all pending, transmission of the replacement ARP request must fail because of a driver send error or ethernet_fill_header() failure. A narrow race must also allow the freed packet slab slot to be reallocated before the stray reference release; the attacker does not directly control the transmit failure.
What is the likely operational impact?
The stray reference release can free an unrelated packet while it is still in use, causing network-stack memory corruption or a crash. The described practical impact is denial of service.