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

Published Dec 27, 2024
·
Updated

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

2 affected componentsFixes available
Linux Linux kernel>=6.11.4<6.12.4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1

Event History

Dec 27, 2024
CVE Published
via MITRE·02:23 PM
Data Sourced
via MITRE·02:23 PM
Description
Mar 27, 2025
Data Sourced
via Launchpad·06:44 PM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·06:50 PM
RemedyDescriptionSeverityAffected Software
May 14, 2025
Data Sourced
via Debian·06:53 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-56561?

CVE-2024-56561 is classified as a medium-severity vulnerability in the Linux kernel.

2

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.

3

What systems are affected by CVE-2024-56561?

CVE-2024-56561 affects Linux kernel versions between 6.11.4 and 6.12.4.

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203