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=1794991343; b=L0XmqBN8k4EO5Hf/HkE351xVwwNu5Eo+ex6w/VxoeBwosPGJwzYjPVT8EULo3yd1Vi9d ub/eGAaxpB1+MCzT2eeHZ1lQOHlXB5qZCHgvYXRCkq32pdK8cjx1moUnPJcdMm+IRz0Ny ki2NL4YNNOBiKv2iUvwXKbepy6dgVYcYT9Sqfg2DXZBukSQB21hZfKpot0ZgUW0IeKNm1 HSKVtvRQeMti0dwZzEbTdtPOb9LbC6YlzBxyLkeQIdDrQiV5iAzGcfcBhvsq3vrSRCGSn Aj/PPwhij+r/HjBU/ebjj9fx0BkAE3FvUc163KGR5Yr5Bs1/49kdvUznPhGRqnf1krQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794991343; 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=QKbvt+nZH33ZQHGqlc0+mCT8pEBvzublh615aypDIYI=; b=Z/8Zous0LR6j6+V78TGe66/8RMiolE/2cPvvBUD/7FaAbaPq6w99sMqyN/L4ckUw0yQd XFN9qEbutJVx5zTL9MxfPkik3sJ2FU2mMGkKKJcMmq7ufzn5zV3PgFE3Hb9maNTi3CAw0 0m0EnMZwUJaDsDArmWqwVEuZVjUb8FkC1rSJHmTXe/Zh141bNY6bvubB/L9P9ICTM0ojD WU5+p8GFeN/1hZlKwWrf0yje85JXcz/hBY9lyrbxr5ctlcdxl3qRHp+TPJHXo5WI5dAQA y3lMM0cHhS1sIi4GZCmb4/Uqhz4EWn3V4XZsdxj4oi4ClhJsLge5NaSzFaefQVXQxtg== 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=rthR3LWL; 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 8F8FB606A31C for ; Wed, 18 Nov 2026 08:42:23 +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=rthR3LWL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DD251F000C4; Wed, 18 Nov 2026 08:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794991343; bh=QKbvt+nZH33ZQHGqlc0+mCT8pEBvzublh615aypDIYI=; h=From:To:Cc:Subject:Date:Reply-To; b=rthR3LWLLBgYhM0Q9q0+GOfW9R6gu3pR61I3O7QyjPoyTs3uIZXxBwCY2rBold0ze S7G5Q5rhskP6jfRUwlzZqqcnYDh44CceVYO5RO/IoVPduFABZ1ktlU+NQROZ9DuC54 yw15vTcDzYySjxwwyY2Hb2g0wXl/tppWJ1wtWckc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99312: KVM: x86: Unconditionally reset MMU context when emulating INIT Date: Wed, 18 Nov 2026 09:42:13 +0100 Message-ID: <2026111812-CVE-2026-99312-3c6a@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=3681; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1gkUW3RbPkER+zAOxUEOADLryZSt3S+XNylV9PuBH/Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl/U54InBBafOD8Gt4NG8JsUi84bo84+HRTA3/n8TLbo kdJd59e7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJiCsxzLN1aSzn5e7jZW18 UDLvk80Up5v/xRkW9PkfqqtckaeieyYu3O3vxcYA/gWbAA== 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: x86: Unconditionally reset MMU context when emulating INIT Force an MMU reset when emulating an INIT even if paging was already disabled, as the MMU page role includes guest_mode (L2), i.e. an INIT while L2 is running with CR0.PG=0 will result in KVM running L1 with a stale MMU context. Alternatively, the reset could be scoped strictly to paging being enabled or L2 being active, but SMM is also encoded in the page role. Even though it _should_ be impossible for the vCPU to be INIT'd while SMM is active, there's zero value in not handling SMM. At that point, the only scenario where KVM _doesn't_ need to reset the MMU context is on an INIT with the vCPU running in Real Mode or Unpaged Protect Mode, and while INIT in those modes is somewhat common, it's far from a hot path and re-initializing the MMU is not expensive, especially when the role isn't changing (KVM elides most of the re-configuration in that case). Note, like the Fixes commit, this bug only affects nested SVM as INIT is an unconditional intercept on VMX, i.e. it's impossible to emulate INIT while L2 is active. Temporarily keep the guest TLB flush when CR0.PG is being cleared even though it is fully redundant with the flush that is emitted on all INIT events (KVM itself only does RESET when a vCPU is being created, i.e. when CR0.PG must be '0'). The Linux kernel CVE team has assigned CVE-2026-99312 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit ed129ec9057f89d615ba0c81a4984a90345a1684 and fixed in 6.12.118 with commit f55a3e4e08dc004b4bab7c1e9323d7e7e96e266a Issue introduced in 6.1 with commit ed129ec9057f89d615ba0c81a4984a90345a1684 and fixed in 6.18.64 with commit 24f644ea26c2ebb7b14c3baa2aa92d37fde3095f Issue introduced in 6.1 with commit ed129ec9057f89d615ba0c81a4984a90345a1684 and fixed in 7.3.5 with commit d47bae9eb33b3ca0843a0954b7d0cafb354c99b0 Issue introduced in 6.1 with commit ed129ec9057f89d615ba0c81a4984a90345a1684 and fixed in 7.4-rc2 with commit c7c288d178cb0b78d3464a616b16b1aa0b316049 Issue introduced in 5.15.81 with commit 6425c590d0cc6914658a630a40b7f8226aa028c3 Issue introduced in 6.0.11 with commit d40ef0a511676bd65ca9acb295430c07af59ab85 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-99312 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/x86.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/f55a3e4e08dc004b4bab7c1e9323d7e7e96e266a https://git.kernel.org/stable/c/24f644ea26c2ebb7b14c3baa2aa92d37fde3095f https://git.kernel.org/stable/c/d47bae9eb33b3ca0843a0954b7d0cafb354c99b0 https://git.kernel.org/stable/c/c7c288d178cb0b78d3464a616b16b1aa0b316049