Bug 2334451 (CVE-2024-56561) - CVE-2024-56561 kernel: PCI: endpoint: Fix PCI domain ID release in pci_epc_destroy()
Summary: CVE-2024-56561 kernel: PCI: endpoint: Fix PCI domain ID release in pci_epc_de...
Keywords:
Status: NEW
Alias: CVE-2024-56561
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 15:02 UTC by OSIDB Bzimport
Modified: 2025-01-20 15:19 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 15:02:54 UTC
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]

Comment 1 Avinash Hanwate 2024-12-28 08:04:47 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122713-CVE-2024-56561-a041@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.