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-1003958: ext4: fix use-after-free in ext4_rename_dir_prepare. Affects Kernel versions < 97f802a652a749422dede32071d29a53cf4bd034. 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) and is widely used in Linux distributions. The ext4 file system is known for its performance, scalability, and reliability. However, a vulnerability has been discovered in the ext4_rename_dir_prepare function, which can lead to a use-after-free condition.

Vulnerability Detail

The vulnerability in the ext4_rename_dir_prepare function allows an attacker to exploit a use-after-free condition. This occurs when the function incorrectly handles the renaming of directories, leading to a situation where a pointer to freed memory is still accessible. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability has been fixed in Linux Kernel version v4.14.283 by commit 97f802a652a749422dede32071d29a53cf4bd034.

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

Conclusion

The ext4 package in the Linux Kernel is vulnerable to a use-after-free condition in the ext4_rename_dir_prepare function. This vulnerability has been fixed in Linux Kernel version v4.14.283. It is recommended to update the Linux Kernel to the fixed version to ensure the security of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

ext4 is a file system driver for the Linux kernel that provides support for the fourth extended file system (ext4). It is widely used in Linux distributions.

A use-after-free vulnerability occurs when a program continues to use a pointer to memory that has been freed. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition.

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.

Yes, the vulnerability has been fixed in Linux Kernel version v4.14.283 by commit 97f802a652a749422dede32071d29a53cf4bd034. It is recommended to update the Linux Kernel to this version or later.

If exploited, this vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system. It is important to update the Linux Kernel to mitigate the risk.

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