CVE-2024-56561: PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy()
Vulnerability summary
CVE-2024-56561 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.9% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 11Timeline
- 27-12-2024PublishedVulnerability first disclosed.
- 23-05-2026Last modifiedVulnerability information updated.
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]
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
13%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu97 products
- linux< 6.8.0-58.60
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1027.29
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 0328947c50324cf4b2d8b181bf948edb8101f59f, < c74a1df6c2a2df7dd45c3fc1a5edc29a075dcf22 | ≥ 0328947c50324cf4b2d8b181bf948edb8101f59f, < 4acc902ed3743edd4ac2d3846604a99d17104359 | a4934cd7a18d35fc57025f23773f6f19e2b2dbb1 | ≥ 6.11.4, < 6.12 | 6.12
- linux_kernel≥ 6.11.4, < 6.12.4
Debian1 product
- linux< 6.12.5-1
3 vendors · 100 products