CVE-2026-99789

Source
https://cve.org/CVERecord?id=CVE-2026-99789
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99789.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-99789
Downstream
Published
2026-11-20T05:51:50Z
Modified
2026-11-20T21:02:33Z
Summary
block: restore the iterator when rejecting a misaligned bio
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99789.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
14b007e178811db72fbb1ebb3535160db6ec1e6a
Fixed
3a6381f254ed81d36f3896f61dcd5d830e08861d
Fixed
40d070cbb1906896d6fd65c39722d2411830ed9f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d44a97a3b1c00cc571245124e23e5ceb0a0225a0

Affected versions

v7.*
v7.2.10
v7.2.11
v7.2.12
v7.2.13
v7.2.14
v7.2.15
v7.2.4
v7.2.5
v7.2.6
v7.2.7
v7.2.8
v7.2.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99789.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.2.4
Fixed
7.3
Type
ECOSYSTEM
Events
Introduced
7.3.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99789.json"