CVE-2026-104930: STM32 Ethernet driver (HAL API v2) RX path stalls permanently after a dropped frame
The STM32 Ethernet driver built with CONFIGETHSTM32HALAPIV2 can stop receiving permanently after it drops one frame. ethstm32rx() in drivers/ethernet/ethstm32halv2.c drops a received frame when netpktrxallocwithbuffer() or netpktwrite() fails. It releases the frame's DMA buffers and returns NULL. rxthread() reads that NULL as "ring empty" and blocks on rxintsem. The HAL only re-arms RX descriptors inside the next HALETHReadData() call, because the dropped frame's buffers were still marked in use while HALETHReadData() 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 (CONFIGNETPKTRXCOUNT 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 HALETHReadData() 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 rxintsem again after a dropped frame, so the RX thread re-runs HALETHReadData() and the descriptors are re-armed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
Restart the Ethernet interface or reboot the device to restore reception after the RX path stalls.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Zephyr deployments using the STM32 Ethernet driver built with CONFIG_ETH_STM32_HAL_API_V2 are exposed. The trigger is reachable remotely over the network.
What does an attacker need to do to trigger the failure?
An unauthenticated remote sender must exhaust the RX packet pool, such as by flooding the device or filling queues that retain received packets. The failure also depends on a timing-sensitive condition in which the descriptor ring is full and RX-complete interrupts from the burst have been merged.
Does the default RX packet-pool setting contribute to exposure?
Yes. CONFIG_NET_PKT_RX_COUNT defaults to 4, leaving a small RX packet pool that a remote sender can exhaust.
How can an affected device be identified during or after an attack?
Ethernet reception remains unavailable after the triggering traffic stops and after packet-pool pressure is relieved. The RX path can be stalled waiting on rx_int_sem because no DMA-owned descriptor remains to generate a further receive interrupt.