CVE-2026-143095: spi: tegra210-quad: Track DMA mapping state

Published Dec 3, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Track whether a DMA mapping is outstanding and the length that was mapped; skip unmapping when no mapping exists, and release the TX mapping on the RX failure path only if a TX mapping was created.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this failure path?

The affected path is in the Tegra210 QSPI SPI driver during DMA-based, multi-chunk transfers. It requires a completed chunk to be followed by a failure when mapping DMA for the next chunk.

2

What symptoms can indicate that this condition occurred?

A transfer can time out after the driver retains a stale QSPI_RDY status from a previous chunk. The timeout handler may then treat the transfer as complete, re-enter transfer handling without a DMA completion, and increment the error count.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203