iommu/amd: Put PCI device after handling PPR faults
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d1470e16c1977e6c94fadf6048deafaa4d150fec, Kernel 1de4443f85e4405af00153cdf8ba73ff12a65036, Kernel af3b69b16383fbc8fe5f61b5b0150d2e41ede71f and 4 more.
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Put PCI device after handling PPR faults iommu_call_iopf_notifier() looks up the requester with pci_get_domain_bus_and_slot(), which returns a PCI device with its reference count incremented. Neither the successful iommu_report_device_fault() path nor the abort path drops that reference, so every handled PPR request leaks a PCI device reference. This is the same ownership rule that was fixed for the old iommu_v2 ppr_notifier() path by commit 6cf0981c2233 ("iommu/amd: Fix pci device refcount leak in ppr_notifier()"), but iommu_call_iopf_notifier() was added later as a separate PPR/IOPF notifier path. Drop the PCI device reference after handling the PPR entry.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=978d626b8f1a239acc635323d731c77eae54eb61 <d1470e16c1977e6c94fadf6048deafaa4d150fec, >=978d626b8f1a239acc635323d731c77eae54eb61 <1de4443f85e4405af00153cdf8ba73ff12a65036, >=978d626b8f1a239acc635323d731c77eae54eb61 <af3b69b16383fbc8fe5f61b5b0150d2e41ede71f, >=978d626b8f1a239acc635323d731c77eae54eb61 <cfc5c1b2caa176dfd40b873a6ff07b11da34cc3e, =6.10 | d1470e16c1977e6c94fadf6048deafaa4d150fec, 1de4443f85e4405af00153cdf8ba73ff12a65036, af3b69b16383fbc8fe5f61b5b0150d2e41ede71f, cfc5c1b2caa176dfd40b873a6ff07b11da34cc3e |
| linux-kernel: Kernel | >=6.13.0 <6.18.50, >=6.19.0 <7.2.4, >=6.10.0 <6.12.109 | 6.18.50, 7.2.4, 6.12.109 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket