CVE-2025-21665 filemap: avoid truncating 64-bit offset to 32 bits
A truncation bug in the Linux kernel filemap code can cause an infinite loop during XFS writes on 32-bit systems, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21665?
CVE-2025-21665 is a medium-severity denial of service vulnerability in Linux kernel, published on 31 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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, leading to a possible infinite loop when writing to an xfs filesystem.
Weakness: CWE-835
Which versions are affected by CVE-2025-21665?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21665?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-21665 being exploited?
There is no known exploitation of CVE-2025-21665 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-56265, AZL-56291, BELL-CVE-2025-21665, DEBIAN-CVE-2025-21665, GHSA-83gh-q9xf-w4xr, UBUNTU-CVE-2025-21665.