AZL-118100: CVE-2026-143095 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
spi: tegra210-quad: Track DMA mapping state
tegraqspidmaunmapxfer() assumes a streaming mapping is always outstanding and recomputes its length from the live tqspi->currdmawords. Nothing records whether tegraqspidmamapxfer() mapped anything, so neither assumption holds.
For a multi-chunk transfer, handledmabasedxfer() unmaps the chunk that just completed, recalculates the parameters for the next chunk, which overwrites currdmawords, and re-arms the hardware. If tegraqspistartdmabasedtransfer() then fails at its tegraqspidmamapxfer() call, nothing is mapped. That early return also sits above the smpstorerelease() that clears tqspi->transstatus, so the previous chunk's QSPIRDY survives, and the re-arm's return value is never checked, so handledmabasedxfer() returns IRQHANDLED without completing the transfer.
The caller times out, tegraqspihandletimeout() sees the stale QSPIRDY, concludes the transfer completed and calls handledmabasedxfer() again. No DMA completion arrives, so numerrors is incremented and tegraqspidmaunmapxfer() runs with nothing mapped. t->txdma then holds either the DMAMAPPINGERROR sentinel or, if the RX mapping was the one that failed, the preceding chunk's address that has already been released. Behind an IOMMU the latter frees an IOVA that may since have been reallocated.
Record whether a mapping is outstanding and the length that was mapped, and return early from tegraqspidmaunmapxfer() when there is nothing to release. isdmamapped is only updated under tqspi->lock, or on the timeout path after synchronizeirq() and cancelworksync() have quiesced the ISR and the bottom half.
Also skip releasing the TX mapping on the RX failure path unless a TX mapping was created; t->txdma is uninitialised when t->txbuf is NULL.
Affected Software
Event History
Frequently Asked Questions
What transfer pattern is implicated by the failure path?
The described path involves a multi-chunk DMA transfer on the Tegra210 QSPI driver. After one chunk completes, the driver recalculates state for the next chunk; if DMA mapping for that next chunk fails, the later timeout handling can operate on stale readiness state.
What happens after the DMA mapping failure?
The transfer may not be completed because the re-arm return value is not checked and the previous chunk's QSPI_RDY state can remain set. Timeout handling can then treat the transfer as complete and invoke DMA unmapping even though no mapping is outstanding.