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 9503B199EB7 for ; Sat, 11 Jan 2025 12:39:57 +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=1736599197; cv=none; b=MCAZnDBwwLs8Du9lleNcpbSk2l8iEaNAMTCM8oYkqpNltNC+Vde/St61v/tKOal+sfyE88A0/UiPp90qcP/bqeWacinSF+nEdE2NVnoklpI6AzrCsfC0JMIKxg/CXDeda2V2Xm60p1YJ80amLPH6fxbGOXRIqwBqyjNarNkVrR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736599197; c=relaxed/simple; bh=8NDPJ31BYNIKgEAoYt1JnyKdT87Itg2XmiwouVdUZDs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cyDJEZ0HTgmFGvGDZbcBoi9V9d+x6VD3fo+pH6RnYqO+oZIhf6bkP3HIpSjUD+oH+2uANpfpczKIVHVb94bzLq+TFyHGw8T3sNrt8T2Pq40IVpsGmFzNUCyQ6bpN8IF+iwVTvjR6TucXO0kY85AyAVB52qz+HAH12ox0MH/aOWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kbSI+0uV; 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="kbSI+0uV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00943C4CED2; Sat, 11 Jan 2025 12:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736599197; bh=8NDPJ31BYNIKgEAoYt1JnyKdT87Itg2XmiwouVdUZDs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kbSI+0uVufLRbhsfVE3BUVWQJq1JyyKkKJJBT7Jp+DKG882vj5P5oSgUlFnmvFvfG Z1F25MjrjkHENZQIjiQY4RBQL3CqYVmBJb/9RniV1N7YlYuc4BL9vzEa9Rp488mRDF qj/pBLp/HB3aSoPVOOyuiRqEB32bfKpNwL4Jg60Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57793: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors Date: Sat, 11 Jan 2025 13:39:52 +0100 Message-ID: <2025011150-CVE-2024-57793-4d57@gregkh> X-Mailer: git-send-email 2.48.0 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=2272; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8NDPJ31BYNIKgEAoYt1JnyKdT87Itg2XmiwouVdUZDs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNadP77n8Pe5XDkn5NIWS7zLeax6WbuR7wtyTvXibyM irJydOsI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSd5RhQVO0/eOIAy0RVx/q zFptmbL6n81GYYb57r4BeUFbzFjl5TbxpzdlRWyTvjgFAA== 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: virt: tdx-guest: Just leak decrypted memory on unrecoverable errors In CoCo VMs it is possible for the untrusted host to cause set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, which could lead to functional or security issues. Leak the decrypted memory when set_memory_decrypted() fails, and don't need to print an error since set_memory_decrypted() will call WARN_ONCE(). The Linux kernel CVE team has assigned CVE-2024-57793 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.12.8 with commit 1429ae7b7d4759a1e362456b8911c701bae655b4 Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.13-rc5 with commit 27834971f616c5e154423c578fa95e0444444ce1 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-2024-57793 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: drivers/virt/coco/tdx-guest/tdx-guest.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/1429ae7b7d4759a1e362456b8911c701bae655b4 https://git.kernel.org/stable/c/27834971f616c5e154423c578fa95e0444444ce1