Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154271; b=Rqb0ph1tdMNpQW55BeTjax1/bijk8CtuAQaNV/8/RT4nbTMSrtvX3RlXuShB3C0KZiXG mklprYBjRdREBwOw6zVh7qdgpPh1POpKRB0UFOwUE09SVSUryyq2r/01YFU4uQVAkEPuD aAYB+I3s9vW9MhWrT0kCHzSKj6IpgO7wK4Ueffcw5s0pOv2M6fF2ZXTOIgDU1ke91c9+0 39RyE0aTXkpO5dyXElZ4P0yWM6JT5yYmHP0UG+awONpVVW6DCcmQwIWeoZcsaIzNZ8NXF UA4j4+zIAiB5xWUDEBvmYDkmnhdSDL6kZM7FbncQ1kyzZiII5M2JIhyDHRUqzAslHMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154271; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=I0epYnflP6x5HFajwktSBYanNADFgx+4G4zEkoupDRA=; b=kG3pINbFIkua7mpPvR0IS6YmwT4cmvJ/I6NPMSf5QcZYwhbu7TMK9BqvtfL3b3CfcakY uuJXT4pV2On47E672kbuEhZCNsrX4eZ0fKhGqWTs5GHr6X2S8gpSQSm+LhWS/rel/UmyW zjBTE5yWzKpUlOkq7jNfMyQYUy0EE7lfeXtu27mZZTVROqr6g133H5VVOWPCKBg5rY0ED kH7tgcHYn38/okK8en+BZZDtOYMpi5TgsnXZcYDfi65C3g8UjfQpStLgCvhqRnfLBagnr u5l5poGBer3bTLdeCToa/5Ag/abYmyfHMC2MefXVzxBGMYS8T7rguPb0oJehijQ7zSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q04TTQLb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 848A360A2613 for ; Fri, 20 Nov 2026 05:57:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q04TTQLb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FB9B1F000CF; Fri, 20 Nov 2026 05:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154271; bh=I0epYnflP6x5HFajwktSBYanNADFgx+4G4zEkoupDRA=; h=From:To:Cc:Subject:Date:Reply-To; b=Q04TTQLbQZlfIXnyZyFSe0sVCY88Yl8iEtEZAdnMn4KGC5rLpO+xJ1BuxpBX+Domk vEYoVvvCyE2jrXGSG1VnBFhJPqXQCNke29qNuiPJ+UX7nnuobMlAuMpFzzpG5xwWSM S8qIU6b3ULiwHMrlyGDtNAo2wxzOcXrq3qvUVynM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99686: vhost: fix used ring index wrap in vhost_add_used_n_in_order Date: Fri, 20 Nov 2026 06:51:12 +0100 Message-ID: <2026112056-CVE-2026-99686-3442@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2687; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6nsRYwYdNiIFZ3lM5wSDQGz3duxyVxGBiKwyHA3EUps=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/77c8PB3ygTPnz7+LbFKJ64QYjJUXaPS4N6xawjxvf UqeR/nhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI+zyGeXoVWWU3a8V+fPN/ WMg+LXz1JA/OawwLuthe23Qtd7ujf9hmy/su/TUvJSKmAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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). The Linux kernel CVE team has assigned CVE-2026-99686 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 67a873df0c410915275f735fedb401b9637d6faf and fixed in 6.18.64 with commit ebdc350cfb1740b6411420482e58a35cc4761628 Issue introduced in 6.17 with commit 67a873df0c410915275f735fedb401b9637d6faf and fixed in 7.3.5 with commit 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 Issue introduced in 6.17 with commit 67a873df0c410915275f735fedb401b9637d6faf and fixed in 7.4-rc2 with commit e244725e86be02cd85cb878b3ed8570eba2e4be1 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99686 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/vhost/vhost.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ebdc350cfb1740b6411420482e58a35cc4761628 https://git.kernel.org/stable/c/308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0 https://git.kernel.org/stable/c/e244725e86be02cd85cb878b3ed8570eba2e4be1