{"id":"CVE-2024-38604","state":"PUBLISHED","title":"block: refine the EOF check in blkdev_iomap_begin","description":"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->offset 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->pos is unaligned.","publishedAt":"2024-06-19T13:48:15.099Z","updatedAt":"2026-05-11T20:19:56.287Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"910717920c8c3f9386277a44c44d448058a18084","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"72c54e063c32aeb38d43a2bd897821e6e5a1757d","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"10b723bcba8986537a484aa94dbfc9093fd776a1","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"0c12028aec837f5a002009bbf68d179d506510e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/fops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.12","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9.3","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/fops.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/38xxx/CVE-2024-38604.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-38604","state":"PUBLISHED","datePublished":"2024-06-19T13:48:15.099Z","dateUpdated":"2026-05-11T20:19:56.287Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-18T19:36:34.933Z"},"containers":{"cna":{"title":"block: refine the EOF check in blkdev_iomap_begin","descriptions":[{"lang":"en","value":"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->offset 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->pos is unaligned."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"910717920c8c3f9386277a44c44d448058a18084","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"72c54e063c32aeb38d43a2bd897821e6e5a1757d","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"10b723bcba8986537a484aa94dbfc9093fd776a1","versionType":"git"},{"version":"487c607df790d366e67a7d6a30adf785cdd98e55","status":"affected","lessThan":"0c12028aec837f5a002009bbf68d179d506510e8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/fops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.12","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9.3","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/fops.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084"},{"url":"https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d"},{"url":"https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1"},{"url":"https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:19:56.287Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.8.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.9.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-20T19:44:24.833143Z","id":"CVE-2024-38604","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-20T19:44:35.788Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:12:26.158Z"}}]}}}