{"id":"CVE-2025-68794","summary":"iomap: adjust read range correctly for non-block-aligned positions","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: adjust read range correctly for non-block-aligned positions\n\niomap_adjust_read_range() assumes that the position and length passed in\nare block-aligned. This is not always the case however, as shown in the\nsyzbot generated case for erofs. This causes too many bytes to be\nskipped for uptodate blocks, which results in returning the incorrect\nposition and length to read in. If all the blocks are uptodate, this\nunderflows length and returns a position beyond the folio.\n\nFix the calculation to also take into account the block offset when\ncalculating how many bytes can be skipped for uptodate blocks.","modified":"2026-04-18T18:29:41.952252970Z","published":"2026-01-13T15:29:05.553Z","related":["SUSE-SU-2026:21114-1","SUSE-SU-2026:21123-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68794.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/142194fb21afe964d2d194cab1fc357cbf87e899"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7aa6bc3e8766990824f66ca76c19596ce10daf3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/82b60ffbb532d919959702768dca04c3c0500ae5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68794.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68794"},{"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":"9dc55f1389f9569acf9659e58dd836a9c70df217"},{"fixed":"82b60ffbb532d919959702768dca04c3c0500ae5"},{"fixed":"12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e"},{"fixed":"142194fb21afe964d2d194cab1fc357cbf87e899"},{"fixed":"7aa6bc3e8766990824f66ca76c19596ce10daf3e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68794.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68794.json"}}],"schema_version":"1.7.5"}