CVE-2026-102956 in Zephyrinfo

Summary

by MITRE • 11/23/2026

ethernet_send() in subsys/net/l2/ethernet/ethernet.c dropped the caller's reference on an IPv4 packet whenever net_arp_prepare() returned NET_ARP_PKT_REPLACED. 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 ethernet_fill_header() failure), the error path called net_pkt_ref() on the freed packet. net_if_tx() then called net_pkt_unref() on it again. If the freed net_pkt 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. CONFIG_NET_ARP_TABLE_SIZE 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).

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability resides in the Ethernet layer implementation within the net_arp_prepare function path, specifically involving reference counting logic for IPv4 packets during Address Resolution Protocol operations. When an application sends data over an Ethernet link, the system must resolve the destination MAC address via ARP before transmission can proceed. The code incorrectly handles a specific return value from net_arp_prepare indicating that the packet was replaced by an ARP request. This same return value is also utilized when the ARP cache is full and cannot queue additional packets because all entries are already pending resolution. In scenarios where no replacement occurs, such as when the cache is saturated with pending requests, the original logic erroneously drops the caller's reference to the data packet immediately.

This incorrect reference dropping leads to a use-after-free condition under specific network conditions. When ARP cannot queue the packet due to a full cache of pending entries, it does not assume ownership or hold its own reference for that specific data packet. Consequently, by releasing the original reference prematurely, the system frees the memory associated with the net_pkt structure before the actual transmission process is complete. If the subsequent attempt to transmit the ARP request fails due to driver errors or header filling issues, the error handling path attempts to call net_pkt_ref on this already-freed object. This operation accesses invalid memory and corrupts internal state structures within the network stack.

The severity of the vulnerability is compounded by a race condition involving slab allocator reuse. After the initial erroneous free, if another unrelated packet allocation occurs in the same memory slot before the error path executes its subsequent net_pkt_unref call, that stray unref operation will decrement the reference count of an active, unrelated packet. This results in premature deallocation of valid network buffers while they are still being processed by other parts of the stack. The practical impact is severe instability within the networking subsystem, manifesting as memory corruption or a complete system crash resulting in denial of service for all network-dependent services on the device.

An attacker positioned on the local link can exploit this flaw to trigger the vulnerability with minimal effort. By sending spoofed ARP requests targeting non-responding addresses on the same subnet, an adversary can rapidly fill the ARP cache entries into a pending state. Given that default configurations often set CONFIG_NET_ARP_TABLE_SIZE to small values such as two, only a few malicious packets are required to saturate the table and force subsequent legitimate traffic into the vulnerable code path. While triggering the actual memory corruption requires a concurrent transmit failure and precise timing for slab reuse, the initial conditions are easily manipulated by local network actors.

From a classification perspective, this vulnerability aligns with CWE-416 Use After Free, as it involves accessing memory after it has been freed due to incorrect reference management. It also relates to CWE-362 Concurrent Execution Using Shared Resource with Improper Synchronization regarding the race condition between packet freeing and subsequent reference manipulation. In terms of MITRE ATT&CK frameworks, this represents a technique for Denial of Service through resource exhaustion or state corruption, specifically leveraging local network access to disrupt service availability.

Mitigation strategies should focus on correcting the reference counting logic in the Ethernet layer code. Developers must ensure that references are only dropped when ownership is definitively transferred or when no further processing is required by any component. Specifically, the condition where ARP cannot queue packets due to a full cache must not result in dropping the caller's reference unless the packet has been successfully queued or explicitly handled elsewhere. Additionally, implementing stricter checks before accessing net_pkt structures and ensuring atomic operations for reference counting can help prevent race conditions associated with slab reuse. Updating to patched versions of the underlying network stack that address this logic error is essential for maintaining system integrity against local link attacks.

Responsible

Zephyr

Reservation

09/29/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00215

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!