Linux
spi: tegra210-quad: Fix timeout handling
In the Linux kernel, the following vulnerability has been resolved: spi: tegra210-quad: Fix timeout handling When the CPU that the QSPI interrupt handler runs on (typically CPU 0) is excessively busy, it can lead to rare cases of the IRQ thread not running before the transfer timeout is reached. While handling the timeouts, any pending transfers are cleaned up and the message that they correspond to is marked as failed, which leaves the curr_xfer field pointing at stale memory. To avoid this, clear curr_xfer to NULL upon timeout and check for this condition when the IRQ thread is finally run. While at it, also make sure to clear interrupts on failure so that new interrupts can be run. A better, more involved, fix would move the interrupt clearing into a hard IRQ handler. Ideally we would also want to signal that the IRQ thread no longer needs to be run after the timeout is hit to avoid the extra check for a valid transfer.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < 88db8bb7ed1bb474618acdf05ebd4f0758d244e2
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < 83309dd551cfd60a5a1a98d9cab19f435b44d46d
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < c934e40246da2c5726d14e94719c514e30840df8
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < 551060efb156c50fe33799038ba8145418cfdeef
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < bb0c58be84f907285af45657c1d4847b960a12bf
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < 01bbf25c767219b14c3235bfa85906b8d2cb8fbc
- >= 921fc1838fb036f690b8ba52e6a6d3644b475cbb, < b4e002d8a7cee3b1d70efad0e222567f92a73000
Fixed in 88db8bb7ed1bb474618acdf05ebd4f0758d244e2, 83309dd551cfd60a5a1a98d9cab19f435b44d46d, c934e40246da2c5726d14e94719c514e30840df8, 551060efb156c50fe33799038ba8145418cfdeef, bb0c58be84f907285af45657c1d4847b960a12bf, 01bbf25c767219b14c3235bfa85906b8d2cb8fbc, b4e002d8a7cee3b1d70efad0e222567f92a73000
- 5.12
Fixed in 0, 5.15.198, 6.1.160, 6.6.120, 6.12.63, 6.17.13, 6.18.2, 6.19
Mitigation
Upgrade Linux to 88db8bb7ed1bb474618acdf05ebd4f0758d244e2 or 83309dd551cfd60a5a1a98d9cab19f435b44d46d or c934e40246da2c5726d14e94719c514e30840df8 or 551060efb156c50fe33799038ba8145418cfdeef or bb0c58be84f907285af45657c1d4847b960a12bf or 01bbf25c767219b14c3235bfa85906b8d2cb8fbc or b4e002d8a7cee3b1d70efad0e222567f92a73000 or later.
Upgrade Linux to 0 or 5.15.198 or 6.1.160 or 6.6.120 or 6.12.63 or 6.17.13 or 6.18.2 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.