CVE-2026-64528
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
tty: serial: samsung: Verwijder redundante poortvergrendeling acquisitie in rx helpers
Sashiko constateerde een impasse wanneer de consolestroom is ingeschakeld [1]. Wanneer de stroomregeling van de console is ingeschakeld (UPF_CONS_FLOW),
s3c24xx_serial_stop_tx() roept s3c24xx_serial_rx_enable() aan en
s3c24xx_serial_start_tx() roept s3c24xx_serial_rx_disable() aan. Het serial core framework roept de .stop_tx() en .start_tx() aan
terugbellen met de port->lock spinlock al vast. Verder zijn alle
interne driverpaden die stop_tx oproepen (zoals de DMA TX
completion handler s3c24xx_serial_tx_dma_complete() of de PIO TX IRQ
handler s3c24xx_serial_tx_irq()) verkrijgt ook poort->vergrendeling voorafgaand aan
aanroepen. (Merk op dat s3c24xx_serial_start_tx() alleen wordt aangeroepen door de
seriële kern). Echter, s3c24xx_serial_rx_enable() en s3c24xx_serial_rx_disable()
probeer onvoorwaardelijk opnieuw poort->vergrendeling te verkrijgen met behulp van
uart_port_lock_irqsave(). Aangezien spinlocks niet recursief zijn, is dit
veroorzaakt een impasse op dezelfde CPU wanneer de stroomregeling van de console is ingeschakeld. Verwijder de redundante vergrendeling van beide rx-helperfuncties.
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
tty: serial: samsung: Remove redundant port lock acquisition in rx helpers
Sashiko identified a deadlock when the console flow is engaged [1].
When console flow control is enabled (UPF_CONS_FLOW),
s3c24xx_serial_stop_tx() calls s3c24xx_serial_rx_enable() and
s3c24xx_serial_start_tx() calls s3c24xx_serial_rx_disable().
The serial core framework invokes the .stop_tx() and .start_tx()
callbacks with the port->lock spinlock already held. Furthermore, all
internal driver paths that invoke stop_tx (such as the DMA TX
completion handler s3c24xx_serial_tx_dma_complete() or the PIO TX IRQ
handler s3c24xx_serial_tx_irq()) also acquire port->lock prior to
calling it. (Note that s3c24xx_serial_start_tx() is only invoked by the
serial core).
However, s3c24xx_serial_rx_enable() and s3c24xx_serial_rx_disable()
unconditionally attempt to acquire port->lock again using
uart_port_lock_irqsave(). Since spinlocks are not recursive, this
causes a deadlock on the same CPU when console flow control is engaged.
Remove the redundant lock acquisition from both rx helper functions.