Vulnerability in Kernel: crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000389: crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init. Affects Kernel versions >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 1f50392650ae794a1aea41c213c6a3e1c824413c. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It is responsible for managing system resources, including memory, processes, and device drivers. The vulnerability in question affects the crypto subsystem of the Kernel, specifically the qat (QuickAssist Technology) driver. The qat driver is used to offload cryptographic operations to dedicated hardware accelerators, improving performance and efficiency. However, a flaw in the driver's initialization process allows the ADF_STATUS_PF_RUNNING flag to be set before adf_dev_init is completed, 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 driver's initialization process. This flag should only be set after adf_dev_init has completed successfully. By setting the flag prematurely, the driver may enter an inconsistent state, potentially leading to security vulnerabilities and unpredictable behavior. The impact of this vulnerability is dependent on the specific usage of the qat driver and the potential security vulnerabilities that may arise from its incorrect initialization. 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 a workaround, users can disable the qat driver if it is not essential for their system's operation. This can be achieved by blacklisting the qat driver module or removing it from the Kernel configuration. However, this workaround may impact the performance and functionality of systems that rely on the qat driver for cryptographic operations.

Conclusion

In conclusion, the vulnerability in the Kernel's qat driver arises from the incorrect setting of the ADF_STATUS_PF_RUNNING flag during initialization. This can lead to unpredictable behavior and potential security vulnerabilities. It is recommended to update the Kernel to a version that includes the fix for this vulnerability. Users can also consider disabling the qat driver as a temporary workaround, although this may impact system performance and functionality. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The qat driver is a component of the Kernel's crypto subsystem that enables offloading of cryptographic operations to dedicated hardware accelerators, improving performance and efficiency.

adf_dev_init is a function within the qat driver that initializes the hardware accelerator devices and prepares them for operation.

The specific security vulnerabilities that may arise from this vulnerability are not yet proven or documented. However, the incorrect initialization of the qat driver may lead to unpredictable behavior and potential security vulnerabilities.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation. Simply upload your package-lock.json file to the Vulert Playground and it will analyze and report any vulnerabilities found.

As of now, there is no known exploit for this vulnerability. However, it is important to promptly update the Kernel to the fixed version to mitigate any potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback