{"id":"CVE-2026-99686","aliases":["CVE-2026-99686"],"related":[],"kind":"vulnerability","state":"published","title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"}],"published":"2026-11-20T05:50:31.888Z","modified":"2026-11-22T11:17:06.663Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"67a873df0c410915275f735fedb401b9637d6faf","fixed":"ebdc350cfb1740b6411420482e58a35cc4761628","status":"affected"},{"type":"git","introduced":"67a873df0c410915275f735fedb401b9637d6faf","fixed":"308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","status":"affected"},{"type":"git","introduced":"67a873df0c410915275f735fedb401b9637d6faf","fixed":"e244725e86be02cd85cb878b3ed8570eba2e4be1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99686","url":"https://www.cve.org/CVERecord?id=CVE-2026-99686","licence":"CVE Terms of Use","modified":"2026-11-22T11:09:44.198Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99686","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99686","licence":"Public domain","modified":"2026-11-22T11:17:06.663Z"}],"updatedAt":"2026-11-25T22:59:52.307Z","epss":{"score":0.00152,"percentile":0.04574,"date":"2026-12-02T12:00:21.000Z"}}