CVE-2025-21665
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21665 is a vulnerability in the Linux kernel that was discovered and disclosed on January 31, 2025. The issue affects the folioseekhole_data() function on 32-bit kernels, where a 64-bit value was inadvertently being truncated to 32 bits. This vulnerability affects multiple versions of the Linux kernel, including versions from 5.12 up to 6.13-rc7 (NVD).

Technical details

The vulnerability occurs in the Linux kernel's filemap functionality where folioseekhole_data() function incorrectly handles 64-bit offset values on 32-bit kernels. The issue stems from improper truncation of a 64-bit value to 32 bits when performing calculations with bsz (block size) values. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access requirements and potential high impact on availability (Red Hat).

Impact

When exploited, this vulnerability can lead to an infinite loop condition when writing to an XFS filesystem on 32-bit kernels. This can result in a denial of service through resource consumption, particularly affecting CPU utilization and system responsiveness (NVD).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that properly handles 64-bit offsets by modifying the calculation to explicitly cast the block size to a 64-bit value using (u64)bsz. Multiple stable kernel versions have received the fix, including updates to versions 5.15.177, 6.1.127, 6.6.74, and 6.12.11 (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40105HIGH7.1
  • Linux KernelLinux Kernel
  • kernel-bootwrapper
NoYesOct 30, 2025
CVE-2025-40103HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesOct 30, 2025
CVE-2025-40102HIGH7.1
  • Linux KernelLinux Kernel
  • kernel-64k-debug
NoNoOct 30, 2025
CVE-2025-40104MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-modules
NoYesOct 30, 2025
CVE-2025-40100MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesOct 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management