iommu/tegra241-cmdqv: Free the error IRQ before tearing down VINTFs
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 735698e81f798b4c02dcb6291ffbdd1b962c8c66, Kernel 076a4f5b1fc2016b973a12bc2ebb9b730e5e1e48, Kernel 421f5ab135cd4a1353891e5bf2602cfc3c01afc7 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: iommu/tegra241-cmdqv: Free the error IRQ before tearing down VINTFs tegra241_cmdqv_remove() tears each VINTF down first, then calls free_irq(). Tearing a VINTF down frees vintf0 and clears cmdqv->vintfs[0]. An error in that window makes tegra241_cmdqv_isr() read the stale slot and hand it to tegra241_vintf0_handle_error(), which dereferences a NULL or freed pointer. Free the IRQ before tearing the VINTFs down. free_irq() waits for in-flight handlers to finish and blocks new ones, so no ISR can observe a VINTF as it is torn down. Note: a user-owned VINTF (viommu) could outlive this teardown, which unmaps cmdqv->base and frees cmdqv->vintfs, so a later viommu close then touches freed memory. This is neither introduced nor fixed here: a physical IOMMU is not a pluggable device, so iommufd by design holds no reference on the one behind a viommu, and this teardown is not expected while that viommu is still alive.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=918eb5c856f6ce4cf93b4b38e4b5e156905c5943 <735698e81f798b4c02dcb6291ffbdd1b962c8c66, >=918eb5c856f6ce4cf93b4b38e4b5e156905c5943 <076a4f5b1fc2016b973a12bc2ebb9b730e5e1e48, >=918eb5c856f6ce4cf93b4b38e4b5e156905c5943 <421f5ab135cd4a1353891e5bf2602cfc3c01afc7, >=918eb5c856f6ce4cf93b4b38e4b5e156905c5943 <61f0d437988e5730b04442f6a7d30a9907339f2a, =6.12 | 735698e81f798b4c02dcb6291ffbdd1b962c8c66, 076a4f5b1fc2016b973a12bc2ebb9b730e5e1e48, 421f5ab135cd4a1353891e5bf2602cfc3c01afc7, 61f0d437988e5730b04442f6a7d30a9907339f2a |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.12.0 <6.12.110 | 6.18.52, 7.2.6, 6.12.110 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket