7.8
CWE
416
Advisory Published
Updated

CVE-2024-56561: PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy()

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203