CVE-2024-56561

Source
https://cve.org/CVERecord?id=CVE-2024-56561
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56561.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56561
Downstream
Related
Published
2024-12-27T14:23:06Z
Modified
2026-10-08T02:48:51Z
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 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]

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
6.11.4
Fixed
6.12
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a4934cd7a18d35fc57025f23773f6f19e2b2dbb1

Affected versions

v6.*
v6.11.10
v6.11.11
v6.11.4
v6.11.5
v6.11.6
v6.11.7
v6.11.8
v6.11.9

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.4

Database specific

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