5.5medium
serial: 8250: Fix TX deadlock when using DMA
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.09% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: serial: 8250: Fix TX deadlock when using DMA `dmaengine_terminate_async` does not guarantee that the `__dma_tx_complete` callback will run. The callback is currently the only place where `dma->tx_running` gets cleared. If the transaction is canceled and the callback never runs, then `dma->tx_running` will never get cleared and we will never schedule new TX DMA transactions again. This change makes it so we clear `dma->tx_running` after we terminate the DMA transaction. This is "safe" because `serial8250_tx_dma_flush` is holding the UART port lock. The first thing the callback does is also grab the UART port lock, so access to `dma->tx_running` is serialized.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7c47e637dfadfbc691dd297b91d81ef939ca2080 before 8190f9ab6ad90cb97652adbebd238b874a4ef70d, from bf3f395b9c37956eca866c9e1679769ed7dcce68 before 79a19bd936bb35f56ef0ccab1b3b59ebce8c762d, from d470522c597b73e63cca04f3012aec28185113b7 before f76d91271bcacbd759a2e4ee3ea61faa6a727ccf, from 5e00346deb7bf40a4cf70e3716ac8e9a2409eb55 before d2719a0a9c3439abf67843a5504b7afccd9ded93, from c8a52c772c7c6de72257a435bcad03d3bb914a70 before 2a72403b985aea6b4aac3171830492f9a387f9e1, from 9e512eaaf8f4008c44ede3dfc0fbc9d9c5118583 before 5f6b17562f03fc65c7d3474ef8f1959b19d1ca41, from 9e512eaaf8f4008c44ede3dfc0fbc9d9c5118583 before b5ad887339503103d0fbe9827b16ad287597c275, from 9e512eaaf8f4008c44ede3dfc0fbc9d9c5118583 before a424a34b8faddf97b5af41689087e7a230f79ba7 and 10 more Not affected: before 6.14, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.* | CVE List |
| linux linux_kernel | from 5.4.291 before 5.5, from 5.10.235 before 5.10.253, from 5.15.179 before 5.15.203, from 6.1.129 before 6.1.167, from 6.6.79 before 6.6.130, from 6.12.16 before 6.12.78, from 6.13.4 before 6.14, from 6.14.1 before 6.18.20 and 3 more | NVD |
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: Fix TX deadlock when using DMA `dmaengine_terminate_async` does not guarantee that the `__dma_tx_complete` callback will run. The callback is currently the only place where `dma->tx_running` gets cleared. If the transaction is canceled and the callback never runs, then `dma->tx_running` will never get cleared and we will never schedule new TX DMA transactions again. This change makes it so we clear `dma->tx_running` after we terminate the DMA transaction. This is "safe" because `serial8250_tx_dma_flush` is holding the UART port lock. The first thing the callback does is also grab the UART port lock, so access to `dma->tx_running` is serialized.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: serial: 8250: Corrige el interbloqueo de TX al usar DMA ’dmaengine_terminate_async’ no garantiza que la función de devolución de llamada ’__dma_tx_complete’ se ejecute. La función de devolución de llamada es actualmente el único lugar donde ’dma -> tx_running’ se borra. Si la transacción se cancela y la función de devolución de llamada nunca se ejecuta, entonces ’dma -> tx_running’ nunca se borrará y nunca volveremos a programar nuevas transacciones TX DMA. Este cambio hace que borremos ’dma -> tx_running’ después de terminar la transacción DMA. Esto es “seguro” porque ’serial8250_tx_dma_flush’ está manteniendo el bloqueo del puerto UART. Lo primero que hace la función de devolución de llamada es también tomar el bloqueo del puerto UART, por lo que el acceso a ’dma -> tx_running’ está serializado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43061 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43061 changed 2026-11-11 | Public domain |