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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-12-27T14:23:06.288Z
- Modified: 2026-06-17T08:12:25.117Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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]

(As written by CVE List.)

## Affected

- Linux Linux: from 0328947c50324cf4b2d8b181bf948edb8101f59f before c74a1df6c2a2df7dd45c3fc1a5edc29a075dcf22; from 0328947c50324cf4b2d8b181bf948edb8101f59f before 4acc902ed3743edd4ac2d3846604a99d17104359; a4934cd7a18d35fc57025f23773f6f19e2b2dbb1; from 6.11.4 before 6.12; 6.12 (not affected: before 6.12; from 6.12.4 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.11.4 before 6.12.4

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c74a1df6c2a2df7dd45c3fc1a5edc29a075dcf22> (patch)
- <https://git.kernel.org/stable/c/4acc902ed3743edd4ac2d3846604a99d17104359> (patch)

## Sources

- CVE List: [CVE-2024-56561](https://www.cve.org/CVERecord?id=CVE-2024-56561), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-56561](https://nvd.nist.gov/vuln/detail/CVE-2024-56561), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56561 · Whole record: https://cve.day/CVE-2024-56561.json · Rebuilt by cve.day 2026-11-25T22:58:50.451Z
