{"id":"CVE-2026-99686","aliases":[],"title":"vhost: fix used ring index wrap in vhost_add_used_n_in_order","originalDescription":"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).","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00152,"percentile":0.04574},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=6.17.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"vendor","name":"Linux","range":">=67a873df0c410915275f735fedb401b9637d6faf, <308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","fixed":"308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0"},{"ecosystem":"vendor","name":"Linux","range":">=67a873df0c410915275f735fedb401b9637d6faf, <e244725e86be02cd85cb878b3ed8570eba2e4be1","fixed":"e244725e86be02cd85cb878b3ed8570eba2e4be1"},{"ecosystem":"vendor","name":"Linux","range":">=67a873df0c410915275f735fedb401b9637d6faf, <ebdc350cfb1740b6411420482e58a35cc4761628","fixed":"ebdc350cfb1740b6411420482e58a35cc4761628"}],"references":[{"url":"https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628","type":"other"},{"url":"https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0","type":"other"},{"url":"https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1","type":"other"},{"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","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-22T11:19:01.191Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99686","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.146Z"},{"name":"osv","at":"2026-11-22T13:31:45.595Z","url":"https://osv.dev/vulnerability/CVE-2026-99686","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T21:22:51.122Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:03.634Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99686","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:14.854Z"}],"firstSeenAt":"2026-11-20T06:28:14.854Z","publishedAt":"2026-11-20T05:50:31.888Z","modifiedAt":"2026-11-22T13:00:34.734Z"}