# CVE-2025-37836: PCI: Fix reference leak in pci_register_host_bridge()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-05-09T06:41:47.341Z
- Modified: 2026-11-05T21:17:54.580Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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]

(As written by CVE List.)

## Affected

- Linux Linux: from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before f4db1b2c9ae3d013733c302ee70cac943b7070c0; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before 3297497ad2246eb9243849bfbbc57a0dea97d76e; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before b783478e0c53ffb4f04f25fb4e21ef7f482b05df; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before bd2a352a0d72575f1842d28c14c10089f0cfe1ae; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before 9707d0c932f41006a2701afc926b232b50e356b4; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before bbba4c50a2d2a1d3f3bf31cc4b8280cb492bf2c7; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before f9208aec86226524ec1cb68a09ac70e974ea6536; from 37d6a0a6f4700ad3ae7bbf8db38b4557e97b3fe4 before 804443c1f27883926de94c849d91f5b7d7d696e9; 4.10 (not affected: before 4.10; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.136 up to 6.1.*; from 6.6.89 up to 6.6.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 4.10 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.136; from 6.2 before 6.6.89; from 6.7 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/f4db1b2c9ae3d013733c302ee70cac943b7070c0> (patch)
- <https://git.kernel.org/stable/c/3297497ad2246eb9243849bfbbc57a0dea97d76e> (patch)
- <https://git.kernel.org/stable/c/b783478e0c53ffb4f04f25fb4e21ef7f482b05df> (patch)
- <https://git.kernel.org/stable/c/bd2a352a0d72575f1842d28c14c10089f0cfe1ae> (patch)
- <https://git.kernel.org/stable/c/9707d0c932f41006a2701afc926b232b50e356b4> (patch)
- <https://git.kernel.org/stable/c/bbba4c50a2d2a1d3f3bf31cc4b8280cb492bf2c7> (patch)
- <https://git.kernel.org/stable/c/f9208aec86226524ec1cb68a09ac70e974ea6536> (patch)
- <https://git.kernel.org/stable/c/804443c1f27883926de94c849d91f5b7d7d696e9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-37836](https://www.cve.org/CVERecord?id=CVE-2025-37836), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-37836](https://nvd.nist.gov/vuln/detail/CVE-2025-37836), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-37836 · Whole record: https://cve.day/CVE-2025-37836.json · Rebuilt by cve.day 2026-11-25T22:58:57.840Z
