In the Linux kernel, the following vulnerability has been resolved:
PCI: Avoid pci_dev_lock() AB/BA deadlock with sriov_numvfs_store()
The sysfs sriov_numvfs_store() path acquires the device lock before the config space access lock:
sriov_numvfs_store device_lock # A (1) acquire device lock sriov_configure vfio_pci_sriov_configure # (for example) vfio_pci_core_sriov_configure pci_disable_sriov sriov_disable pci_cfg_access_lock pci_wait_cfg # B (4) wait for dev->block_cfg_access == 0
Previously, pci_dev_lock() acquired the config space access lock before the device lock:
pci_dev_lock pci_cfg_access_lock dev->block_cfg_access = 1 # B (2) set dev->block_cfg_access = 1 device_lock # A (3) wait for device lock
Any path that uses pci_dev_lock(), e.g., pci_reset_function(), may deadlock with sriov_numvfs_store() if the operations occur in the sequence (1) (2) (3) (4).
Avoid the deadlock by reversing the order in pci_dev_lock() so it acquires the device lock before the config space access lock, the same as the sriov_numvfs_store() path.
[bhelgaas: combined and adapted commit log from Jay Zhou's independent subsequent posting: https://lore.kernel.org/r/[email protected]]
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade python-perfUpgrade kernel-livepatch-5.15.50-23.125Upgrade kernel-headersUpgrade kernelUpgrade perf-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-toolsUpgrade kernel-tools-develUpgrade kernel-livepatch-5.10.126-117.518Upgrade bpftoolUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-livepatch-4.14.285-215.501Upgrade perfUpgrade kernel-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-devel | May 21, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp12 | — | Upgrade python3-perfUpgrade kernel-tools-libsUpgrade kernel-toolsUpgrade kernelUpgrade bpftoolUpgrade kernel-abi-stablelists | Jun 11, 2025 | Feb 26, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade python3-perfUpgrade kernel-abi-stablelistsUpgrade kernelUpgrade kernel-toolsUpgrade bpftoolUpgrade kernel-tools-libs | Jun 11, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-aws-5.4Upgrade linux-gcp-5.4Upgrade linux-aws-5.15Upgrade linux-gkeUpgrade linux-gcpUpgrade linux-awsUpgrade linux-azure-fipsUpgrade linux-oracle-5.4Upgrade linux-ibm-5.4Upgrade linuxUpgrade linux-raspi-5.4Upgrade linux-lowlatency-hwe-5.15Upgrade linux-gkeopUpgrade linux-raspiUpgrade linux-azure-5.15Upgrade linux-lowlatencyUpgrade linux-azure-fde-5.15Upgrade linux-hweUpgrade linux-aws-fipsUpgrade linux-aws-hweUpgrade linux-azureUpgrade linux-intel-iotgUpgrade linux-hwe-5.15Upgrade linux-azure-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-hwe-5.4Upgrade linux-nvidiaUpgrade linux-kvmUpgrade linux-iotUpgrade linux-ibmUpgrade linux-oracle-5.15Upgrade linux-azure-4.15Upgrade linux-realtimeUpgrade linux-gcp-fipsUpgrade linux-bluefieldUpgrade linux-fipsUpgrade linux-oracleUpgrade linux-riscv-5.15Upgrade linux-gcp-5.15Upgrade linux-gcp-4.15 | Mar 3, 2025 | Feb 26, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Feb 26, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub