CVE-2026-105416

UART RX interrupt storm denial of service in ESP32 serial driver async API

Published Dec 1, 2026 CVSS 3.1 · 4.2 Medium EPSS n/a KEV · Not listed
Description
The ESP32 UART driver (drivers/serial/uart_esp32.c) arms the UART_INTR_RXFIFO_FULL and UART_INTR_RXFIFO_TOUT interrupts with a FIFO threshold of one byte when asynchronous reception is started via uart_rx_enable(). Neither asynchronous stop point masked these interrupts again. These are uart_esp32_dma_rx_done() when a buffer completes with no successor supplied, and uart_esp32_async_rx_disable(). In addition, the RX timeout work could run after the buffer was released and report UART_RX_RDY with a NULL buffer.

Once the DMA receive channel has stopped, nothing drains the UART RX FIFO. A single byte sent by the remote UART peer keeps the level-triggered RXFIFO-full condition asserted. uart_esp32_isr() clears the status without reading the FIFO and is re-entered continuously. In-tree users such as the async Modbus serial transport (which calls uart_rx_disable() around every transmission), the async shell UART backend (which stops RX when its buffers are exhausted) and the async modem UART backend (on close) all reach this state during normal operation. A peer can also force buffer exhaustion by flooding the line.

The resulting interrupt storm starves the system timer and all threads, hanging the device until a watchdog or manual reset. A device on the UART link (for example another node on an RS-485 bus or an external modem/sensor) can therefore cause a persistent denial of service. Only ESP32 SoCs using the UART asynchronous (DMA) API are affected; the interrupt-driven and polling APIs are not.

Analysis

AI-generated

Technical impact

The ESP32 UART driver configures RXFULL and RXTOUT interrupts with a one‑byte threshold for asynchronous reception but never disables these interrupts when the DMA channel stops. When a remote peer sends data or when the receive buffer is exhausted, the RXFULL condition remains triggered. The ISR clears the status without draining the FIFO, causing continuous re‑entry of the interrupt routine and starving the system timer and all threads. This results in the device hanging until a watchdog reset or manual intervention. The vulnerability therefore provides a persistent denial of service on the affected SoC.

Affected Systems

All Zephyr‑based ESP32 systems that use the UART asynchronous DMA API are affected. The bug resides in drivers/serial/uart_esp32.c for the ESP32 family. Systems that rely on the async Modbus transport, the async shell UART backend, or the async modem UART backend will hit this state during normal operation. Interrupt‑driven or polling UART APIs are not impacted.

Risk and Exploitability

The CVSS score of 4.2 indicates a moderate severity. EPSS data is not available, and the issue is not currently listed in CISA's KEV catalog. The likely attack vector is a UART line exposed to a remote device; an attacker can send a single byte or flood the line to exhaust the buffer and trigger the interrupt storm. Because the fault involves hardware interrupts, the exploit is local to the UART interface but can be initiated by any remote UART peer such as an RS‑485 node or external modem. Successful exploitation leads to a complete denial of service until the device is reset.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Zephyr source tree to a version that includes the fix applied in commit ad57e7b86f556a780fb88210e0530dbf1e4c245b. This commit clears pending UART interrupts when the DMA channel stops and protects against null buffers.
  • Configure the system to avoid using the UART asynchronous DMA API; switch to interrupt‑driven or polling UART drivers if high‑throughput asynchronous reception is not required.
  • If an upgrade cannot be performed, implement a local patch or wrapper that explicitly disables RX interrupts and clears the FIFO after DMA completion or before performing a new transmission, ensuring no null buffers remain in the FIFO.

Generated by OpenCVE AI on December 1, 2026 at 20:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
Vendors & Products Zephyrproject
Zephyrproject zephyr
Type Values Removed Values Added
Description The ESP32 UART driver (drivers/serial/uart_esp32.c) arms the UART_INTR_RXFIFO_FULL and UART_INTR_RXFIFO_TOUT interrupts with a FIFO threshold of one byte when asynchronous reception is started via uart_rx_enable(). Neither asynchronous stop point masked these interrupts again. These are uart_esp32_dma_rx_done() when a buffer completes with no successor supplied, and uart_esp32_async_rx_disable(). In addition, the RX timeout work could run after the buffer was released and report UART_RX_RDY with a NULL buffer. Once the DMA receive channel has stopped, nothing drains the UART RX FIFO. A single byte sent by the remote UART peer keeps the level-triggered RXFIFO-full condition asserted. uart_esp32_isr() clears the status without reading the FIFO and is re-entered continuously. In-tree users such as the async Modbus serial transport (which calls uart_rx_disable() around every transmission), the async shell UART backend (which stops RX when its buffers are exhausted) and the async modem UART backend (on close) all reach this state during normal operation. A peer can also force buffer exhaustion by flooding the line. The resulting interrupt storm starves the system timer and all threads, hanging the device until a watchdog or manual reset. A device on the UART link (for example another node on an RS-485 bus or an external modem/sensor) can therefore cause a persistent denial of service. Only ESP32 SoCs using the UART asynchronous (DMA) API are affected; the interrupt-driven and polling APIs are not.
Title UART RX interrupt storm denial of service in ESP32 serial driver async API
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
zephyr
Published
Updated
Dec 1, 2026, 2:23 PM
Reserved
Oct 5, 2026, 11:28 AM
Status
Awaiting Analysis
Published
Dec 1, 2026, 3:17 PM
Modified
Dec 1, 2026, 3:17 PM