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]]
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-livepatch-5.15.50-23.125Upgrade python-perfUpgrade python-perf-debuginfoUpgrade kernelUpgrade perf-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-headersUpgrade kernel-livepatch-4.14.285-215.501Upgrade kernel-debuginfo-common-aarch64Upgrade kernel-tools-develUpgrade kernel-toolsUpgrade kernel-develUpgrade kernel-livepatch-5.10.126-117.518Upgrade perfUpgrade bpftoolUpgrade bpftool-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfo | May 21, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp12 | — | Upgrade kernel-toolsUpgrade kernel-abi-stablelistsUpgrade kernelUpgrade kernel-tools-libsUpgrade bpftoolUpgrade python3-perf | Jun 11, 2025 | Feb 26, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade kernel-toolsUpgrade bpftoolUpgrade kernel-tools-libsUpgrade kernelUpgrade kernel-abi-stablelistsUpgrade python3-perf | Jun 11, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-aws-5.15Upgrade linux-gcp-5.4Upgrade linux-gkeUpgrade linux-oracle-5.4Upgrade linux-raspi-5.4Upgrade linux-awsUpgrade linuxUpgrade linux-gcpUpgrade linux-ibm-5.4Upgrade linux-azure-fipsUpgrade linux-aws-5.4Upgrade linux-nvidiaUpgrade linux-intel-iotg-5.15Upgrade linux-azure-5.4Upgrade linux-azureUpgrade linux-raspiUpgrade linux-azure-4.15Upgrade linux-gcp-5.15Upgrade linux-ibmUpgrade linux-iotUpgrade linux-bluefieldUpgrade linux-hwe-5.4Upgrade linux-azure-fde-5.15Upgrade linux-oracle-5.15Upgrade linux-lowlatencyUpgrade linux-aws-fipsUpgrade linux-hweUpgrade linux-riscv-5.15Upgrade linux-aws-hweUpgrade linux-gkeopUpgrade linux-realtimeUpgrade linux-hwe-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-gcp-fipsUpgrade linux-azure-5.15Upgrade linux-gcp-4.15Upgrade linux-intel-iotgUpgrade linux-oracleUpgrade linux-kvmUpgrade linux-fips | 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 |
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