Directory Offset Vulnerability in Linux Kernel: Impacting Debian Packages

linux Updated 02 Oct 2025

Summary

12/02/2025
N/A
No i
Medium
5.5

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 5.10.103-1 – 6.9.9-1. 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 Linux kernel is the core component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It is widely used across various distributions, including Debian. This vulnerability affects the directory offset allocator, which is crucial for managing file system entries efficiently. The issue arises from the way offsets are handled, particularly on 32-bit platforms, leading to potential data visibility problems.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified where the directory offset allocator can wrap around to a low number, causing existing directory entries to become invisible during read operations. This issue was introduced by a commit that incorrectly treated directory offsets as monotonically increasing integers rather than opaque cookies. As a result, once the offset wraps, entries with offsets larger than the newly allocated offset are no longer visible, leading to persistent data loss during directory reads. This problem is particularly severe on 32-bit systems, where the offset can wrap after a relatively short period, potentially impacting system stability and data integrity.

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

Currently, there are no specific workarounds mentioned for this vulnerability. It is recommended to apply the patch as soon as it becomes available for your distribution.

Conclusion

The vulnerability CVE-2024-57952 in the Linux kernel poses significant risks to directory visibility, particularly on 32-bit systems. Users are encouraged to update their systems to the patched version to mitigate these risks. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves the directory offset allocator in the Linux kernel, which can lead to existing directory entries becoming invisible during read operations.

Debian 11 and 12 are affected, while Debian 13 has a fixed version available.

You can use Vulert, which monitors open-source vulnerabilities in your software. By using the Vulert playground, you can check your application against this vulnerability without needing to sign up.

The main consequence is the persistent invisibility of directory entries, which can lead to data loss and affect system stability.

Currently, there are no specific workarounds available. It is advisable to monitor for updates and apply the patch as soon as it is released.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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