Infinite Loop Vulnerability in Linux Kernel: iomap Truncation Issue

linux Updated 02 Oct 2025

Summary

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

CVE-2025-21667: In the Linux kernel, the following vulnerability has been resolved: iomap: avoid avoid truncating 64-bit offset to 32 bits on 32-bit kernels, iomap_write_delalloc_scan() was inadvertently using a 32-bit position due to f... 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management, process control, and system security. It is widely used in various distributions, including Debian. The kernel's iomap functionality is responsible for managing input/output operations, particularly for filesystems like XFS. This vulnerability arises from a flaw in the iomap_write_delalloc_scan function, which can lead to severe performance issues.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified where the iomap_write_delalloc_scan function inadvertently uses a 32-bit position due to the folio_next_index function returning an unsigned long. This truncation can lead to an infinite loop when writing to an XFS filesystem, potentially causing system hangs and data loss. The issue is particularly critical on 32-bit kernels, where the 64-bit offset is improperly handled.

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 mentioned for this vulnerability. However, users are advised to avoid writing to XFS filesystems on 32-bit kernels until the patch is applied.

Conclusion

The CVE-2025-21667 vulnerability in the Linux kernel poses a significant risk for users operating on 32-bit systems with XFS filesystems. It is crucial to update the kernel to the latest patched version to mitigate this risk and ensure system stability.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21667 is a vulnerability in the Linux kernel that can cause an infinite loop when writing to an XFS filesystem due to improper handling of 64-bit offsets.

The vulnerability affects the Linux kernel across various Debian versions, including Debian 11, 12, and 13.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

If you cannot update your kernel, it is advisable to avoid writing to XFS filesystems on 32-bit kernels until a patch is applied.

Yes, due to the potential for an infinite loop, there is a risk of system hangs and possible data loss when writing to affected filesystems.

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