iommu/amd: Fix pci device refcount leak in ppr_notifier()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ daae2d25a4779b272a66ddd01f5810bcee822b9e · < 902cc2507091a81643502d8ceb0e2f105e902518| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommu/amd: Fix pci device refcount leak in ppr_notifier()
As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So call it before returning from ppr_notifier() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel's AMD IOMMU ppr_notifier() can leak a PCI device reference count by failing to release a reference it acquired. The input does not specify how an attacker could trigger the leak or whether access or user interaction is required.
Engineers running the Linux kernel should check their version against the vendor advisory; affected versions are not specified in the input.