# CVE-2025-38720: net: hibmcge: fix rtnl deadlock issue

- 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.13%, higher than 2% of CVEs (2026-12-02)
- Published: 2025-09-04T15:33:14.057Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: hibmcge: fix rtnl deadlock issue

Currently, the hibmcge netdev acquires the rtnl_lock in
pci_error_handlers.reset_prepare() and releases it in
pci_error_handlers.reset_done().

However, in the PCI framework:
pci_reset_bus - __pci_reset_slot - pci_slot_save_and_disable_locked -
 pci_dev_save_and_disable - err_handler->reset_prepare(dev);

In pci_slot_save_and_disable_locked():
	list_for_each_entry(dev, &slot->bus->devices, bus_list) {
		if (!dev->slot || dev->slot!= slot)
			continue;
		pci_dev_save_and_disable(dev);
		if (dev->subordinate)
			pci_bus_save_and_disable_locked(dev->subordinate);
	}

This will iterate through all devices under the current bus and execute
err_handler->reset_prepare(), causing two devices of the hibmcge driver
to sequentially request the rtnl_lock, leading to a deadlock.

Since the driver now executes netif_device_detach()
before the reset process, it will not concurrently with
other netdev APIs, so there is no need to hold the rtnl_lock now.

Therefore, this patch removes the rtnl_lock during the reset process and
adjusts the position of HBG_NIC_STATE_RESETTING to ensure
that multiple resets are not executed concurrently.

(As written by CVE List.)

## Affected

- Linux Linux: from 3f5a61f6d504f55ed1a36cce044d5123d508721f before d85a6346fd6f595c4914205762d0cdf35c004a5e; from 3f5a61f6d504f55ed1a36cce044d5123d508721f before 1343a8994ca7dba78f5dd818e89d68331c21c35d; from 3f5a61f6d504f55ed1a36cce044d5123d508721f before c875503a9b9082928d7d3fc60b5400d16fbfae4e; 6.14 (not affected: before 6.14; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.14 before 6.15.11; from 6.16 before 6.16.2; 6.17

## References

- <https://git.kernel.org/stable/c/d85a6346fd6f595c4914205762d0cdf35c004a5e> (patch)
- <https://git.kernel.org/stable/c/1343a8994ca7dba78f5dd818e89d68331c21c35d> (patch)
- <https://git.kernel.org/stable/c/c875503a9b9082928d7d3fc60b5400d16fbfae4e> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-38720 · Whole record: https://cve.day/CVE-2025-38720.json · Rebuilt by cve.day 2026-11-25T22:59:04.158Z
