AZL-118097: CVE-2026-143094 affecting package kernel 6.6.161.1-1
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
On both transfer-timeout error paths, stop DMA before unmapping the transfer buffers; reset the controller and clear curr_xfer as part of the recovery.
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the Tegra210 QSPI controller driver are exposed when DMA-based QSPI transfers time out. The impact is most significant on systems with an IOMMU in front of QSPI, where leaked streaming DMA mappings can gradually exhaust IOVA space.
What conditions are required to trigger the leak?
A genuine DMA-based QSPI transfer timeout must occur, and the timeout handler must be unable to confirm that the hardware completed the transfer. In that path, the interrupt bottom half does not run, so the normal DMA unmap does not occur.
How can administrators recognize that a system may be affected?
The described symptom is gradual exhaustion of IOVA space following repeated genuine QSPI transfer timeouts. The issue leaks DMA mappings per timed-out transfer chunk rather than immediately failing after a single timeout.
What recovery behavior prevents the leak in the resolved code?
The resolved timeout paths stop DMA before unmapping the transfer buffers, ensuring the DMA engine is quiesced before mappings are released. Paths that reach the normal DMA transfer handler continue to unmap the buffers there.