# CVE-2025-21667: iomap: avoid 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-01-31T11:25:31.792Z
- Modified: 2026-06-17T08:43:58.347Z
- 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:

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 folio_next_index() returning an unsigned long.
This could lead to an infinite loop when writing to an xfs filesystem.

(As written by CVE List.)

## Affected

- Linux Linux: from 38be53c3fd7f4f4bd5de319a323d72f9f6beb16d before 7ca4bd6b754913910151acce00be093f03642725; from f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78 before 91371922704c8d82049ef7c2ad974d0a2cd1174d; from f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78 before 402ce16421477e27f30b57d6d1a6dc248fa3a4e4; from f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78 before c13094b894de289514d84b8db56d1f2931a0bade; from 6.1.92 before 6.1.127; 6.2 (not affected: before 6.2; 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: 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/7ca4bd6b754913910151acce00be093f03642725> (patch)
- <https://git.kernel.org/stable/c/91371922704c8d82049ef7c2ad974d0a2cd1174d> (patch)
- <https://git.kernel.org/stable/c/402ce16421477e27f30b57d6d1a6dc248fa3a4e4> (patch)
- <https://git.kernel.org/stable/c/c13094b894de289514d84b8db56d1f2931a0bade> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

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

---

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