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=1795098799; b=S6D2d7gYEfHesfVySPs1EKlgUokkvcyLPGOGC3TfKOdktO/qCNFkJYLQgB9pXDENW+Yj 4EV/8if7yeMctE3vJyookKmD6qmJUir1WiNoYOPDDZ8rSzrdfvFX3qpbKzmOGk9mgxnP1 +XY2B4DCzQ9st7negRbfA30i3tzw5IKywb7zPZpJ3sB7tbPd/qMkJfkGt7ehgQv8OJifm TSOahjcD4lcXc9T5tUU20+QMYa+Nf0JbmBWhM8VbLHE1ibHgfKQ2FThNFS4oLvhWiKH3E +f4og6ElNtrWmbwY4ceIQBmCXLuEYjNFQdR78CelG+sbSRt7gx4EfnibC7Sjv490rug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795098799; 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=sQbXrAdkiQQM+SeN1O5ulP3vs1zizzbAcJ0JaLUw2d8=; b=Q5KLriqFTHvuxqPWf2yKovac6CkgmdL8BTwdbOnsd3zXEg5w4CAM/VIm4w51LVclEXmY ds9yMGFPyoq2aXQAU51dcSkwel9/dSuN+NT2fJYTyUL6DLAeNWYyuK+ltVnoLaCQ7goeT F7sAIm4xbdFhdTg7ilZT8dW3uOAf/1M7fvDln+WGJrEqoniFsfB+F8PzLyVz7zC+fp3i0 oRsxXlt3EPw22UQwpt5gUJp5P0ZsppvN0hMh/f0aai/28CVNIt7A5jRmkgrOe0FtB53+p YPHZWH3/hJ/cMdRx4ukqy/P4khuDOUnJt83gw8XV+OJXyOcjX9gIZI3emW2CSpxHDdA== 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=gLlahe8O; 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 30537606A325 for ; Thu, 19 Nov 2026 14:33:18 +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=gLlahe8O Received: by smtp.kernel.org (Postfix) with ESMTPSA id 027561F0089F; Thu, 19 Nov 2026 14:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795098798; bh=sQbXrAdkiQQM+SeN1O5ulP3vs1zizzbAcJ0JaLUw2d8=; h=From:To:Cc:Subject:Date:Reply-To; b=gLlahe8O6bjhTogRaVehot72goSAKnfdf5CN6idWG1Y8QdbJv0svT29TFBgm5f/WY YVBE5IwCY6BaMAseA3dJtNvUm5kamRMn+RjjU8R+nqs3O3SyF49gXz/uW8T2L72lpD rgLHXu/8qV/DKKYb56AdBYiKouvNXfj4Bs4iRlgA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99346: KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch Date: Thu, 19 Nov 2026 15:24:04 +0100 Message-ID: <2026111947-CVE-2026-99346-9fc8@gregkh> X-Mailer: git-send-email 2.56.0 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=4154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=52emTRdVIv436S+ZgTpEbqDnsDEne+EdZfaICNdmd3E=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Yq3+azLm3yyP0ncKV7du+aRb6KJ7tFtUcquM+XNb 2cJPJfoiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInsWcIwz+7RiQXsrjnCEVxf 2zZWPBcJVYriY5hnn/NQ2PSk3JPms93ivXdY9nvXKyoAAA== 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: KVM: SVM: Trigger new ASID allocation in both VMCBs on pCPU switch When the pCPU where the VMCB was most recently used is switched, reset the ASID generation in both VMCBs, triggering new ASID allocation for the immediate VMRUN as well as the next VMRUN on the other VMCB. The ASID is shared between vmcb01 and vmcb02, and gets flushed on every nested transition. However, since pCPU tracking is done per VMCB, it is possible for one VMCB to allocate a new ASID when migrated to a new pCPU, and then the other VMCB reuses that ASID on the old pCPU. This can result in the same ASID being used by multiple vCPUs on the old pCPU. Example scenario: - vCPU runs on pCPU A, vmcb01 is active, asid=1. - vCPU migrates to pCPU B, vmcb01 pCPU changes, new asid=2. - Another vCPU runs on pCPU A and allocates asid=2 as well. - vCPU migrates back to pCPU A, and then switches to vmcb02 before it runs again with vmcb01. - No pCPU switch is detected for vmcb02, so VMRUN is done with asid=2. - Two vCPUs end up using asid=2 on the same pCPU. Keep the VMCB dirtying to the active VMCB only. Clean bits are tracked by a pCPU for each VMCB, so do not unnecessarily dirty a VMCB if its pCPU does not change. Additionally, initialize the tracked pCPU for vmcb02 to -1 on nested enablement as hardening, so that a new ASID allocation is always triggered when nested is disabled and re-enabled. No performance regression was noticed when overcommitting L1 vCPUs in L0 (to force rescheduling), pinning L1 <-> L2 vCPUs, and running CPUID in a tight loop bouncing between 2 vCPUs in L2. An alternative (and perhaps more proper) fix would be tracking the ASID per-VMCB instead (e.g. [1]). However, that's a more involved change, and it would result in having different ASIDs for L1 and L2 without actually properly maintaining them. It would probably work because all TLB flushes target the current VMCB, and the other VMCB is always flushed on nested transitions, but the code ends up in an arguably more fragile state. Punt a proper clean fix to an incoming (and overdue) overhaul of SVM's ASID usage [2]. [1] https://lore.kernel.org/lkml/20250205182402.2147495-2-yosry.ahmed@linux.dev [2] https://lore.kernel.org/kvm/20260728003557.1136583-1-yosry@kernel.org The Linux kernel CVE team has assigned CVE-2026-99346 to this issue. Affected and fixed versions =========================== Fixed in 6.12.117 with commit 5636d57b61068918085360aaad18ab57872e5800 Fixed in 6.18.61 with commit 058173bce103b6ac405b2bbf61e29a7f3767348f Fixed in 7.3.2 with commit 7d787fb34e825218702496fb0d5892529bea9366 Fixed in 7.4-rc1 with commit bf260dc9e7b8bfcd06c1a8e739797b1cf0917c72 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-99346 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: arch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.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/5636d57b61068918085360aaad18ab57872e5800 https://git.kernel.org/stable/c/058173bce103b6ac405b2bbf61e29a7f3767348f https://git.kernel.org/stable/c/7d787fb34e825218702496fb0d5892529bea9366 https://git.kernel.org/stable/c/bf260dc9e7b8bfcd06c1a8e739797b1cf0917c72