ext4: Avoid Cycles in Directory H-Tree Vulnerability in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002926: ext4: avoid cycles in directory h-tree. Affects Kernel versions < d5a16a6df2c16eaf4de04948553ef0089dee463f. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and ensures the stability and security of the system. The ext4 file system is widely used in Linux and offers improved performance and reliability compared to its predecessors. It utilizes a hierarchical tree structure (H-tree) to organize directory entries efficiently. However, a vulnerability has been discovered in the ext4 file system that allows the creation of cycles in the directory H-tree, leading to potential security risks.

Vulnerability Detail

The ext4 vulnerability involves the creation of cycles in the directory H-tree. An attacker can exploit this vulnerability by crafting a malicious directory structure that contains cycles, causing the file system to enter an infinite loop when traversing the directory tree. This can result in denial of service (DoS) conditions, system instability, or even arbitrary code execution. The vulnerability has been addressed in Linux Kernel version v5.17.14 by commit d5a16a6df2c16eaf4de04948553ef0089dee463f.

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 ext4 vulnerability in the Kernel allows the creation of cycles in the directory H-tree, leading to potential denial of service (DoS) conditions, system instability, or arbitrary code execution. It is recommended to update the Linux Kernel to version v5.17.14 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 vulnerability allows an attacker to create directory structures that cause the ext4 file system to enter an infinite loop, leading to denial of service (DoS) conditions, system instability, or potential arbitrary code execution.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. It analyzes the manifest file (e.g., package-lock.json) of your application and provides real-time alerts for open-source vulnerabilities, including the ext4 vulnerability.

No, updating the Linux Kernel to the fixed version is the recommended solution. There is no known workaround for this vulnerability.

The vulnerability exists in versions of the Linux Kernel prior to v5.17.14. It has been fixed in Linux Kernel version v5.17.14 and later.

There is no information available regarding active exploitation of this vulnerability in the wild. However, it is crucial to apply the patch or update the Linux Kernel to ensure system security.

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