{"id":"CVE-2026-99789","aliases":[],"title":"block: restore the iterator when rejecting a misaligned bio","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00145,"percentile":0.03984},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=7.2.4, <7.3","fixed":"7.3"},{"ecosystem":"Linux","name":"Kernel","range":">=7.3.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"vendor","name":"Linux","range":">=14b007e178811db72fbb1ebb3535160db6ec1e6a, <3a6381f254ed81d36f3896f61dcd5d830e08861d","fixed":"3a6381f254ed81d36f3896f61dcd5d830e08861d"},{"ecosystem":"vendor","name":"Linux","range":">=14b007e178811db72fbb1ebb3535160db6ec1e6a, <40d070cbb1906896d6fd65c39722d2411830ed9f","fixed":"40d070cbb1906896d6fd65c39722d2411830ed9f"},{"ecosystem":"vendor","name":"Linux","range":">=7.2.4, <7.3","fixed":"7.3"}],"references":[{"url":"https://git.kernel.org/stable/c/3a6381f254ed81d36f3896f61dcd5d830e08861d","type":"other"},{"url":"https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99789.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99789","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-20T06:30:46.472Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99789","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.472Z"},{"name":"osv","at":"2026-11-20T07:37:04.768Z","url":"https://osv.dev/vulnerability/CVE-2026-99789","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T07:04:00.889Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:56.139Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99789","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:17.630Z"}],"firstSeenAt":"2026-11-20T06:28:17.630Z","publishedAt":"2026-11-20T05:51:50.097Z","modifiedAt":"2026-11-20T07:01:20.536Z"}