CVE-2024-56561: PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy()
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: Fix PCI domain ID release in pciepcdestroy()
pciepcdestroy() invokes pcibusreleasedomainnr() to release the PCI domain ID, but there are two issues:
- 'epc->dev' is passed to pcibusreleasedomainnr() which was already freed by deviceunregister(), leading to a use-after-free issue.
- Domain ID corresponds to the EPC device parent, so passing 'epc->dev' is also wrong.
Fix these issues by passing 'epc->dev.parent' to pcibusreleasedomainnr() and also do it before deviceunregister().
[mani: reworded subject and description]
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56561?
CVE-2024-56561 is classified as a medium-severity vulnerability in the Linux kernel.
How do I fix CVE-2024-56561?
To fix CVE-2024-56561, update the Linux kernel to versions 5.10.223-1, 5.10.234-1, 6.1.129-1, 6.1.128-1, 6.12.19-1, or 6.12.20-1.
What systems are affected by CVE-2024-56561?
CVE-2024-56561 affects Linux kernel versions between 6.11.4 and 6.12.4.
What is the nature of the vulnerability CVE-2024-56561?
CVE-2024-56561 involves a fix for the incorrect release of PCI domain IDs in the pci_epc_destroy() function.
When was CVE-2024-56561 disclosed?
CVE-2024-56561 was disclosed as part of Linux kernel updates related to PCI endpoint vulnerabilities.