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-1003693: ext4: fix use-after-free in ext4_rename_dir_prepare. Affects Kernel versions < eaecf7ebfd5dd09038a80b14be46b844f54cfc5c. 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 package is a file system driver for the Linux Kernel. It provides support for the fourth extended file system (ext4), which is a widely used file system in Linux distributions. The ext4 file system offers improved performance, scalability, and reliability compared to its predecessors. However, a vulnerability has been discovered in the ext4_rename_dir_prepare function, which can lead to a use-after-free issue.

Vulnerability Detail

The use-after-free vulnerability in ext4_rename_dir_prepare arises from improper handling of directory renaming operations. An attacker could exploit this vulnerability by performing a malicious operation on a directory, leading to a use-after-free condition. This could potentially result in a system crash or allow the attacker to execute arbitrary code with elevated privileges. The vulnerability was fixed in Linux Kernel version v5.4.198 by commit eaecf7ebfd5dd09038a80b14be46b844f54cfc5c.

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 by updating the Linux Kernel to a patched version.

Conclusion

The ext4 package in the Linux Kernel was found to have a use-after-free vulnerability in the ext4_rename_dir_prepare function. This vulnerability could lead to system crashes or arbitrary code execution. It is crucial to update the Linux Kernel to version v5.4.198 or later to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ext4 package is a file system driver for the Linux Kernel, providing support for the ext4 file system.

A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to various security issues, including crashes and arbitrary code execution.

An attacker can exploit this vulnerability by performing a malicious operation on a directory, triggering a use-after-free condition and potentially gaining control over the system.

Yes, this vulnerability has been fixed in Linux Kernel version v5.4.198 by commit eaecf7ebfd5dd09038a80b14be46b844f54cfc5c.

To update the Linux Kernel, you can fetch the latest kernel source code from the official Linux Kernel repository and compile it for your system. Alternatively, you can check if your system's package manager provides an updated version of the Linux Kernel and install it.

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