{"id":"CVE-2026-99789","aliases":["CVE-2026-99789"],"related":[],"kind":"vulnerability","state":"published","title":"block: restore the iterator when rejecting a misaligned bio","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: restore the iterator when rejecting a misaligned bio\n\nbio_iov_iter_get_pages() can extract some iovecs before encountering a\nmisaligned one.  It releases the pages and rejects the entire bio, but\nleaves the supplied iterator advanced.\n\nAn iomap direct-I/O caller may subsequently reexpand the iterator's\nbyte count and fall back to buffered I/O.  The reexpanded count then\nincludes bytes before the iterator's current segment, potentially\ncausing iterate_iovec() to read beyond the imported iovec array.\n\nIn a reproducer using an initial empty iovec followed by 10-byte and\n1015-byte segments, writev() returned 1015 instead of 1025 and KASAN\nreported an 8-byte read beyond the nine-element iovec allocation.\nSaving and restoring the iterator on the rejected-bio path makes\nwritev() return 1025 and eliminates the KASAN report.\n\nRestore the entire iterator rather than reverting a byte count:\nadvancing past an empty segment changes its position without consuming\nany bytes.\n\nLeave successful and partially accepted bio paths unchanged.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: restore the iterator when rejecting a misaligned bio\n\nbio_iov_iter_get_pages() can extract some iovecs before encountering a\nmisaligned one.  It releases the pages and rejects the entire bio, but\nleaves the supplied iterator advanced.\n\nAn iomap direct-I/O caller may subsequently reexpand the iterator's\nbyte count and fall back to buffered I/O.  The reexpanded count then\nincludes bytes before the iterator's current segment, potentially\ncausing iterate_iovec() to read beyond the imported iovec array.\n\nIn a reproducer using an initial empty iovec followed by 10-byte and\n1015-byte segments, writev() returned 1015 instead of 1025 and KASAN\nreported an 8-byte read beyond the nine-element iovec allocation.\nSaving and restoring the iterator on the rejected-bio path makes\nwritev() return 1025 and eliminates the KASAN report.\n\nRestore the entire iterator rather than reverting a byte count:\nadvancing past an empty segment changes its position without consuming\nany bytes.\n\nLeave successful and partially accepted bio paths unchanged.","source":"cvelist"}],"published":"2026-11-20T05:51:50.097Z","modified":"2026-11-20T06:18:18.243Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"14b007e178811db72fbb1ebb3535160db6ec1e6a","fixed":"3a6381f254ed81d36f3896f61dcd5d830e08861d","status":"affected"},{"type":"git","introduced":"14b007e178811db72fbb1ebb3535160db6ec1e6a","fixed":"40d070cbb1906896d6fd65c39722d2411830ed9f","status":"affected"},{"type":"git","version":"d44a97a3b1c00cc571245124e23e5ceb0a0225a0","status":"affected"},{"type":"semver","introduced":"7.2.4","fixed":"7.3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.3","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3a6381f254ed81d36f3896f61dcd5d830e08861d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99789","url":"https://www.cve.org/CVERecord?id=CVE-2026-99789","licence":"CVE Terms of Use","modified":"2026-11-20T05:51:50.097Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99789","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99789","licence":"Public domain","modified":"2026-11-20T06:18:18.243Z"}],"updatedAt":"2026-11-25T22:59:52.346Z","epss":{"score":0.00145,"percentile":0.0399,"date":"2026-12-01T12:00:22.000Z"}}