# CVE-2026-143095

- Bağlantı: https://www.allsafe.com.tr/cve-2026-143095/
- Yayımlanma: 2026-12-03T13:17:40+03:00
- Yazar: Postmaster

In the Linux kernel, the following vulnerability has been resolved:

spi: tegra210-quad: Track DMA mapping state

tegra_qspi_dma_unmap_xfer() assumes a streaming mapping is always
 outstanding and
recomputes its length from the live tqspi->curr_dma_words. Nothing records whether
tegra_qspi_dma_map_xfer() mapped anything, so neither assumption holds.

For a multi-chunk transfer, handle_dma_based_xfer() unmaps the chunk that
 just 
completed, recalculates the parameters for the next chunk, which overwrites curr_dma_words,
and re-arms the hardware. If tegra_qspi_start_dma_based_transfer() then fails at
its tegra_qspi_dma_map_xfer() call, nothing is mapped. That early return also sits
above the smp_store_release() that clears tqspi->trans_status, so the previous chunk's
QSPI_RDY survives, and the re-arm's return value is never checked, so handle_dma_based_xfer()
returns IRQ_HANDLED without completing the transfer.

The caller times out, tegra_qspi_handle_timeout() sees the stale QSPI_RDY,
 concludes
the transfer completed and calls handle_dma_based_xfer() again. No DMA completion
arrives, so num_errors is incremented and tegra_qspi_dma_unmap_xfer() runs with 
nothing mapped. t->tx_dma then holds either the DMA_MAPPING_ERROR 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 tegra_qspi_dma_unmap_xfer() when there is nothing to release. is_dma_mapped
is only updated under tqspi->lock, or on the timeout path after synchronize_irq()
and cancel_work_sync() 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->tx_dma is uninitialised when t->tx_buf is NULL.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-143095)
