What’s Vulnerable › Vulnerabilities
CVE-2026-99686: vhost: fix used ring index wrap in vhost_add_used_n_in_order
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-20 · updated 2026-11-22
Description
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).
Affected products
- Linux: 6.17 — fixed in 7.4-rc2
How to fix
Upgrade to a fixed version: Linux 7.4-rc2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0
- https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1
- https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628
Get alerted when CVE-2026-99686 or the next vulnerability affects your stack