{"id":"CVE-2024-38604","summary":"block: refine the EOF check in blkdev_iomap_begin","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: refine the EOF check in blkdev_iomap_begin\n\nblkdev_iomap_begin rounds down the offset to the logical block size\nbefore stashing it in iomap-\u003eoffset and checking that it still is\ninside the inode size.\n\nCheck the i_size check to the raw pos value so that we don't try a\nzero size write if iter-\u003epos is unaligned.","modified":"2026-04-16T04:35:34.121481665Z","published":"2024-06-19T13:48:15.099Z","related":["SUSE-SU-2024:2802-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38604.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38604.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38604"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"487c607df790d366e67a7d6a30adf785cdd98e55"},{"fixed":"910717920c8c3f9386277a44c44d448058a18084"},{"fixed":"72c54e063c32aeb38d43a2bd897821e6e5a1757d"},{"fixed":"10b723bcba8986537a484aa94dbfc9093fd776a1"},{"fixed":"0c12028aec837f5a002009bbf68d179d506510e8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38604.json"}}],"schema_version":"1.7.5"}