Critical Vulnerability in Linux Kernel: 64-bit Offset Truncation Issue

linux Updated 02 Oct 2025

Summary

31/01/2025
N/A
Yes i
Medium
5.5

CVE-2025-21665: In the Linux kernel, the following vulnerability has been resolved: filemap: avoid truncating 64-bit offset to 32 bits On 32-bit kernels, folio_seek_hole_data() was inadvertently truncating a 64-bit value to 32 bits, lea... Affects linux versions < 6.1.128-1. Fixed in 6.1.128-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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resources. It is widely used in various distributions, including Debian. This vulnerability affects the kernel's file handling capabilities, specifically in the folio_seek_hole_data() function, which is responsible for managing file data and offsets. The issue arises in 32-bit kernels, where a 64-bit offset is truncated, potentially leading to severe file system errors.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified where the folio_seek_hole_data() function truncates a 64-bit offset to 32 bits on 32-bit kernels. This truncation can lead to an infinite loop when writing to an XFS filesystem, causing system hangs and data loss. The vulnerability stems from improper handling of file offsets, which are critical for file operations. If exploited, this could result in significant disruptions to system stability and data integrity.

How To Fix

Minimum fixed version

6.1.128-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

Currently, there are no specific workarounds provided for this vulnerability. Users are advised to monitor their systems and apply the kernel update as soon as it becomes available.

Conclusion

The CVE-2025-21665 vulnerability in the Linux kernel poses a significant risk to systems running 32-bit kernels, particularly in Debian environments. It is crucial for users to update their kernels to the latest patched versions to avoid potential data loss and system instability. Monitoring tools like Vulert can assist in identifying vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21665 is a vulnerability in the Linux kernel that involves the truncation of a 64-bit offset to 32 bits, potentially causing infinite loops when writing to an XFS filesystem.

This vulnerability primarily affects 32-bit kernels of the Linux operating system, particularly those running on Debian versions 12 and 13.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected by this vulnerability without any signup.

The risks include potential system hangs, data loss, and disruptions to file operations, which can severely impact system stability and user experience.

Yes, a patch is available. Users should update their Linux kernel to the latest version to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.128-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