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 012FD3C2796 for ; Fri, 24 Apr 2026 14:43:58 +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=1777041838; cv=none; b=mCUk/pVgtPxWl3IXfIYU3w8azXzz98wzpMfmXyd0BHJpQwrx8n8jR4J3/K2Z2zPzOx/e+smx+tW5BaOSKYd5qtLs6ID0z0A7/5q+x8aYqq9uTSMlYH5Pa4nQuBB+oRe6WzZOHS5CQ40mjJ8FnugyIJdJ1hx0TGz/j7W045z4mXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041838; c=relaxed/simple; bh=tJzSOHNbcqCvBxD/mibHUYzs58VwxQPYiapvsJt84B8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aJ9w1rikFRpsYU50IHaGgzA/UavQwsxSm3d1gDhE2Zt2AwfpQZUSZIRuIuoxGG+wk0Dqusf/vdQ0VM6v7Qc0thYL07SlesAvjZPidSNgpu1ew83N4Lm4C8llMRI0m44+GyMBjIGlllFpxW6sHv9L3H12PwWcDTgYreY7lVLu6Y0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CDvqDVwb; 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="CDvqDVwb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B16FC19425; Fri, 24 Apr 2026 14:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041837; bh=tJzSOHNbcqCvBxD/mibHUYzs58VwxQPYiapvsJt84B8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CDvqDVwbQ8EDld7eNPA/c8LmVor+Hp0X4pGEqHIEevipXM5uegNvRynDwdvRRxR/E v/XvhUB4lnk0hnmoZlEhvvvoSGFZPep/EeXCo3OMD94pPKGT5Q2k39Lvr3ekHsYL9m m9yobCfIX0AY6y4b362BMr4pF2Mnn8pwpcmFyJLE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31591: KVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish Date: Fri, 24 Apr 2026 16:43:27 +0200 Message-ID: <2026042415-CVE-2026-31591-4148@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=2192; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HgHJd8+k4Wc1ihCaVI7aprQY6hQvs8WVDpG/SrTw9ZQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG5tX8VUbe7N+ar0x85jgoQPSWcbBvI0ZSY83afXs1 WGyUDDpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlUSzHMD+7N+CeuY75eZrrX x6Z1yU9UldteMsyvZ5YKXMc648z3xTP5TdWuTDjEm7YYAA== 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: Lock all vCPUs when synchronzing VMSAs for SNP launch finish Lock all vCPUs when synchronizing and encrypting VMSAs for SNP guests, as allowing userspace to manipulate and/or run a vCPU while its state is being synchronized would at best corrupt vCPU state, and at worst crash the host kernel. Opportunistically assert that vcpu->mutex is held when synchronizing its VMSA (the SEV-ES path already locks vCPUs). The Linux kernel CVE team has assigned CVE-2026-31591 to this issue. Affected and fixed versions =========================== Fixed in 6.18.24 with commit 30fd9d8c82087742168db779929d8be0459b0716 Fixed in 6.19.14 with commit 4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5 Fixed in 7.0.1 with commit c87938fc7d99a06a7e5477c45b4e5a4148f85d66 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-31591 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/30fd9d8c82087742168db779929d8be0459b0716 https://git.kernel.org/stable/c/4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5 https://git.kernel.org/stable/c/c87938fc7d99a06a7e5477c45b4e5a4148f85d66 https://git.kernel.org/stable/c/cb923ee6a80f4e604e6242a4702b59251e61a380