iommu/amd: Put PCI device after handling PPR faults
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.109, 6.18.50, 7.2.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 978d626b8f1a239acc635323d731c77eae54eb61 · fixed in 1de4443f85e4405af00153cdf8ba73ff12a65036; From 978d626b8f1a239acc635323d731c77eae54eb61 · fixed in cfc5c1b2caa176dfd40b873a6ff07b11da34cc3e; From 978d626b8f1a239acc635323d731c77eae54eb61 · fixed in d1470e16c1977e6c94fadf6048deafaa4d150fec; From 978d626b8f1a239acc635323d731c77eae54eb61 · fixed in af3b69b16383fbc8fe5f61b5b0150d2e41ede71f
- Linux Linux
6.10
- KernelLinux
From 6.10.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4