VDB

CVE-2025-40219

CVE-2025-40219 PUBLISHED

PCI/IOV: Fix race between SR-IOV enable/disable and hotplug

Reported by linux · Published December 4, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-modules-extra-commonAmazon Linux1:6.12.55-74.119.amzn2023
kernel-livepatch-6.1.158-178.288Amazon Linux1:1.0-0.amzn2023
kernel-livepatch-6.12.55-74.119Amazon Linux1:1.0-0.amzn2023
kernel-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.55-74.119.amzn2023
kernelAmazon Linux1:6.1.158-178.288.amzn2023
perfAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-headersAmazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.55-74.119.amzn2023
kernel-modules-extraAmazon Linux1:6.1.158-178.288.amzn2023
python3-perfAmazon Linux1:6.1.158-178.288.amzn2023

3 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux18f9e9d150fccfa747875df6f0a9f606740762b3, 18f9e9d150fccfa747875df6f0a9f606740762b3, 18f9e9d150fccfa747875df6f0a9f606740762b3
LinuxLinux5.0, 0, 5.10.252
amazon:2023kernel6.12-modules-extra-common0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.7, 3.1.6, 3.1.5
amazon:2023kernel-livepatch-6.1.158-178.2880
amazon:2023kernel-livepatch-6.12.55-74.1190
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7, 3.1.5, 3.1.6
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel0
amazon:2023perf0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-tools0
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.6, 3.1.7, 3.1.5
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5, 3.1.6, 3.1.7

…and 20 more

Timeline

  • Nov 10, 2025 CVE Published
  • Dec 5, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (168 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (218 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40219
vulnetix vdb fixes CVE-2025-40219

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40219/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›