Vulnerability in Linux Kernel: block: don't delete queue kobject before its children

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001583: block: don't delete queue kobject before its children. Affects Kernel versions >= 2c2086afc2b8b974fac32cb028e73dc27bfae442, < cf0cb8686e55d9c022944bc6ba9e19e832889e83. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux Kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for managing hardware resources, scheduling tasks, and facilitating communication between software components. The block subsystem within the Linux Kernel is responsible for handling block devices such as hard drives and SSDs. It includes a queue kobject, which represents a queue of I/O requests. This vulnerability specifically affects the deletion of the queue kobject before its children, potentially leading to undefined behavior and security issues.

Vulnerability Detail

The vulnerability arises from the improper deletion of the queue kobject in the block subsystem of the Linux Kernel. When the queue kobject is deleted before its children, it can result in various problems, including use-after-free vulnerabilities and incorrect memory management. An attacker may be able to exploit this vulnerability to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been fully proven. It is important to note that this vulnerability has been fixed in Linux Kernel version v5.16.19.

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 apply the patch provided in the commit cf0cb8686e55d9c022944bc6ba9e19e832889e83. The patch modifies the code to ensure that the queue kobject is not deleted before its children. Here is an example of the modified code:

// Original code
...
void delete_queue_kobject(struct queue_kobject *qkobj) {
    kobject_put(&qkobj->kobj);
}
...

// Modified code
...
void delete_queue_kobject(struct queue_kobject *qkobj) {
    kobject_put(&qkobj->children_kobj);
    kobject_put(&qkobj->kobj);
}

By applying this patch, the vulnerability can be mitigated until the Linux Kernel is updated to a fixed version.

Conclusion

In conclusion, the vulnerability in the Linux Kernel's block subsystem regarding the deletion of the queue kobject before its children can lead to various security issues. It is crucial to update the Linux Kernel to version v5.16.19 or later to mitigate this vulnerability. Regularly updating the Linux Kernel is essential to ensure the application of the latest security patches and bug fixes. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Linux Kernel is an open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for managing hardware resources, scheduling tasks, and facilitating communication between software components.

The block subsystem in the Linux Kernel is responsible for handling block devices such as hard drives and SSDs. It includes a queue kobject, which represents a queue of I/O requests.

A queue kobject is a data structure in the block subsystem of the Linux Kernel that represents a queue of I/O requests. It is used for managing and processing I/O operations on block devices.

This vulnerability can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. However, the actual impact and attack plausibility have not been fully proven.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.19 or later. This can be done by obtaining the latest version of the Linux Kernel source code from the official repository and compiling it according to the provided instructions.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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