CVE-2025-40219: Linux
EPSS: 0.2% chance of exploitation in the next 30 days.
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.
Affected products
- Linux Linux: from 5.0, before 5.10.252 (fixed in 5.10.252); from 5.11, before 5.15.202 (fixed in 5.15.202); from 5.16, before 6.1.165 (fixed in 6.1.165); from 6.2, before 6.6.128 (fixed in 6.6.128); from 6.7, before 6.12.75 (fixed in 6.12.75); from 6.13, before 6.18.16 (fixed in 6.18.16); …
- Siemens SIMATIC s7-1500 CPU 1518-4 Pn/dp Mfp: from V3.1.6; from V3.1.5
- Siemens SIMATIC s7-1500 CPU 1518f-4 Pn/dp Mfp: from V3.1.6; from V3.1.5
- Siemens Siplus s7-1500 CPU 1518-4 Pn/dp Mfp: from V3.1.6; from V3.1.5
Published 2025-12-04. Last modified 2026-07-14.