CVE-2025-38720

Source
https://cve.org/CVERecord?id=CVE-2025-38720
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38720.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38720
Downstream
Published
2025-09-04T15:33:14.057Z
Modified
2026-04-02T12:48:05.599729Z
Summary
net: hibmcge: fix rtnl deadlock issue
Details

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

net: hibmcge: fix rtnl deadlock issue

Currently, the hibmcge netdev acquires the rtnllock in pcierrorhandlers.resetprepare() and releases it in pcierrorhandlers.reset_done().

However, in the PCI framework: pciresetbus - _pciresetslot - pcislotsaveanddisablelocked - pcidevsaveanddisable - errhandler->resetprepare(dev);

In pcislotsaveanddisablelocked(): listforeachentry(dev, &slot->bus->devices, buslist) { if (!dev->slot || dev->slot!= slot) continue; pcidevsaveanddisable(dev); if (dev->subordinate) pcibussaveanddisablelocked(dev->subordinate); }

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

Since the driver now executes netifdevicedetach() 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 rtnllock during the reset process and adjusts the position of HBGNICSTATERESETTING to ensure that multiple resets are not executed concurrently.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38720.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3f5a61f6d504f55ed1a36cce044d5123d508721f
Fixed
d85a6346fd6f595c4914205762d0cdf35c004a5e
Fixed
1343a8994ca7dba78f5dd818e89d68331c21c35d
Fixed
c875503a9b9082928d7d3fc60b5400d16fbfae4e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38720.json"