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 593D63D410E for ; Fri, 24 Apr 2026 14:44:03 +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=1777041843; cv=none; b=PmHLNDfgLVDsRNhv3sYusN9XFyGbxewrJeyZSBJJgEZPhk8kHTsqjFxSOcWZgZZ7iRYF+vbTp7mNIHhKgLxFnBOikUXFh6gUi2ytr7Rg9FObu9UAhH0OQ6wBgAU4XJwm4/arLTeQXh1bUbRiJnJ+sN08+QcH/bjXSNxyfGuWczs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041843; c=relaxed/simple; bh=wxpwDT6xRjrZZeDwzrt8/qQY3qQ8VxVZ3lxvJ+EOHFE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Frs9Ho27KFm4MLDqhrg3/TtXfdI6cNfOCkmjr1PDdLYLllciMXK/Ex1iOazzdjxK5NQ3glGbKbMTYxbCnL1CQxIGYQpoXTPDsP163x0zlt4OApDEK39GLr6+GkGRXxVqGrkb9JjxLdHDlAM8im/QiIlfIp0YLBxnTzuyl2IHXsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nDWVl/a4; 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="nDWVl/a4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A723CC19425; Fri, 24 Apr 2026 14:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041843; bh=wxpwDT6xRjrZZeDwzrt8/qQY3qQ8VxVZ3lxvJ+EOHFE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nDWVl/a4HZ/XpFXNyGQRPqo8N4WU7zp28m9hcz5qymUHMMnhVUqng3FJZZdsZGnmm E++EQsHrkWFxx2Yq1cnvPIIQeuzamJQ356bkdJuT2gb8LcosBklI8woimIfNQU/0ZA XWjzUZrBCYXNEQFqgUY0JArmAfsYOQIR/QewlqqE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31593: KVM: SEV: Reject attempts to sync VMSA of an already-launched/encrypted vCPU Date: Fri, 24 Apr 2026 16:43:29 +0200 Message-ID: <2026042415-CVE-2026-31593-455f@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=3656; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=27D5o44oYEsENJ+72l8FHpVYwWo10n2Zp5r0LMyZ1EI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG1s6V/MzetvKfsywXHvOz8W64O3xZzcZ1KffWun77 fF/gdtsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARgy6GBZvunJ7R3nOJKaLd 4dCGZa1HFX+Z/mWY7/9UbCXfxjnqLaHbnYqlj76+ba9uBwA= 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: SEV: Reject attempts to sync VMSA of an already-launched/encrypted vCPU Reject synchronizing vCPU state to its associated VMSA if the vCPU has already been launched, i.e. if the VMSA has already been encrypted. On a host with SNP enabled, accessing guest-private memory generates an RMP #PF and panics the host. BUG: unable to handle page fault for address: ff1276cbfdf36000 #PF: supervisor write access in kernel mode #PF: error_code(0x80000003) - RMP violation PGD 5a31801067 P4D 5a31802067 PUD 40ccfb5063 PMD 40e5954063 PTE 80000040fdf36163 SEV-SNP: PFN 0x40fdf36, RMP entry: [0x6010fffffffff001 - 0x000000000000001f] Oops: Oops: 0003 [#1] SMP NOPTI CPU: 33 UID: 0 PID: 996180 Comm: qemu-system-x86 Tainted: G OE Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE Hardware name: Dell Inc. PowerEdge R7625/0H1TJT, BIOS 1.5.8 07/21/2023 RIP: 0010:sev_es_sync_vmsa+0x54/0x4c0 [kvm_amd] Call Trace: snp_launch_update_vmsa+0x19d/0x290 [kvm_amd] snp_launch_finish+0xb6/0x380 [kvm_amd] sev_mem_enc_ioctl+0x14e/0x720 [kvm_amd] kvm_arch_vm_ioctl+0x837/0xcf0 [kvm] kvm_vm_ioctl+0x3fd/0xcc0 [kvm] __x64_sys_ioctl+0xa3/0x100 x64_sys_call+0xfe0/0x2350 do_syscall_64+0x81/0x10f0 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7ffff673287d Note, the KVM flaw has been present since commit ad73109ae7ec ("KVM: SVM: Provide support to launch and run an SEV-ES guest"), but has only been actively dangerous for the host since SNP support was added. With SEV-ES, KVM would "just" clobber guest state, which is totally fine from a host kernel perspective since userspace can clobber guest state any time before sev_launch_update_vmsa(). The Linux kernel CVE team has assigned CVE-2026-31593 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit c9609847ae65ca36233077c2b6cb2bc0fb37c77a Fixed in 6.18.24 with commit 692fdf05e55fa03960a1278afdc2478c12daea13 Fixed in 6.19.14 with commit 6ef109e01e1d35199e1a97ea68bdfd3cf3fbf9ab Fixed in 7.0.1 with commit 8f85a4885eee8cb495961ffa371a91828afb9445 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-31593 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/sev.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/c9609847ae65ca36233077c2b6cb2bc0fb37c77a https://git.kernel.org/stable/c/692fdf05e55fa03960a1278afdc2478c12daea13 https://git.kernel.org/stable/c/6ef109e01e1d35199e1a97ea68bdfd3cf3fbf9ab https://git.kernel.org/stable/c/8f85a4885eee8cb495961ffa371a91828afb9445 https://git.kernel.org/stable/c/9b9f7962e3e879d12da2bf47e02a24ec51690e3d