CVE-2025-38720CWE-667

CVE-2025-38720

Medium · published September 4, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
1.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00115 · 1.5th percentile
Weakness
CWE-667 · Improper Locking
Published
2025-09-04T20:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.14, < 6.15.116.15.11
linux/linux_kernel≥ 6.16, < 6.16.26.16.2
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 04 SEP 15:33Z
    net: hibmcge: fix rtnl deadlock issue
    cvelistv5