CVE-2026-99686

Source
https://cve.org/CVERecord?id=CVE-2026-99686
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99686.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99686
Published
2026-11-20T05:50:31Z
Modified
2026-11-20T07:01:03Z
Summary
vhost: fix used ring index wrap in vhost_add_used_n_in_order
Details

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

vhost: fix used ring index wrap in vhost_add_used_n_in_order

vhost_add_used_n_in_order() advances start by nheads[i] but wraps it with a single subtraction. If start + nheads[i] >= 2 * vq->num, start can remain outside the ring.

With used-ring logging enabled, start > vq->num makes (vq->num - start) underflow. log_write() then sets bits beyond the dirty-log bitmap, potentially corrupting adjacent userspace memory. This is reachable on the vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach VHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.

Wrap start with a mask to keep it within the ring. VHOST_SET_VRING_NUM enforces a nonzero power-of-two ring size, allowing start to be wrapped using & (vq->num - 1).

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99686.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
67a873df0c410915275f735fedb401b9637d6faf
Fixed
ebdc350cfb1740b6411420482e58a35cc4761628
Fixed
308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0
Fixed
e244725e86be02cd85cb878b3ed8570eba2e4be1

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.64
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.5

Database specific

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