CVE-2026-104930 in Zephyrinfo

Summary

by MITRE • 11/29/2026

The STM32 Ethernet driver built with CONFIG_ETH_STM32_HAL_API_V2 can stop receiving permanently after it drops one frame. eth_stm32_rx() in drivers/ethernet/eth_stm32_hal_v2.c drops a received frame when net_pkt_rx_alloc_with_buffer() or net_pkt_write() fails. It releases the frame's DMA buffers and returns NULL. rx_thread() reads that NULL as "ring empty" and blocks on rx_int_sem. The HAL only re-arms RX descriptors inside the next HAL_ETH_ReadData() call, because the dropped frame's buffers were still marked in use while HAL_ETH_ReadData() ran. So that frame's descriptors are left without DMA ownership.

The drop path is reachable over the network. A remote sender can exhaust the RX packet pool (CONFIG_NET_PKT_RX_COUNT defaults to 4) by flooding the device or by filling queues that hold received packets. If the drop happens while the rest of the small descriptor ring is already full and the burst's RX-complete interrupts have been merged, no DMA-owned descriptor is left to raise another interrupt. Nothing then calls HAL_ETH_ReadData() again. Hitting this window is timing-dependent.

When it happens, Ethernet reception stays dead after the attack stops and after the packet pool recovers, until the interface is restarted or the device reboots. There is no memory corruption or information disclosure. The fix gives rx_int_sem again after a dropped frame, so the RX thread re-runs HAL_ETH_ReadData() and the descriptors are re-armed.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/29/2026

The vulnerability in question resides within the STM32 Ethernet driver implementation specifically when configured with CONFIG_ETH_STM32_HAL_API_V2. This flaw represents a critical logic error in the packet reception path that leads to a permanent denial of service condition for network connectivity on affected devices. The core technical issue stems from how the driver handles failures during buffer allocation or writing operations within the eth_stm32_rx function. When net_pkt_rx_alloc_with_buffer or net_pkt_write fails, typically due to resource exhaustion, the driver drops the received frame and releases its associated DMA buffers. Crucially, it returns NULL to indicate this failure state rather than a valid packet pointer.

The operational impact arises from how the receiving thread interprets this return value. The rx_thread function treats any NULL result as an indication that the receive ring is empty. Consequently, the thread blocks on the rx_int_sem semaphore waiting for further interrupts. This behavior creates a deadlock scenario because the hardware descriptors associated with the dropped frame are left in an inconsistent state. Specifically, while the buffers were released by the driver logic, they remained marked as in use within the DMA descriptor chain during the execution of HAL_ETH_ReadData. Because these descriptors retain ownership flags that prevent them from being re-armed for new receptions, no further receive interrupts can be generated once this specific race condition is triggered.

This vulnerability is remotely exploitable and does not require physical access to the device. An attacker on the local network segment can trigger the failure path by flooding the target with packets or filling queues that hold received data until net_pkt_rx_alloc_with_buffer fails. The default configuration for CONFIG_NET_PKT_RX_COUNT is set to four, which provides a very small buffer pool and makes it trivially easy to exhaust available resources under normal traffic loads or targeted attacks. The exploit relies on timing dependencies where the drop occurs while other descriptors in the ring are already full and RX-complete interrupts have been merged by hardware or driver logic. In this specific window, there are no DMA-owned descriptors left capable of raising an interrupt to wake up the system.

The consequence of exploiting this vulnerability is a complete cessation of Ethernet reception that persists even after the attack ceases and network resources recover. The device will not resume receiving packets until the interface is manually restarted or the entire microcontroller unit is rebooted. This effectively bricks the networking capability of the embedded device without causing memory corruption, buffer overflows, or information disclosure vulnerabilities. It represents a pure availability impact rather than confidentiality or integrity compromise.

From a classification perspective, this flaw aligns with CWE-401 Missing Release of Resource after Effective Lifetime if viewed through the lens of descriptor state management, but more accurately reflects CWE-835 Loop without Incrementing Counter due to incorrect loop termination conditions and resource handling logic. In terms of adversarial tactics, it maps to ATT&CK technique T1499 Endpoint Denial of Service via network flooding or resource exhaustion. The vulnerability highlights the dangers of assuming that releasing software-level buffers automatically resolves hardware DMA state consistency issues without explicit re-initialization steps.

The mitigation implemented in the fix addresses this by ensuring that rx_int_sem is signaled even when a frame drop occurs due to allocation failure. This allows the RX thread to continue execution and invoke HAL_ETH_ReadData again, which properly re-arms the descriptors for subsequent receptions. To prevent recurrence, developers should ensure that resource exhaustion paths always result in state cleanup sufficient to allow normal operation resumption. Additionally increasing CONFIG_NET_PKT_RX_COUNT can provide a larger buffer pool to absorb traffic spikes before allocation failures occur, though this does not fix the underlying logic error if resources are still exhausted. Proper handling of DMA descriptor ownership transitions is essential when integrating HAL drivers with network stack abstractions that may fail under load conditions.

Responsible

Zephyr

Reservation

10/02/2026

Disclosure

11/29/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!