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

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001300: dm: fix use-after-free in dm_cleanup_zoned_dev(). Affects Kernel versions >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < 43a043aed964659bc69ef81f266912b73c80d837. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is the core component of the Linux operating system. It provides essential functionality, such as managing system resources, device drivers, and security features. The dm (device mapper) subsystem in the Linux Kernel is responsible for providing an abstraction layer for block devices, allowing for advanced storage management features. The dm_cleanup_zoned_dev() function is part of the dm subsystem and is used to clean up resources associated with a zoned block device. A zoned block device is a type of storage device that divides its storage space into zones, each with specific characteristics. This vulnerability affects the dm_cleanup_zoned_dev() function and can lead to a use-after-free condition.

Vulnerability Detail

The use-after-free vulnerability in dm_cleanup_zoned_dev() occurs when the function improperly handles the cleanup of resources associated with a zoned block device. This can result in a situation where a pointer to freed memory is still accessible, leading to potential memory corruption or arbitrary code execution. An attacker who can trigger this vulnerability may be able to exploit it to gain elevated privileges, crash the system, or execute malicious code. The vulnerability was introduced in Linux Kernel version 5.14 and is fixed in version 5.17.2.

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 recommended to apply the official fix by updating the Linux Kernel.

Conclusion

The use-after-free vulnerability in dm_cleanup_zoned_dev() in the Linux Kernel can have serious security implications, including memory corruption, arbitrary code execution, system crashes, and privilege escalation. It is crucial to update the Linux Kernel to version 5.17.2 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use-after-free vulnerability in dm_cleanup_zoned_dev() can potentially lead to memory corruption, arbitrary code execution, system crashes, or privilege escalation.

An attacker who can trigger the vulnerability may be able to execute arbitrary code, gain elevated privileges, or crash the system.

The vulnerability was introduced in Linux Kernel version 5.14 and affects all versions up to and including version 5.17.1.

Yes, the vulnerability is fixed in Linux Kernel version 5.17.2.

The recommended mitigation is to update the Linux Kernel to version 5.17.2 or later.

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