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 B2E2116E89B for ; Wed, 18 Sep 2024 07:20:14 +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=1726644014; cv=none; b=PDHlKQUfAabqAjs6H3AL7KkStno+IF5jx3t8m5zXCneKGgztGZ5QeZiHqpCKJecHeY07SasiNDZlmLrxBJJKSwBiCL5k/OROZKcV0ZPS4fjni2ghc+BkCR5GEkC8PvlVDNlC8sRykATK7iCvwpMwgU3P7wVMiXOgb9+Po9P3GVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726644014; c=relaxed/simple; bh=xzutCmEnjWHrFrodpkFIDi1rqCQnc/ro/byOppMvBdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DFSEivdt+I0IkPJUhsECdLvK7DuXK57XBfe96+n4TjfarBIbriXFpxNTG32rmWRHlOmBSgxGbGW/ugRGcHKpafEDNx5sjM3cy7EozfOHuw/ipLeZJKEd9khlbc3if3ZF9RbE2vr2d2pnSHxp3CEKBepXu0B1kNPBj4tUHPZY+Gs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zVZN4AFv; 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="zVZN4AFv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40A58C4CEC3; Wed, 18 Sep 2024 07:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726644014; bh=xzutCmEnjWHrFrodpkFIDi1rqCQnc/ro/byOppMvBdY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zVZN4AFvrSgefpT1l28UVcuQP1nOTm8+757ZsRmcAV4l5s3HOmguWqTB65+Bf/n1b mCzcaZ4dAOjnsDgEUf0kTYMASPUeg+/5aRFI8o/U0xz5EcQvwWp8IjhqVij7VcEQt/ tt97v9MB+M4GW9U4u+sBj1AnfJZzPJh6mmREbY+I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46794: x86/tdx: Fix data leak in mmio_read() Date: Wed, 18 Sep 2024 09:17:29 +0200 Message-ID: <2024091854-CVE-2024-46794-9f64@gregkh> X-Mailer: git-send-email 2.46.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=2412; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xzutCmEnjWHrFrodpkFIDi1rqCQnc/ro/byOppMvBdY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6tKFDyc+X67PvTjlSXsU67o3Px1fbOWYkjgvw3Jmd Nwpw7y3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRMEGG2SyTT71ty9r9+/cq A679Dl67OixPdzEsWDwzNOG9HPcr1sK+H3vqDzox3nozHwA= 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: x86/tdx: Fix data leak in mmio_read() The mmio_read() function makes a TDVMCALL to retrieve MMIO data for an address from the VMM. Sean noticed that mmio_read() unintentionally exposes the value of an initialized variable (val) on the stack to the VMM. This variable is only needed as an output value. It did not need to be passed to the VMM in the first place. Do not send the original value of *val to the VMM. [ dhansen: clarify what 'val' is used for. ] The Linux kernel CVE team has assigned CVE-2024-46794 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 31d58c4e557d and fixed in 6.1.110 with commit 26c6af49d26f Issue introduced in 5.19 with commit 31d58c4e557d and fixed in 6.6.51 with commit ef00818c50cf Issue introduced in 5.19 with commit 31d58c4e557d and fixed in 6.10.10 with commit b55ce742afcb Issue introduced in 5.19 with commit 31d58c4e557d and fixed in 6.11 with commit b6fb565a2d15 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-46794 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/coco/tdx/tdx.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/26c6af49d26ffc377e392e30d4086db19eed0ef7 https://git.kernel.org/stable/c/ef00818c50cf55a3a56bd9a9fae867c92dfb84e7 https://git.kernel.org/stable/c/b55ce742afcb8e8189d82f2f1e635ba1b5a461fa https://git.kernel.org/stable/c/b6fb565a2d15277896583d471b21bc14a0c99661