{"api_version":"1","generated_at":"2026-11-22T20:39:55+00:00","cve":"CVE-2026-99686","urls":{"html":"https://cve.report/CVE-2026-99686","api":"https://cve.report/api/cve/CVE-2026-99686.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99686","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99686"},"summary":{"title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: fix used ring index wrap in vhost_add_used_n_in_order\n\nvhost_add_used_n_in_order() advances start by nheads[i] but wraps it\nwith a single subtraction.  If start + nheads[i] >= 2 * vq->num, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start > vq->num makes (vq->num - start)\nunderflow.  log_write() then sets bits beyond the dirty-log bitmap,\npotentially corrupting adjacent userspace memory.  This is reachable on\nthe vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach\nVHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.\n\nWrap start with a mask to keep it within the ring.  VHOST_SET_VRING_NUM\nenforces a nonzero power-of-two ring size, allowing start to be wrapped\nusing & (vq->num - 1).","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:03","updated_at":"2026-11-22 11:17:06"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1","name":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","name":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628","name":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99686","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99686","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a873df0c410915275f735fedb401b9637d6faf ebdc350cfb1740b6411420482e58a35cc4761628 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a873df0c410915275f735fedb401b9637d6faf 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 67a873df0c410915275f735fedb401b9637d6faf e244725e86be02cd85cb878b3ed8570eba2e4be1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99686","cve":"CVE-2026-99686","epss":"0.001660000","percentile":"0.059250000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/vhost/vhost.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ebdc350cfb1740b6411420482e58a35cc4761628","status":"affected","version":"67a873df0c410915275f735fedb401b9637d6faf","versionType":"git"},{"lessThan":"308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","status":"affected","version":"67a873df0c410915275f735fedb401b9637d6faf","versionType":"git"},{"lessThan":"e244725e86be02cd85cb878b3ed8570eba2e4be1","status":"affected","version":"67a873df0c410915275f735fedb401b9637d6faf","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/vhost/vhost.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: fix used ring index wrap in vhost_add_used_n_in_order\n\nvhost_add_used_n_in_order() advances start by nheads[i] but wraps it\nwith a single subtraction.  If start + nheads[i] >= 2 * vq->num, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start > vq->num makes (vq->num - start)\nunderflow.  log_write() then sets bits beyond the dirty-log bitmap,\npotentially corrupting adjacent userspace memory.  This is reachable on\nthe vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach\nVHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.\n\nWrap start with a mask to keep it within the ring.  VHOST_SET_VRING_NUM\nenforces a nonzero power-of-two ring size, allowing start to be wrapped\nusing & (vq->num - 1)."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:44.198Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628"},{"url":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"},{"url":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1"}],"title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99686","datePublished":"2026-11-20T05:50:31.888Z","dateReserved":"2026-09-25T10:25:14.429Z","dateUpdated":"2026-11-22T11:09:44.198Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:03","lastModifiedDate":"2026-11-22 11:17:06","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.1,"impactScore":6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99686","Ordinal":"1","Title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","CVE":"CVE-2026-99686","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99686","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost: fix used ring index wrap in vhost_add_used_n_in_order\n\nvhost_add_used_n_in_order() advances start by nheads[i] but wraps it\nwith a single subtraction.  If start + nheads[i] >= 2 * vq->num, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start > vq->num makes (vq->num - start)\nunderflow.  log_write() then sets bits beyond the dirty-log bitmap,\npotentially corrupting adjacent userspace memory.  This is reachable on\nthe vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach\nVHOST_NET_BATCH (64), triggering the issue with a 32-entry ring.\n\nWrap start with a mask to keep it within the ring.  VHOST_SET_VRING_NUM\nenforces a nonzero power-of-two ring size, allowing start to be wrapped\nusing & (vq->num - 1).","Type":"Description","Title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order"}]}}}