CVE-2026-99789
block: restore the iterator when rejecting a misaligned bio
- CVSS
- —
- EPSS
- 0.14% (p4)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-20
- Product
- Linux 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.
Fixed in
3a6381f254ed81d36f3896f61dcd5d830e08861d · 40d070cbb1906896d6fd65c39722d2411830ed9f · 7.3 · 7.3.5
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7.2.4, <7.3 | 7.3 |
| Linux | Kernel | >=7.3.0, <7.3.5 | 7.3.5 |
| vendor | Linux | >=14b007e178811db72fbb1ebb3535160db6ec1e6a, <3a6381f254ed81d36f3896f61dcd5d830e08861d | 3a6381f254ed81d36f3896f61dcd5d830e08861d |
| vendor | Linux | >=14b007e178811db72fbb1ebb3535160db6ec1e6a, <40d070cbb1906896d6fd65c39722d2411830ed9f | 40d070cbb1906896d6fd65c39722d2411830ed9f |
| vendor | Linux | >=7.2.4, <7.3 | 7.3 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/3a6381f254ed81d36f3896f61dcd5d830e08861d other
- https://git.kernel.org/stable/c/40d070cbb1906896d6fd65c39722d2411830ed9f other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99789.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99789 advisory