CVE-2025-40219
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel-livepatch-6.1.158-178.288 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-livepatch-6.12.55-74.119 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| perf | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
3 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 18f9e9d150fccfa747875df6f0a9f606740762b3, 18f9e9d150fccfa747875df6f0a9f606740762b3, 18f9e9d150fccfa747875df6f0a9f606740762b3 |
| Linux | Linux | 5.0, 0, 5.10.252 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | 3.1.7, 3.1.6, 3.1.5 |
| amazon:2023 | kernel-livepatch-6.1.158-178.288 | 0 |
| amazon:2023 | kernel-livepatch-6.12.55-74.119 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.7, 3.1.5, 3.1.6 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.6, 3.1.7, 3.1.5 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.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
References
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html url
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html url
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html url
- https://git.kernel.org/stable/c/1e8a80290f964bdbad225221c8a1594c7e01c8fd url
- https://git.kernel.org/stable/c/a645ca21de09e3137cbb224fa6c23cca873a1d01 url
- https://git.kernel.org/stable/c/a24219172456f035d886857e265ca24c85b167c8 url
- https://git.kernel.org/stable/c/53154cd40ccf285f1d1c24367824082061d155bd url
- https://git.kernel.org/stable/c/ee40e5db052d7c6f406fdb95ad639c894c74674c url
- https://git.kernel.org/stable/c/5c1cd7d405e94dc6cb320cc0cc092b74895b6ddf url
- https://git.kernel.org/stable/c/36039348bca77828bf06eae41b8f76e38cd15847 url
- https://git.kernel.org/stable/c/05703271c3cdcc0f2a8cf6ebdc45892b8ca83520 url