PCI: Avoid pci_dev_lock() AB/BA deadlock with sriov_numvfs_store() in Kernel
Summary
GSD-2022-1004064: PCI: Avoid pci_dev_lock() AB/BA deadlock with sriov_numvfs_store(). Affects Kernel versions < da9792920ab525b8a932aa9aeee34529ad7b83f7. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Kernel is a crucial component of the Linux operating system that manages communication between hardware and software. It provides essential functions and services for the proper functioning of the system. The vulnerability identified in the Kernel relates to the pci_dev_lock() function and its interaction with the sriov_numvfs_store() function. This vulnerability can lead to a deadlock scenario, causing potential system instability and denial of service.
Vulnerability Detail
The vulnerability arises due to a deadlock situation caused by the AB/BA locking pattern in the pci_dev_lock() function and the sriov_numvfs_store() function. This can occur when multiple threads or processes attempt to acquire the pci_dev_lock() in different orders, resulting in a deadlock. An attacker could potentially exploit this vulnerability to cause a denial of service by triggering the deadlock scenario. The vulnerability has been addressed in the Linux Kernel version v4.9.318 by commit da9792920ab525b8a932aa9aeee34529ad7b83f7.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The vulnerability in the Kernel related to the pci_dev_lock() function and sriov_numvfs_store() function can lead to a deadlock scenario, potentially causing system instability and denial of service. It is crucial to update the Linux Kernel to version v4.9.318 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a deadlock scenario, causing potential system instability and denial of service.
An attacker can exploit this vulnerability by triggering the deadlock scenario, leading to a denial of service.
Yes, this vulnerability has been fixed in the Linux Kernel version v4.9.318 by commit da9792920ab525b8a932aa9aeee34529ad7b83f7.
To protect your system, it is recommended to update the Linux Kernel to version v4.9.318 or later.
More information about this vulnerability can be found in the source provided by the Cloud Security Alliance (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004064.json).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.