CVE-2024-56561

Source
https://cve.org/CVERecord?id=CVE-2024-56561
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56561.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56561
Downstream
Related
Published
2024-12-27T14:23:06.288Z
Modified
2026-03-09T23:56:40.523226Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy()
Details

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 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 pcibusreleasedomainnr() and also do it before device_unregister().

[mani: reworded subject and description]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56561.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0328947c50324cf4b2d8b181bf948edb8101f59f
Fixed
c74a1df6c2a2df7dd45c3fc1a5edc29a075dcf22
Fixed
4acc902ed3743edd4ac2d3846604a99d17104359
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
a4934cd7a18d35fc57025f23773f6f19e2b2dbb1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56561.json"