Bug 2365258 (CVE-2025-37836) - CVE-2025-37836 kernel: PCI: Fix reference leak in pci_register_host_bridge()
Summary: CVE-2025-37836 kernel: PCI: Fix reference leak in pci_register_host_bridge()
Keywords:
Status: NEW
Alias: CVE-2025-37836
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-09 07:02 UTC by OSIDB Bzimport
Modified: 2025-05-09 07:46 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-09 07:02:12 UTC
In the Linux kernel, the following vulnerability has been resolved:

PCI: Fix reference leak in pci_register_host_bridge()

If device_register() fails, call put_device() to give up the reference to
avoid a memory leak, per the comment at device_register().

Found by code review.

[bhelgaas: squash Dan Carpenter's double free fix from
https://lore.kernel.org/r/db806a6c-a91b-4e5a-a84b-6b7e01bdac85@stanley.mountain]


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