CVE-2026-74654
JSON

Not scored

serial: 8250_dma: Clear stale RX state on shutdown

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: serial: 8250_dma: Clear stale RX state on shutdown serial8250_release_dma() terminates RX DMA and releases the channel, but leaves rx_running set. If the port is closed while an RX transfer is active, the stale state remains while rxchan is NULL until the channel is requested again on the next open. The DesignWare BUSY workaround added by commit a7b9ce39fbe4 ("serial: 8250_dw: Ensure BUSY is deasserted") calls serial8250_rx_dma_flush() from the LCR write path during startup. This happens before serial8250_request_dma() obtains a new RX channel. On reopen, the stale rx_running state therefore makes the flush path pass a NULL channel to dmaengine_pause(), causing a kernel Oops. Clear rx_running after terminating RX DMA, matching the TX cleanup. Also make the flush helper return if the DMA object or RX channel is not available so startup and teardown paths cannot pass a NULL channel to the DMAengine API.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before bf4fb620e02962b2b52500a4b3d8420f351eb46a, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before e10f06ee050a08930e2339b6fec7148fd0b2a8f6, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before d06cfb1add4a2d5b393e9e31f49ebbd168beea49, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before e7a5d792cf64a2096e18f1d573cc3d01cba15e92, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before 9f2444f4c0e4b06f61bae38da87c9c94c78efa86, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before ae05d9e50b6b9f246c110b3bdc03676145c2d0d4, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before e7e3cc6709caa49d1d6ce6c1f7cb305e38675cc9, from 0fcb7901f9d61a325b4c5b88c600383bcbeb97fe before e2fe6a0efecbef00e3ecc2db64dd5afa8c212b41 and 1 more
Not affected: before 3.19, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: serial: 8250_dma: Clear stale RX state on shutdown serial8250_release_dma() terminates RX DMA and releases the channel, but leaves rx_running set. If the port is closed while an RX transfer is active, the stale state remains while rxchan is NULL until the channel is requested again on the next open. The DesignWare BUSY workaround added by commit a7b9ce39fbe4 ("serial: 8250_dw: Ensure BUSY is deasserted") calls serial8250_rx_dma_flush() from the LCR write path during startup. This happens before serial8250_request_dma() obtains a new RX channel. On reopen, the stale rx_running state therefore makes the flush path pass a NULL channel to dmaengine_pause(), causing a kernel Oops. Clear rx_running after terminating RX DMA, matching the TX cleanup. Also make the flush helper return if the DMA object or RX channel is not available so startup and teardown paths cannot pass a NULL channel to the DMAengine API.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: serial: 8250_dma: Borrar estado RX obsoleto al apagarse serial8250_release_dma() termina el DMA RX y libera el canal, pero deja rx_running establecido. Si el puerto se cierra mientras una transferencia RX está activa, el estado obsoleto permanece mientras rxchan es NULL hasta que el canal es solicitado de nuevo en la siguiente apertura. La solución alternativa DesignWare BUSY añadida por el commit a7b9ce39fbe4 ('serial: 8250_dw: Ensure BUSY is deasserted') llama a serial8250_rx_dma_flush() desde la ruta de escritura LCR durante el inicio. Esto ocurre antes de que serial8250_request_dma() obtenga un nuevo canal RX. Al reabrir, el estado rx_running obsoleto, por lo tanto, hace que la ruta de vaciado pase un canal NULL a dmaengine_pause(), causando un Oops del kernel. Borrar rx_running después de terminar el DMA RX, coincidiendo con la limpieza TX. También hacer que la función auxiliar de vaciado retorne si el objeto DMA o el canal RX no está disponible para que las rutas de inicio y de desmontaje no puedan pasar un canal NULL a la API de DMAengine.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74654 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-74654 changed 2026-11-06Public domain