Fix handling of offline queues in blk_mq_alloc_request_hctx() in Kernel

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

GSD-2022-1004304: block: Fix handling of offline queues in blk_mq_alloc_request_hctx(). Affects Kernel versions >= 20e4d813931961fe26d26a1e98b3aba6ec00b130, < b202a0bd2580ee5b0453772c46d464152fafff73. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 to enable the proper functioning of the system. One of its key functionalities is handling block devices, which are responsible for reading and writing data to storage devices. The blk_mq_alloc_request_hctx() function in the Kernel is responsible for allocating a request for a block device. However, a vulnerability has been discovered in this function that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in blk_mq_alloc_request_hctx() arises from improper handling of offline queues. When a block device is taken offline, the function fails to handle this situation correctly, leading to potential security issues. Attackers may be able to exploit this vulnerability to gain unauthorized access, execute arbitrary code, or cause a denial-of-service condition. The vulnerability was introduced in version v4.16 of the Linux Kernel and has been fixed in version v5.18.6.

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

If updating the Linux Kernel is not immediately feasible, a possible workaround is to disable the use of offline queues for block devices. This can be achieved by modifying the configuration settings of the system. However, it is important to note that this workaround may have implications on the performance and functionality of the block devices.

Conclusion

In conclusion, the vulnerability in blk_mq_alloc_request_hctx() in the Kernel can pose significant security risks if left unaddressed. It is crucial to update the Linux Kernel to version v5.18.6 or later to mitigate this vulnerability. If you require further assistance or support in remediation, please reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially allow attackers to gain unauthorized access, execute arbitrary code, or cause a denial-of-service condition.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the playground will analyze it for any open-source vulnerabilities, including this one.

Yes, a patch has been released in version v5.18.6 of the Linux Kernel to fix this vulnerability. It is recommended to update to this version or later.

At the time of this report, there are no known exploits for this vulnerability. However, it is important to apply the necessary updates and patches to mitigate the risk.

If this vulnerability is not addressed, attackers may be able to exploit it to gain unauthorized access to the system, execute arbitrary code, or cause a denial-of-service condition. This can result in data breaches, system compromise, and disruption of services.

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