Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4B0938E118 for ; Wed, 1 Apr 2026 08:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032702; cv=none; b=G2JWDfqEZ2A3mPQcz6k4KkP75/Fpo7Q9UsW37uzMPhcKh7cecfa1p5dKjBLLPlOLWMO/gH3WMzql7Q4dQZKsU+AcMRWZNp3yrbTM4Se5xxjr0pvCqKe8zqjUWGUDwGIy/4cc6j0g92V0CFvgzvhwrTSG1iHIw3j12WUAwA9RnN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032702; c=relaxed/simple; bh=nmVg+Rijj02kvhOaphvF48BK2Xq/jqMBmXbW3cin6O8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BJ++vMMl0tnpGTxFNe5jJKLgwbY1YcuE4UvlO9FVchP/FuagESNU7qA9JgurrKBQL49CjqvDefr/8D7FdX/pfG14uK+ltiro6fQvWmmOmu97k3e4Z+NEq27l3+8tw4U9pHJosNAxBLvQUfVHOiaG5QLr0Slmxr9HnLvurPStfuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VMUfs7ZY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VMUfs7ZY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1133AC4CEF7; Wed, 1 Apr 2026 08:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775032702; bh=nmVg+Rijj02kvhOaphvF48BK2Xq/jqMBmXbW3cin6O8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VMUfs7ZY7cQf5YWGzvkurgae9REgcW6qwM9UiNtQFnE8ydjMIvrHtm/EwZu1qBKVE Q9mpKpPwVjsKmNx+Y12hz13riNPw+Uh0HFgEj4YCQdTVuw003HV9QnHNfwNC8SZ230 4ymVZAoJlFvbv5Y5e3j9z/ZSX0jTyrnzoXEROkKY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23401: KVM: x86/mmu: Drop/zap existing present SPTE even when creating an MMIO SPTE Date: Wed, 1 Apr 2026 10:37:09 +0200 Message-ID: <2026040108-CVE-2026-23401-956d@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3052; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TkofBAgPNm//OJMuq5VKJvQj7/Hc0wE7hbHMgX7ajdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlnbpp0FwdXXBVm2ezncyLNhLMuanb7OZ/bJ2SnMv2pP L+hs/5NRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkjzXDgra/8ddPyzFbK1rU vYoJ/Lqi/E6sC8OCm1N+vFqfFKzKv4zntMvfjWcqly4wBwA= 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/mmu: Drop/zap existing present SPTE even when creating an MMIO SPTE When installing an emulated MMIO SPTE, do so *after* dropping/zapping the existing SPTE (if it's shadow-present). While commit a54aa15c6bda3 was right about it being impossible to convert a shadow-present SPTE to an MMIO SPTE due to a _guest_ write, it failed to account for writes to guest memory that are outside the scope of KVM. E.g. if host userspace modifies a shadowed gPTE to switch from a memslot to emulted MMIO and then the guest hits a relevant page fault, KVM will install the MMIO SPTE without first zapping the shadow-present SPTE. ------------[ cut here ]------------ is_shadow_present_pte(*sptep) WARNING: arch/x86/kvm/mmu/mmu.c:484 at mark_mmio_spte+0xb2/0xc0 [kvm], CPU#0: vmx_ept_stale_r/4292 Modules linked in: kvm_intel kvm irqbypass CPU: 0 UID: 1000 PID: 4292 Comm: vmx_ept_stale_r Not tainted 7.0.0-rc2-eafebd2d2ab0-sink-vm #319 PREEMPT Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:mark_mmio_spte+0xb2/0xc0 [kvm] Call Trace: mmu_set_spte+0x237/0x440 [kvm] ept_page_fault+0x535/0x7f0 [kvm] kvm_mmu_do_page_fault+0xee/0x1f0 [kvm] kvm_mmu_page_fault+0x8d/0x620 [kvm] vmx_handle_exit+0x18c/0x5a0 [kvm_intel] kvm_arch_vcpu_ioctl_run+0xc55/0x1c20 [kvm] kvm_vcpu_ioctl+0x2d5/0x980 [kvm] __x64_sys_ioctl+0x8a/0xd0 do_syscall_64+0xb5/0x730 entry_SYSCALL_64_after_hwframe+0x4b/0x53 RIP: 0033:0x47fa3f ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2026-23401 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit a54aa15c6bda3ca7e2f9e040ba968a1da303e24f and fixed in 7.0-rc6 with commit aad885e774966e97b675dfe928da164214a71605 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-23401 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/mmu/mmu.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/aad885e774966e97b675dfe928da164214a71605