First published: Fri Dec 27 2024(Updated: )
In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy() pci_epc_destroy() invokes pci_bus_release_domain_nr() to release the PCI domain ID, but there are two issues: - 'epc->dev' is passed to pci_bus_release_domain_nr() which was already freed by device_unregister(), 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 pci_bus_release_domain_nr() and also do it before device_unregister(). [mani: reworded subject and description]
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=6.11.4<6.12.4 | |
debian/linux | 5.10.223-1 5.10.234-1 6.1.129-1 6.1.128-1 6.12.20-1 6.12.21-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-56561 is classified as a medium-severity vulnerability in the Linux kernel.
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.
CVE-2024-56561 affects Linux kernel versions between 6.11.4 and 6.12.4.
CVE-2024-56561 involves a fix for the incorrect release of PCI domain IDs in the pci_epc_destroy() function.
CVE-2024-56561 was disclosed as part of Linux kernel updates related to PCI endpoint vulnerabilities.