CVE Catalog

CVE-2025-40219

Low risk· EPSS 7%
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

7th percentile - higher than 7% of all known CVEs

Summary

A race condition was found in the Linux kernel between SR-IOV enable/disable and hotplug operations. The previous fix using locks in sriov_del_vfs() and sriov_add_vfs() caused deadlocks when removing physical functions (PFs) with SR-IOV enabled. The new patch moves the lock to sriov_numvfs_store(), fixing the race without deadlock risk.

Risk Assessment

Organizations may face system instability or crashes when managing SR-IOV in virtualized environments, especially during dynamic PCI device hotplug, potentially leading to service disruptions.

Recommendation

Immediately update the Linux kernel to a version containing the fix (commit 05703271c3cd with lock moved to sriov_numvfs_store()). Monitor virtualized environments for signs of deadlocks.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: PCI/IOV: Fix race between SR-IOV enable/disable and hotplug Commit 05703271c3cd ("PCI/IOV: Add PCI rescan-remove locking when enabling/disabling SR-IOV") tried to fix a race between the VF removal inside sriov_del_vfs() and concurrent hot unplug by taking the PCI rescan/remove lock in sriov_del_vfs(). Similarly the PCI rescan/remove lock was also taken in sriov_add_vfs() to protect addition of VFs. This approach however causes deadlock on trying to remove PFs with SR-IOV enabled because PFs disable SR-IOV during removal and this removal happens under the PCI rescan/remove lock. So the original fix had to be reverted. Instead of taking the PCI rescan/remove lock in sriov_add_vfs() and sriov_del_vfs(), fix the race that occurs with SR-IOV enable and disable vs hotplug higher up in the callchain by taking the lock in sriov_numvfs_store() before calling into the driver's sriov_configure() callback.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS