{"id":"CVE-2026-99686","summary":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","details":"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] \u003e= 2 * vq-\u003enum, start\ncan remain outside the ring.\n\nWith used-ring logging enabled, start \u003e vq-\u003enum makes (vq-\u003enum - 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-\u003enum - 1).","modified":"2026-11-20T07:01:03.383519708Z","published":"2026-11-20T05:50:31.888Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99686.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99686.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99686"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"67a873df0c410915275f735fedb401b9637d6faf"},{"fixed":"ebdc350cfb1740b6411420482e58a35cc4761628"},{"fixed":"308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"},{"fixed":"e244725e86be02cd85cb878b3ed8570eba2e4be1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99686.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99686.json"}}],"schema_version":"1.9.2"}