Skip to contentSkip to conversation

CVE-2026-31470: virt: tdx-guest: Fix handling of host controlled 'quote' buffer length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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