Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99686

published high CVSS 3.1 · 7.8

vhost: fix used ring index wrap in vhost_add_used_n_in_order

Published
20 Nov 2026, 05:50:31 UTC
Updated
22 Nov 2026, 11:09:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux67a873df0c410915275f735fedb401b9637d6faf to < ebdc350cfb1740b6411420482e58a35cc4761628 · 67a873df0c410915275f735fedb401b9637d6faf to < 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 · 67a873df0c410915275f735fedb401b9637d6faf to < e244725e86be02cd85cb878b3ed8570eba2e4be1 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.17 (affected) · 0 to < 6.17 (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected; Pending Fix Not stated Amazon Linux assessment

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).

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Scenarios
en: AV:L - Guest TX descriptors reach vhost_add_used_n_in_order through handle_tx_kick, handle_tx_copy, and vhost_tx_batch, which stores done_idx in vq->nheads[0] and calls vhost_net_signal_used with count 1. That batch count is what wraps start; a remote peer never supplies nheads or the used-ring index. AC:H - The guest can accept VIRTIO_F_IN_ORDER, select a 32-entry queue that QEMU programs with VHOST_SET_VRING_NUM, and kick a 64-buffer TX batch so one subtraction leaves start above vq->num. log_write runs only if vq->log_used is set, and only host userspace sets VHOST_VRING_F_LOG on VHOST_SET_VRING_ADDR; the guest cannot. PR:L - The guest does not pass vhost_dev_check_owner or open /dev/vhost-net. QEMU owns the device and issues the ioctls; the guest only publishes the TX avail ring and kicks it. That is control of a tenant VM's virtio-net queue, not host root in the init namespace. UI:N - The guest posts the TX buffers and fires the kick eventfd that wakes handle_tx_kick. No host user has to mount media or open an attacker-supplied file; used-ring logging is host state, not a victim action on attacker data. S:C - vhost_put_used writes one in-range used element before start advances, so the guest used ring is not the overflow. With vq->log_used, log_used feeds the underflow length to log_write and set_bit_to_user, which sets bits past the host dirty-log bitmap in the QEMU process. C:H - For num=32 and start left at 35, (vq->num - start) is an unsigned underflow and log_write is called with length 34359738344. set_bit_to_user then walks vq->log_base past the bitmap, a VMM heap smash that can disclose host memory held by QEMU rather than a few used-ring bytes. I:H - The same log_write loop is an out-of-bounds write: set_bit_to_user sets every bit from the used-ring log page onward until pin_user_pages_fast fails, turning adjacent QEMU heap bytes into 0xFF. That is host-process corruption, not an in-bounds used-ring update. A:H - The multi-gigabyte log_write loop runs inside the vhost worker on the TX kick path and ignores log_used's error, so it both stalls the virtqueue and smashes the QEMU address space that owns the vhost mm until the VMM crashes and the VM is gone.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 67a873df0c410915275f735fedb401b9637d6faf to < ebdc350cfb1740b6411420482e58a35cc4761628 (affected · git)67a873df0c410915275f735fedb401b9637d6faf to < 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 (affected · git)67a873df0c410915275f735fedb401b9637d6faf to < e244725e86be02cd85cb878b3ed8570eba2e4be1 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.17 (affected)0 to < 6.17 (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

vhost: fix used ring index wrap in vhost_add_used_n_in_order

Provenance

Schema
5.2
Searchable
yes
Content hash
e645b645c3a9f2c119e7006cec20d5cd6b3fa7639c285bc4ca43f241a178e725
Ingested
23 Nov 2026, 14:37:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected