# CVE-2024-38604: block: refine the EOF check in blkdev_iomap_begin

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-06-19T13:48:15.099Z
- Modified: 2026-06-17T07:40:41.730Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: refine the EOF check in blkdev_iomap_begin

blkdev_iomap_begin rounds down the offset to the logical block size
before stashing it in iomap->offset and checking that it still is
inside the inode size.

Check the i_size check to the raw pos value so that we don't try a
zero size write if iter->pos is unaligned.

(As written by CVE List.)

## Affected

- Linux Linux: from 487c607df790d366e67a7d6a30adf785cdd98e55 before 910717920c8c3f9386277a44c44d448058a18084; from 487c607df790d366e67a7d6a30adf785cdd98e55 before 72c54e063c32aeb38d43a2bd897821e6e5a1757d; from 487c607df790d366e67a7d6a30adf785cdd98e55 before 10b723bcba8986537a484aa94dbfc9093fd776a1; from 487c607df790d366e67a7d6a30adf785cdd98e55 before 0c12028aec837f5a002009bbf68d179d506510e8; 6.6 (not affected: before 6.6; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.6 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## References

- <https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084> (patch)
- <https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d> (patch)
- <https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1> (patch)
- <https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-38604 · Whole record: https://cve.day/CVE-2024-38604.json · Rebuilt by cve.day 2026-11-25T22:58:42.039Z
