# CVE-2025-21665: filemap: avoid truncating 64-bit offset to 32 bits

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-01-31T11:25:30.468Z
- Modified: 2026-06-17T08:43:58.003Z
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d before 64e5fd96330df2ad278d1c4edcca581f26e5f76e; from 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d before 80fc836f3ebe2f2d2d2c80c698b7667974285a04; from 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d before 09528bb1a4123e2a234eac2bc45a0e51e78dab43; from 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d before 280f1fb89afc01e7376f59ae611d54ca69e9f967; from 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d before f505e6c91e7a22d10316665a86d79f84d9f0ba76; 5.12 (not affected: before 5.12; from 5.15.177 up to 5.15.*; from 6.1.127 up to 6.1.*; from 6.6.74 up to 6.6.*; from 6.12.11 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.12 before 5.15.177; from 5.16 before 6.1.127; from 6.2 before 6.6.74; from 6.7 before 6.12.11; 6.13

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/64e5fd96330df2ad278d1c4edcca581f26e5f76e> (patch)
- <https://git.kernel.org/stable/c/80fc836f3ebe2f2d2d2c80c698b7667974285a04> (patch)
- <https://git.kernel.org/stable/c/09528bb1a4123e2a234eac2bc45a0e51e78dab43> (patch)
- <https://git.kernel.org/stable/c/280f1fb89afc01e7376f59ae611d54ca69e9f967> (patch)
- <https://git.kernel.org/stable/c/f505e6c91e7a22d10316665a86d79f84d9f0ba76> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2025-21665](https://www.cve.org/CVERecord?id=CVE-2025-21665), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21665](https://nvd.nist.gov/vuln/detail/CVE-2025-21665), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21665 · Whole record: https://cve.day/CVE-2025-21665.json · Rebuilt by cve.day 2026-11-25T22:58:53.709Z
