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 57BF53CE49D for ; Wed, 22 Apr 2026 13:55:34 +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=1776866134; cv=none; b=ZSP6LbheFN0g8LFN5Xa0J4GchF98Lk7L/h6oNHajBj+FWqOeM9aPr0keA6Ecy2/UNacUo+YWHe0xM3ighudYwijsOoKzyeB5igeivrJichYFTmyJ9HdbM8I+fvbuVhCaaRSsdnRbiqfvkZPlg1hzLN5AE3u94i+PvkgJvrgzyq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866134; c=relaxed/simple; bh=nCzXX/eWhL8SGtnEPyP/WQTzvrVKAmUhS5o0ryFfkdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q1yBvqmnazpzO3D15Wz605FhEeD0etJD6yWsq4JTWCC/SJwp26MZSmYPw+1gvI7t2XasKpi92HhU9w/N+udU/HkSYDy9oVAFGCNF4bUF5RDntvZ1dUZi3Qi+Q2VcrnJ6LnZAXAHutglpchf8DroWiCCpT5VhdhTjQPlhR15llfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=metWLHXB; 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="metWLHXB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80363C19425; Wed, 22 Apr 2026 13:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866133; bh=nCzXX/eWhL8SGtnEPyP/WQTzvrVKAmUhS5o0ryFfkdY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=metWLHXBr8/Cv60PzwWZcKAtCnXTgB7V+2cbIB2tRTRGmAjymuUUYVTZdgXTEgrMA CGVTaTTYWPnd97YsSNlmj3dtNvMVOP6XYOZKk3ZO+DAyf6ccRZnuFMoGHQgBsj4YTI 9/c98jx4RFyi3g8m/eIka2MTUpTsybWYOY7K4AHY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31470: virt: tdx-guest: Fix handling of host controlled 'quote' buffer length Date: Wed, 22 Apr 2026 15:54:16 +0200 Message-ID: <2026042254-CVE-2026-31470-350c@gregkh> X-Mailer: git-send-email 2.54.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=3028; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nsB2MwUR3ERKRTLR5dtcuSFuKBSftSUW0k1ruYRmqGs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn2aObXfXHARQ2SPv20ik9ZmjulMN+6cvTn5/NWwc 9pal1sfdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErD8yLFgkflk/5FCv+9rr XI4mk6OPXuM6I86wYMqUGM+tSjkP6rcZKyZ73rXInbRMEAA= 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: virt: tdx-guest: Fix handling of host controlled 'quote' buffer length Validate host controlled value `quote_buf->out_len` that determines how many bytes of the quote are copied out to guest userspace. In TDX environments with remote attestation, quotes are not considered private, and can be forwarded to an attestation server. Catch scenarios where the host specifies a response length larger than the guest's allocation, or otherwise races modifying the response while the guest consumes it. This prevents contents beyond the pages allocated for `quote_buf` (up to TSM_REPORT_OUTBLOB_MAX) from being read out to guest userspace, and possibly forwarded in attestation requests. Recall that some deployments want per-container configs-tsm-report interfaces, so the leak may cross container protection boundaries, not just local root. The Linux kernel CVE team has assigned CVE-2026-31470 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.12.80 with commit a079a62883e3365de592cea9f7a669d8115433b0 Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.18.21 with commit 6f3c8795ae9ba74fa10fe979293d1904712d3fb1 Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 6.19.11 with commit 02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b Issue introduced in 6.7 with commit f4738f56d1dc62aaba69b33702a5ab098f1b8c63 and fixed in 7.0 with commit c3fd16c3b98ed726294feab2f94f876290bf7b61 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-31470 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/a079a62883e3365de592cea9f7a669d8115433b0 https://git.kernel.org/stable/c/6f3c8795ae9ba74fa10fe979293d1904712d3fb1 https://git.kernel.org/stable/c/02ca2d9d197723696cb9cc0cb159eb7e8bf5f89b https://git.kernel.org/stable/c/c3fd16c3b98ed726294feab2f94f876290bf7b61