Directory Offset Vulnerability in Linux Kernel Package: Infinite Directory Reads Issue

linux Updated 02 Oct 2025

Summary

12/02/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-57952: In the Linux kernel, the following vulnerability has been resolved: Revert "libfs: fix infinite directory reads for offset dir" The current directory offset allocator (based on mtree_alloc_cyclic) stores the next offset... Affects linux versions < 6.12.12-1. Fixed in 6.12.12-1. 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 Linux kernel is the core component of many operating systems, responsible for managing hardware and system resources. It provides essential services for all other parts of the operating system. This vulnerability affects the directory offset allocator, which is crucial for managing how directory entries are read and accessed. The issue arises from a specific commit that incorrectly handles directory offsets, leading to potential data visibility problems.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified due to the improper handling of directory offsets after a specific commit. The offset allocator, which is designed to return increasing offset values, can wrap around to lower values, causing existing directory entries to become invisible during read operations. This issue particularly affects 32-bit systems where the offset can wrap after a short period, leading to persistent data loss in directory reads. The vulnerability was reported by Yu Kuai and is linked to the commit that treats directory offsets as monotonically increasing integers instead of opaque cookies.

How To Fix

Minimum fixed version

6.12.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using directory read operations that may trigger this vulnerability until the package is updated. Additionally, monitoring directory entries manually can help mitigate the impact of this issue until a fix is applied.

Conclusion

The identified vulnerability in the Linux kernel poses significant risks related to directory entry visibility. Users are strongly advised to update their systems to the patched version to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves the improper handling of directory offsets in the Linux kernel, leading to invisible directory entries during read operations.

The vulnerability affects the Linux kernel versions prior to 6.12.12-1 in both Debian 13 and Debian 14.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Failing to address this vulnerability may result in persistent data loss, as directory entries may become invisible, impacting applications that rely on accurate directory reads.

Yes, the permanent fix is included in the updated package version 6.12.12-1. Users should update their Linux kernel to this version to resolve the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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