ext4: Fix Use-After-Free in ext4_rename_dir_prepare

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003500: ext4: fix use-after-free in ext4_rename_dir_prepare. Affects Kernel versions < dd887f83ea54aea5b780a84527e23ab95f777fed. 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 ext4 filesystem is a widely used filesystem in the Linux kernel. It provides support for large file systems and files, journaling, and other advanced features. The ext4_rename_dir_prepare function is responsible for preparing a directory for renaming in the ext4 filesystem. However, a use-after-free vulnerability has been discovered in this function, which could lead to a security issue.

Vulnerability Detail

The use-after-free vulnerability in ext4_rename_dir_prepare occurs when a directory is being renamed in the ext4 filesystem. This vulnerability could be exploited by an attacker to execute arbitrary code or cause a denial of service. The vulnerability originates from a failure to properly handle reference counting of directory entries during the renaming process. By manipulating the filesystem in a specific way, an attacker could trigger the use-after-free condition and potentially gain unauthorized access or disrupt the system's normal operation.

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 patch or update the Linux kernel to the fixed version as soon as possible.

Conclusion

The use-after-free vulnerability in ext4_rename_dir_prepare poses a significant security risk to systems running the affected versions of the Linux kernel. It is crucial to update the kernel to version v5.10.121 or later to mitigate this vulnerability. If you have any further questions or need assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could allow an attacker to execute arbitrary code or cause a denial of service by exploiting the use-after-free condition in ext4_rename_dir_prepare.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

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

No, this vulnerability is fixed in Linux Kernel version v5.10.121 and later. It is recommended to update to the fixed version to ensure the security of your system.

For more details about this vulnerability, including the commit that fixes it, you can refer to the source link provided in the vulnerability details 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