Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99686

CVE-2026-99686: vhost: fix used ring index wrap in vhost_add_used_n_in_order

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99686: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: 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).

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 67a873df0c410915275f735fedb401b9637d6faf, < ebdc350cfb1740b6411420482e58a35cc4761628; Linux Linux >= 67a873df0c410915275f735fedb401b9637d6faf, < 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0; Linux Linux >= 67a873df0c410915275f735fedb401b9637d6faf, < e244725e86be02cd85cb878b3ed8570eba2e4be1; Linux Linux 6.17; Linux Linux < 6.17; Linux Linux 6.18.64 (fixed in 6.18.64); Linux Linux 7.3.5 (fixed in 7.3.5); Linux Linux 7.4-rc2 (fixed in 7.4-rc2)

ProductVersionsFixed in
Linux Linux>= 67a873df0c410915275f735fedb401b9637d6faf, < ebdc350cfb1740b6411420482e58a35cc4761628—
Linux Linux>= 67a873df0c410915275f735fedb401b9637d6faf, < 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0—
Linux Linux>= 67a873df0c410915275f735fedb401b9637d6faf, < e244725e86be02cd85cb878b3ed8570eba2e4be1—
Linux Linux6.17—
Linux Linux< 6.17—
Linux Linux6.18.646.18.64
Linux Linux7.3.57.3.5
Linux Linux7.4-rc27.4-rc2

Action recommended by the source

Upgrade to a fixed version: 6.18.64, 7.3.5, 7.4-rc2.

Fixed in: 6.18.64, 7.3.5, 7.4-rc2

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.