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.
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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Sun, 29 Nov 2026 21:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | STM32 Ethernet driver (HAL API v2) RX path stalls permanently after a dropped frame | |
| Weaknesses | CWE-400 | |
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: zephyr
Published:
Updated: 2026-11-29T20:56:49.665Z
Reserved: 2026-10-02T16:55:47.930Z
Link: CVE-2026-104930
No data.
Status : Awaiting Analysis
Published: 2026-11-29T21:17:01.743
Modified: 2026-11-29T21:17:01.850
Link: CVE-2026-104930
No data.
OpenCVE Enrichment
No data.
Weaknesses