PT-2026-166950
CVE-2026-143095
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
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.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾