# CVE-2026-99789: block: restore the iterator when rejecting a misaligned bio

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-11-20T05:51:50.097Z
- Modified: 2026-11-20T06:18:18.243Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

block: restore the iterator when rejecting a misaligned bio

bio_iov_iter_get_pages() can extract some iovecs before encountering a
misaligned one.  It releases the pages and rejects the entire bio, but
leaves the supplied iterator advanced.

An iomap direct-I/O caller may subsequently reexpand the iterator's
byte count and fall back to buffered I/O.  The reexpanded count then
includes bytes before the iterator's current segment, potentially
causing iterate_iovec() to read beyond the imported iovec array.

In a reproducer using an initial empty iovec followed by 10-byte and
1015-byte segments, writev() returned 1015 instead of 1025 and KASAN
reported an 8-byte read beyond the nine-element iovec allocation.
Saving and restoring the iterator on the rejected-bio path makes
writev() return 1025 and eliminates the KASAN report.

Restore the entire iterator rather than reverting a byte count:
advancing past an empty segment changes its position without consuming
any bytes.

Leave successful and partially accepted bio paths unchanged.

(As written by CVE List.)

## Affected

- Linux Linux: from 14b007e178811db72fbb1ebb3535160db6ec1e6a before 3a6381f254ed81d36f3896f61dcd5d830e08861d; from 14b007e178811db72fbb1ebb3535160db6ec1e6a before 40d070cbb1906896d6fd65c39722d2411830ed9f; d44a97a3b1c00cc571245124e23e5ceb0a0225a0; from 7.2.4 before 7.3; 7.3 (not affected: before 7.3; from 7.3.5 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3a6381f254ed81d36f3896f61dcd5d830e08861d>
- <https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f>

## Sources

- CVE List: [CVE-2026-99789](https://www.cve.org/CVERecord?id=CVE-2026-99789), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-99789](https://nvd.nist.gov/vuln/detail/CVE-2026-99789), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-99789 · Whole record: https://cve.day/CVE-2026-99789.json · Rebuilt by cve.day 2026-11-25T22:59:52.346Z
