iommu/arm-smmu-v3: Manage teardown with devm
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 981686f4137760a16a03c5193f11d85133533f93, Kernel 041b5e2a2a31c62049af30c5716099eebab86cb8, Kernel 2235eafda9b3df9295efd0593cd4a8977440c3f6 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: iommu/arm-smmu-v3: Manage teardown with devm arm_smmu_device_remove() manually frees the IOPF queue, destroys the vmid_map and disables the device, while the IRQs and queues are devm managed. devm unwinds only after remove() returns, so the cleanup runs in the wrong order. The IOPF queue is freed before the event-queue IRQ whose handler uses it. Manage all of it with devm so the unwind order is correct. Free the IOPF queue and vmid_map via devm actions, and disable the device from one registered after arm_smmu_device_reset(). This is also a prerequisite for fixing a Tegra241 CMDQV CMD_SYNC use-after-free in the subsequent patch.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=395ad89d11fd93f79a6b942e91fc409807a63c4b <981686f4137760a16a03c5193f11d85133533f93, >=395ad89d11fd93f79a6b942e91fc409807a63c4b <041b5e2a2a31c62049af30c5716099eebab86cb8, >=395ad89d11fd93f79a6b942e91fc409807a63c4b <2235eafda9b3df9295efd0593cd4a8977440c3f6, >=395ad89d11fd93f79a6b942e91fc409807a63c4b <2bd22a0d40503a65d243b011de146603c8ce1cbc, >=395ad89d11fd93f79a6b942e91fc409807a63c4b <64b1a9384db9cabf1bde378a2d5c1923fd67ea0d, >=395ad89d11fd93f79a6b942e91fc409807a63c4b <78fd5a2d65f3546cb4285f8e52f445baecbd00e0, =5.14 | 981686f4137760a16a03c5193f11d85133533f93, 041b5e2a2a31c62049af30c5716099eebab86cb8, 2235eafda9b3df9295efd0593cd4a8977440c3f6, 2bd22a0d40503a65d243b011de146603c8ce1cbc, 64b1a9384db9cabf1bde378a2d5c1923fd67ea0d, 78fd5a2d65f3546cb4285f8e52f445baecbd00e0 |
| linux-kernel: Kernel | >=6.13.0 <6.18.50, >=6.19.0 <7.2.4, >=6.2.0 <6.6.160, >=6.7.0 <6.12.109, >=5.14.0 <6.1.191 | 6.18.50, 7.2.4, 6.6.160, 6.12.109, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket