ext4: Fix Use-After-Free in ext4_rename_dir_prepare
Summary
GSD-2022-1003958: ext4: fix use-after-free in ext4_rename_dir_prepare. Affects Kernel versions < 97f802a652a749422dede32071d29a53cf4bd034. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.