CVE-2026-12629
Beschrijving NL
De ARM PL011 UART-driver in drivers/serial/uart_pl011.c bevestigt ontvangstfoutinterrupties niet. Op de PL011 worden de framing-, pariteits-, break- en overrunfoutinterrupties (PL011_IMSC_ERROR_MASK) alleen gewist door naar het interrupt-wisregister UARTICR te schrijven; het lezen van het dataregister wist de RX-interrupt en de per-byte RSR-status, maar niet de foutinterruptstatus in MIS. De interruptdienstroutine pl011_isr() bevestigde alleen de CTS-modem-status interrupt en schreef nooit icr voor de foutbits, dus een beweerde fout interrupt blijft in behandeling nadat de ISR terugkeert. Wanneer een applicatie foutinterruptrapportage inschakelt via de openbare uart_irq_err_enable() API, kan een aanvaller die de seriële tegenpartij beheert, deze foutbits op een deterministische manier activeren door lijnfouten op de RX-lijn te injecteren — een baud/stopbit-mismatch of een onderbreking midden in een teken (framing/break error), een omgedraaide pariteitsbit (parity error) of FIFO-flooding (overrun error). Omdat de foutinterrupt nooit wordt gewist, blijft de interruptlijn gehandhaafd en betreedt de CPU pl011_isr() onmiddellijk en voor onbepaalde tijd opnieuw, waardoor een interrupt-storm-livelock ontstaat waarvan de kern geen voorwaartse voortgang maakt. De impact is een beschikbaarheidsweigering van service (permanente hang), bereikbaar vanaf een externe of verwijderbare UART-peer. Exploitatie wordt gated door configuratie: de foutinterrupt is standaard uitgeschakeld en geen in-tree subsysteem schakelt dit in, dus alleen toepassingen die expliciet uart_irq_err_enable() aanroepen op een op PL011 gebaseerde, interruptgestuurde poort worden beïnvloed. De oplossing zorgt ervoor dat pl011_isr() de in behandeling zijnde foutbits bevestigt via uart-> icr, waardoor de lus wordt verbroken en bovendien de vergrendelde RSR-status wordt gewist in pl011_err_check().
Origineel (Engels) tonen
The ARM PL011 UART driver in drivers/serial/uart_pl011.c fails to acknowledge receive error interrupts. On the PL011, the framing, parity, break, and overrun error interrupts (PL011_IMSC_ERROR_MASK) are cleared only by writing the interrupt-clear register UARTICR; reading the data register clears the RX interrupt and the per-byte RSR status but not the error interrupt status in MIS. The interrupt service routine pl011_isr() acknowledged only the CTS modem-status interrupt and never wrote icr for the error bits, so an asserted error interrupt remains pending after the ISR returns.
When an application enables error-interrupt reporting via the public uart_irq_err_enable() API, an attacker who controls the serial peer can deterministically assert these error bits by injecting line errors on the RX line — a baud/stop-bit mismatch or mid-character break (framing/break error), a flipped parity bit (parity error), or FIFO flooding (overrun error). Because the error interrupt is never cleared, the interrupt line stays asserted and the CPU re-enters pl011_isr() immediately and indefinitely, producing an interrupt-storm livelock from which the core makes no forward progress.
The impact is an availability-only denial of service (permanent hang), reachable from an external or removable UART peer. Exploitation is gated by configuration: the error interrupt is off by default and no in-tree subsystem enables it, so only applications that explicitly call uart_irq_err_enable() on a PL011-based, interrupt-driven port are affected. The fix makes pl011_isr() acknowledge the pending error bits via uart->icr, breaking the loop, and additionally clears the latched RSR status in pl011_err_check().