{"id":"CVE-2024-38604","aliases":["CVE-2024-38604"],"related":[],"kind":"vulnerability","state":"published","title":"block: refine the EOF check in blkdev_iomap_begin","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: refina la comprobación de EOF en blkdev_iomap_begin blkdev_iomap_begin redondea hacia abajo el desplazamiento al tamaño del bloque lógico antes de guardarlo en iomap-&gt;offset y comprobar que todavía está dentro del tamaño del inodo. Verifique la verificación i_size en el valor pos sin formato para que no intentemos una escritura de tamaño cero si iter-&gt;pos no está alineado.","source":"nvd"}],"published":"2024-06-19T13:48:15.099Z","modified":"2026-06-17T07:40:41.730Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"487c607df790d366e67a7d6a30adf785cdd98e55","fixed":"910717920c8c3f9386277a44c44d448058a18084","status":"affected"},{"type":"git","introduced":"487c607df790d366e67a7d6a30adf785cdd98e55","fixed":"72c54e063c32aeb38d43a2bd897821e6e5a1757d","status":"affected"},{"type":"git","introduced":"487c607df790d366e67a7d6a30adf785cdd98e55","fixed":"10b723bcba8986537a484aa94dbfc9093fd776a1","status":"affected"},{"type":"git","introduced":"487c607df790d366e67a7d6a30adf785cdd98e55","fixed":"0c12028aec837f5a002009bbf68d179d506510e8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-20T19:44:24.833Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38604","url":"https://www.cve.org/CVERecord?id=CVE-2024-38604","licence":"CVE Terms of Use","modified":"2026-05-11T20:19:56.287Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38604","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38604","licence":"Public domain","modified":"2026-06-17T07:40:41.730Z"}],"updatedAt":"2026-11-25T22:58:42.039Z","epss":{"score":0.00207,"percentile":0.1138,"date":"2026-12-01T12:00:22.000Z"}}