Use-after-free vulnerability in dm_cleanup_zoned_dev() in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001606: dm: fix use-after-free in dm_cleanup_zoned_dev(). Affects Kernel versions >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < fdfe414ca28ddfd562c233fb27385cf820de03e8. 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 critical 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 dm_cleanup_zoned_dev() function is part of the Device Mapper (DM) subsystem in the Kernel, which is responsible for creating and managing logical block devices. This vulnerability affects the Kernel's ability to properly clean up resources associated with zoned block devices.

Vulnerability Detail

The use-after-free vulnerability in dm_cleanup_zoned_dev() arises when the function attempts to free a zoned block device structure that is still in use. This can lead to a situation where the freed memory is subsequently accessed, potentially resulting in a crash or the execution of arbitrary code. An attacker with sufficient privileges could exploit this vulnerability to gain unauthorized access, escalate privileges, or cause a denial-of-service condition. The vulnerability was introduced in Kernel version v5.14 and is fixed in 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 temporary workaround, users can avoid the use of zoned block devices or disable the affected functionality in the Kernel configuration. However, these workarounds may limit certain features or functionalities provided by zoned block devices.

Conclusion

The use-after-free vulnerability in dm_cleanup_zoned_dev() poses a potential security risk in the Kernel, allowing for unauthorized access, privilege escalation, or denial-of-service attacks. It is crucial to update the Kernel to version v5.16.19 or later to mitigate this vulnerability. If you require further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to execute arbitrary code, gain unauthorized access, 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 to the playground and it will provide real-time alerts for open-source vulnerabilities, including this one.

Yes, a patch is available in Kernel version v5.16.19. It is recommended to update to this version or a later one to mitigate the vulnerability.

As mentioned earlier, you can temporarily avoid the use of zoned block devices or disable the affected functionality in the Kernel configuration. However, these workarounds may have limitations and impact certain features provided by zoned block devices.

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