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-1003845: ext4: avoid cycles in directory h-tree. Affects Kernel versions < b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0. 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 Your last release was probably never penetration tested 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 manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The ext4 filesystem is a widely used file system in Linux, known for its performance and reliability. It organizes files and directories on disk and provides efficient access and storage management. However, a vulnerability has been discovered in the ext4 filesystem that allows for cycles in the directory h-tree structure, potentially leading to system instability and data corruption.

Vulnerability Detail

The ext4 filesystem vulnerability involves the presence of cycles in the directory h-tree structure. The h-tree is a data structure used by ext4 to organize directories efficiently. It allows for quick lookup and traversal of directories. However, if a cycle is present in the h-tree, it can cause infinite loops and incorrect directory traversal, leading to system crashes and data corruption. An attacker could potentially exploit this vulnerability to disrupt system operations or manipulate directory structures to hide or expose sensitive files. The vulnerability has been addressed in Linux Kernel version v4.19.247 by commit b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0.

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

As a temporary workaround, users can avoid the creation of directory structures that result in cycles in the h-tree. This can be achieved by carefully managing directory operations and ensuring that no circular references are created. Additionally, regular backups of critical data should be maintained to mitigate the potential impact of data corruption caused by this vulnerability.

Conclusion

The ext4: Avoid Cycles in Directory H-Tree vulnerability in the Kernel can have severe consequences, including system crashes and data corruption. It is crucial to update the Linux Kernel to the fixed version or apply the necessary patches provided by the Linux distribution. Regular backups and careful directory management can help mitigate the impact of this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The ext4 filesystem is a widely used file system in Linux that provides efficient storage management and access to files and directories.

The directory h-tree structure is a data structure used by the ext4 filesystem to organize directories efficiently, allowing for quick lookup and traversal.

The ext4 vulnerability can lead to system crashes, data corruption, and potential exploitation by attackers to disrupt system operations or manipulate directory structures.

To fix the ext4 vulnerability, update the Linux Kernel to version v4.19.247 or later by obtaining the updated kernel source code and compiling it for the target system.

As a temporary workaround, avoid creating directory structures that result in cycles in the h-tree and maintain regular backups of critical data.

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