Use After Free Vulnerability in dm btree remove

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002613: dm btree remove: fix use after free in rebalance_children(). Affects Kernel versions < a48f6a2bf33734ec5669ee03067dfb6c5b4818d6. 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 dm btree remove vulnerability affects the Kernel package in the Linux ecosystem. The Kernel package is a critical component of the Linux operating system, responsible for managing various system resources and providing an interface between hardware and software. The dm btree remove function is used in the Kernel's device mapper subsystem to remove entries from a B-tree data structure. This vulnerability specifically impacts the rebalance_children() function within dm btree remove.

Vulnerability Detail

The use after free vulnerability in rebalance_children() within dm btree remove can be exploited by an attacker to execute arbitrary code or cause a denial of service. The vulnerability occurs when the function attempts to rebalance child nodes during the removal of an entry from the B-tree. If the rebalance process is not handled correctly, a use after free condition can occur, where the system continues to reference memory that has already been freed. This can lead to memory corruption and potentially allow an attacker to gain control over the affected system.

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

There is no known workaround for this vulnerability. It is essential to apply the fix provided by updating the Linux Kernel package to the recommended version.

Conclusion

The use after free vulnerability in dm btree remove within the Kernel package poses a significant security risk. It is crucial to update the Linux Kernel to the recommended version to address this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use after free vulnerability in dm btree remove can potentially allow an attacker to execute arbitrary code or cause a denial of service on the affected system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file, such as package-lock.json, and Vulert will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the recommended fix to mitigate the risk.

Yes, this vulnerability can be remotely exploited if an attacker can send malicious input to the affected system, triggering the use after free condition in dm btree remove.

The primary mitigation for this vulnerability is to update the Linux Kernel package to the recommended version. Additionally, ensuring proper input validation and access controls can help reduce the risk of exploitation.

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