CVE-2026-143094: spi: tegra210-quad: Unmap DMA buffers on transfer timeout
In the Linux kernel, the following vulnerability has been resolved:
spi: tegra210-quad: Unmap DMA buffers on transfer timeout
tegraqspistartdmabasedtransfer() maps the client TX/RX buffers with dmamapsingle() via tegraqspidmamapxfer(). The matching unmap only happens in handledmabasedxfer(), which runs from the interrupt bottom half.
When waitforcompletiontimeout() expires and tegraqspihandletimeout() cannot establish that the hardware finished, it returns an error without the bottom half ever having run. Both transfer paths then abort the transfer with tegraqspidmastop(), reset the controller and clear currxfer, but never unmap the buffers. Every genuine transfer timeout therefore leaks the streaming DMA mappings for that chunk, which gradually exhausts the IOVA space on systems with an IOMMU in front of QSPI.
Unmap the transfer after stopping DMA on both timeout error paths. The unmap is placed after tegraqspidmastop() so the DMA engine is quiesced before the mappings go away.
The recovery paths that do reach handledmabasedxfer() unmap there themselves. The preceding patch makes tegraqspidmaunmapxfer() a no-op once the mapping is released, so this cleanup cannot unmap twice or run against a chunk that was never mapped.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In both transfer-timeout error paths, stop DMA before unmapping the transfer buffers.
Event History
Frequently Asked Questions
Which systems are most exposed to this issue?
Systems using the Tegra210 QSPI controller with an IOMMU in front of QSPI are most exposed, because unreleased streaming DMA mappings can gradually exhaust IOVA space.
What must occur for the resource leak to happen?
A genuine DMA-based transfer timeout must occur where the timeout handler cannot determine that the hardware completed the transfer. In that path, DMA is stopped and the controller is reset, but the mapped TX/RX buffers were previously left mapped.