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

Published Nov 20, 2026
·
Updated

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

vhost: fix used ring index wrap in vhostaddusedninorder

vhostaddusedninorder() 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. logwrite() then sets bits beyond the dirty-log bitmap, potentially corrupting adjacent userspace memory. This is reachable on the vhost-net TX path with VIRTIOFINORDER: doneidx can reach VHOSTNETBATCH (64), triggering the issue with a 32-entry ring.

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

Affected Software

4 affected componentsFixes available
linux/kernel>=6.17.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux<=7.3.4-1
6.1.176-16.1.192-26.12.107-16.12.117-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.5-1
  4. Compensating control

    In vhost_add_used_n_in_order(), wrap start with a mask using & (vq->num - 1) instead of a single subtraction.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:50 AM
Data Sourced
via MITRE·05:50 AM
Description
Data Sourced
via OSV·05:50 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The issue is reachable on the vhost-net transmit path when VIRTIO_F_IN_ORDER is enabled and used-ring logging is enabled. A 32-entry virtqueue is specifically described as vulnerable when done_idx reaches the vhost-net batch size of 64.

2

What does an attacker or triggering workload need to do?

The triggering condition requires advancing the used-ring start index by enough heads that start plus nheads[i] reaches at least twice the virtqueue size. On the vhost-net TX path, batching can produce done_idx 64, which triggers this with a 32-entry ring.

3

What is the impact when the condition is reached?

The out-of-range start value causes an underflow in the used-ring logging calculation. The resulting dirty-log write can set bits beyond the dirty-log bitmap and potentially corrupt adjacent userspace memory.

4

Are arbitrary ring sizes affected?

The described wrap logic relies on virtqueue ring sizes being nonzero powers of two, as enforced by VHOST_SET_VRING_NUM. The documented trigger is a 32-entry ring; the vulnerable condition depends on the index advance reaching at least twice the configured ring size.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203