{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40219","id":"CVE-2025-40219","title":"PCI/IOV: Fix race between SR-IOV enable/disable and hotplug","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/IOV: Fix race between SR-IOV enable/disable and hotplug\n\nCommit 05703271c3cd (\"PCI/IOV: Add PCI rescan-remove locking when\nenabling/disabling SR-IOV\") tried to fix a race between the VF removal\ninside sriov_del_vfs() and concurrent hot unplug by taking the PCI\nrescan/remove lock in sriov_del_vfs(). Similarly the PCI rescan/re","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/IOV: Fix race between SR-IOV enable/disable and hotplug\n\nCommit 05703271c3cd (\"PCI/IOV: Add PCI rescan-remove locking when\nenabling/disabling SR-IOV\") tried to fix a race between the VF removal\ninside sriov_del_vfs() and concurrent hot unplug by taking the PCI\nrescan/remove lock in sriov_del_vfs(). Similarly the PCI rescan/remove lock\nwas also taken in sriov_add_vfs() to protect addition of VFs.\n\nThis approach however causes deadlock on trying to remove PFs with SR-IOV\nenabled because PFs disable SR-IOV during removal and this removal happens\nunder the PCI rescan/remove lock. So the original fix had to be reverted.\n\nInstead of taking the PCI rescan/remove lock in sriov_add_vfs() and\nsriov_del_vfs(), fix the race that occurs with SR-IOV enable and disable vs\nhotplug higher up in the callchain by taking the lock in\nsriov_numvfs_store() before calling into the driver's sriov_configure()\ncallback.","published":"2025-12-04T14:50:42.996Z","updated":"2026-11-12T02:30:50.593026112Z","reserved":"2025-04-16T07:20:57.179Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"3cddde484471c602bea04e6f384819d336a1ff84","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"d7673ac466eca37ec3e6b7cc9ccdb06de3304e9b","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"7c37920c96b85ef4255a7acc795e99e63dd38d59","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"1047ca2d816994f31e1475e63e0c0b7825599747","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"97c18f074ff1c12d016a0753072a3afdfa0b9611","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"bea1d373098b22d7142da48750ce5526096425bc","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"f3015627b6e9ddf85cfeaf42405b3c194dde2c36","status":"affected","versionType":"git"},{"version":"18f9e9d150fccfa747875df6f0a9f606740762b3","lessThan":"a5338e365c4559d7b4d7356116b0eb95b12e08d5","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","lessThan":"5.0","status":"unaffected","versionType":"semver"},{"version":"5.10.252","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.202","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.165","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.128","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.75","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.16","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.6","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3cddde484471c602bea04e6f384819d336a1ff84","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d7673ac466eca37ec3e6b7cc9ccdb06de3304e9b","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7c37920c96b85ef4255a7acc795e99e63dd38d59","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1047ca2d816994f31e1475e63e0c0b7825599747","tags":["web"]},{"url":"https://git.kernel.org/stable/c/97c18f074ff1c12d016a0753072a3afdfa0b9611","tags":["web"]},{"url":"https://git.kernel.org/stable/c/bea1d373098b22d7142da48750ce5526096425bc","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f3015627b6e9ddf85cfeaf42405b3c194dde2c36","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a5338e365c4559d7b4d7356116b0eb95b12e08d5","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40219.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40219","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0024,"epssPercentile":0.15264,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40219","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40219","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40219","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40219","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}