{"id":"CVE-2026-99789","published":"2026-11-20T05:51:50Z","modified":"2026-11-20T05:51:50Z","title":"block: restore the iterator when rejecting a misaligned bio","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00145,"percentile":0.03844,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3a6381f254ed81d36f3896f61dcd5d830e08861d","tags":[]},{"url":"https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f","tags":[]}],"priority":{"score":0.8,"factors":[{"name":"EPSS percentile","points":0.77}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 14b007e178811db72fbb1ebb3535160db6ec1e6a, < 3a6381f254ed81d36f3896f61dcd5d830e08861d",">= 14b007e178811db72fbb1ebb3535160db6ec1e6a, < 40d070cbb1906896d6fd65c39722d2411830ed9f","d44a97a3b1c00cc571245124e23e5ceb0a0225a0",">= 7.2.4, < 7.3"]},{"vendor":"Linux","product":"Linux","versions":["7.3"]}],"euvd":{"id":"EUVD-2026-130906","exploited":false,"provenance":"source"}}