Vulnerability in dm package: Null Pointer Race when Completing IO

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002078: dm: fix mempool NULL pointer race when completing IO. Affects Kernel versions < 6e506f07c5b561d673dd0b0d8f7f420cc48024fb. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The dm package is a component of the Linux Kernel that provides device-mapper functionality. It allows for the creation of virtual block devices by mapping physical block devices onto them. This package is widely used in Linux-based systems and is responsible for managing I/O operations.

The vulnerability identified in the dm package involves a null pointer race condition when completing I/O. This race condition can lead to a null pointer dereference, potentially resulting in a system crash or other unpredictable behavior.

Vulnerability Detail

The vulnerability arises due to a race condition in the dm package when completing I/O operations. Under certain circumstances, multiple threads can concurrently access a shared memory pool, leading to a null pointer dereference if the memory pool is deallocated before the completion of I/O operations. An attacker could potentially exploit this vulnerability to crash the system or execute arbitrary code.

This vulnerability has been assigned the ID GSD-2021-1002078 and is fixed in Linux Kernel version v5.14.14 by commit 6e506f07c5b561d673dd0b0d8f7f420cc48024fb.

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 temporary workaround, users can disable or avoid using the dm package if it is not essential for their system's functionality. However, this may not be a feasible solution for systems heavily reliant on device-mapper functionality.

Conclusion

The vulnerability in the dm package can lead to a null pointer dereference due to a race condition when completing I/O operations. It is crucial to update the Linux Kernel to version v5.14.14 or later to mitigate this vulnerability. Users can also utilize the Vulert Playground at https://vulert.com/scanner to check if their system is affected by this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to a system crash or allow an attacker to execute arbitrary code.

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 to the playground, and it will analyze the dependencies and alert you if any vulnerabilities, including this one, are found.

As of now, there is no known exploit for this vulnerability. However, it is important to apply the fix promptly to mitigate any potential risks.

While updating the Linux Kernel is the recommended solution, you can temporarily disable or avoid using the dm package if it is not critical for your system's operation. However, this may not be a viable long-term solution.

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