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 8592D7EEF8 for ; Tue, 21 May 2024 15:05:31 +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=1716303931; cv=none; b=FzBaBH+A4lWXQgQid3oRHaqAaxS41mfKOthfC5QvvwUOwAmdNogP8m/gOx49gA0cIln3t0+SrDX/zE+AABhRAfDCpymwNuaVNEXvKAPHBezQ0QKTKf17guZhhjvT3lWVlNs4zPjshhgKG0yWYjna6ZDQCJcae5X2okhI4/gTDQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303931; c=relaxed/simple; bh=jW0yn3Z2/HEpOTxo0hj54zIjBBIEHHNWrfY32hbD0fY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lYPHGmjKlfwLh2JHe87P+LoEdh5acbiRz1afAEWYSk8tNbyFvKkfismsk4lbWSFrQvThOA0mF7a9PB1oSxYei0m2hd0TV2L2qcWNwU4yXwOg3EwktNl6NibkTHLaMMqRqCVqX1dnFX0Hx292HVtCvyJ46No7i+5D3t6gdLisBXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jmz0Xw94; 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="jmz0Xw94" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10C20C2BD11; Tue, 21 May 2024 15:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303931; bh=jW0yn3Z2/HEpOTxo0hj54zIjBBIEHHNWrfY32hbD0fY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jmz0Xw94vVRL6fsS/6ZVz9Mk00rnYhUIqkbjBb+jSDzT8sKCIHXjC4GptjQ7yZYoP u/GA85WkzcAj1cJSmfzDRmpcJ7Mf1jxMkkUbfc7WbKeCtZ5h9URhB+2D04bZJ8K7wS 73toSGO7Dk3iXtXISunKlR1aK1yokvLjTiOM9B6k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47389: KVM: SVM: fix missing sev_decommission in sev_receive_start Date: Tue, 21 May 2024 17:04:06 +0200 Message-ID: <2024052145-CVE-2021-47389-c01c@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2333; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jW0yn3Z2/HEpOTxo0hj54zIjBBIEHHNWrfY32hbD0fY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+2y8JPntUk/Tj+MdVx/zYvjzc3G5e/rD/wZEItvk3V VrYzm4J7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJLPjOMN+TP4ktZgoPR/HJ Hscyfq6tk+I1fRjmWfMfX3eT/azoqW8731c9dtLWjSj4AQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: fix missing sev_decommission in sev_receive_start DECOMMISSION the current SEV context if binding an ASID fails after RECEIVE_START. Per AMD's SEV API, RECEIVE_START generates a new guest context and thus needs to be paired with DECOMMISSION: The RECEIVE_START command is the only command other than the LAUNCH_START command that generates a new guest context and guest handle. The missing DECOMMISSION can result in subsequent SEV launch failures, as the firmware leaks memory and might not able to allocate more SEV guest contexts in the future. Note, LAUNCH_START suffered the same bug, but was previously fixed by commit 934002cd660b ("KVM: SVM: Call SEV Guest Decommission if ASID binding fails"). The Linux kernel CVE team has assigned CVE-2021-47389 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit af43cbbf954b and fixed in 5.14.10 with commit efd7866e114d Issue introduced in 5.13 with commit af43cbbf954b and fixed in 5.15 with commit f1815e0aa770 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-2021-47389 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/efd7866e114dcb44f86d151e843f8276b7efbc67 https://git.kernel.org/stable/c/f1815e0aa770f2127c5df31eb5c2f0e37b60fa77