Vulnerability in Kernel: crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init
Summary
GSD-2021-1000438: crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init. Affects Kernel versions >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6. 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 provides core functionalities and acts as an interface between the hardware and software layers. It manages system resources, facilitates communication between different components, and ensures the security and stability of the system. The vulnerability in question affects the crypto subsystem of the Kernel, specifically the qat module. The qat module is responsible for offloading cryptographic operations to dedicated hardware accelerators, improving performance and efficiency. However, a flaw in the implementation of the qat module allows the ADF_STATUS_PF_RUNNING flag to be set before the adf_dev_init function is called, potentially leading to undefined behavior and security vulnerabilities.
Vulnerability Detail
The vulnerability arises from the incorrect setting of the ADF_STATUS_PF_RUNNING flag in the qat module. This flag should only be set after the adf_dev_init function has been called, as it ensures that the hardware accelerators are properly initialized and ready for use. By setting the flag prematurely, the system may encounter unexpected behavior, including potential security vulnerabilities. The impact of this vulnerability is dependent on the specific usage of the qat module and the potential security vulnerabilities that may arise from the uninitialized state of the hardware accelerators. It is important to note that the actual impact and attack plausibility have not yet been proven.
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
As this vulnerability has been fixed in the latest version of the Kernel, there is no specific workaround available. It is strongly advised to update the Kernel to the patched version.
Conclusion
The vulnerability in the Kernel's qat module, where the ADF_STATUS_PF_RUNNING flag is set before the adf_dev_init function, has been addressed in the latest version of the Linux Kernel. It is crucial to update the Kernel to the patched version to ensure the security and stability of the system. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability is dependent on the specific usage of the qat module and the potential security vulnerabilities that may arise from the uninitialized state of the hardware accelerators.
To fix the vulnerability, it is recommended to update the Kernel to the latest version available.
As this vulnerability has been fixed in the latest version of the Kernel, there is no specific workaround available.
This vulnerability was discovered through code analysis and review of the qat module in the Linux Kernel.
There is currently no evidence of active exploits targeting this vulnerability. However, it is important to update the Kernel to the patched version to mitigate any potential risks.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.