Double Free of blk_mq_tag_set in dev remove after table load fails in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000053: dm rq: fix double free of blk_mq_tag_set in dev remove after table load fails. Affects Kernel versions >= 1c357a1e86a4227a6b6059f2de118ae47659cebc, < d757bf4c69cda3c3ab7f775dfabbf5a80e2f6f9d. 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 fundamental component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The vulnerability in question involves a double free of blk_mq_tag_set in dev remove after table load fails.

Vulnerability Detail

The vulnerability occurs when a table load fails in the Kernel's device mapper (dm) request (rq) code. In this scenario, a double free of blk_mq_tag_set is triggered during the removal of the device. This vulnerability can potentially lead to memory corruption and may be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

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 avoid the vulnerability by refraining from loading tables that are known to fail. Additionally, it is advisable to apply the latest security patches and updates to the Kernel to mitigate any potential risks.

Conclusion

In conclusion, the double free of blk_mq_tag_set vulnerability in the Kernel's dm rq code can potentially lead to memory corruption and exploitation by attackers. It is crucial to update the Linux Kernel to version v5.12.3 or later to mitigate this vulnerability. Applying the recommended fixes and updates, along with following security best practices, will help ensure the integrity and security of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially lead to memory corruption and may be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.12.3 or later. The fix for this issue was implemented in commit d757bf4c69cda3c3ab7f775dfabbf5a80e2f6f9d.

As a workaround, users can avoid the vulnerability by refraining from loading tables that are known to fail. Additionally, it is advisable to apply the latest security patches and updates to the Kernel.

At the time of this report, there are no known instances of this vulnerability being exploited in the wild. However, it is crucial to apply the recommended fixes and updates to ensure the security of the system.

For more details about this vulnerability, you can refer to the source link provided in the database_specific section of this report.

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