CVE-2024-56561

Source
https://nvd.nist.gov/vuln/detail/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-27T15:15:14Z
Modified
2025-02-11T16:15:43Z
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
[none]
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]

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.5-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}