Skip to contentSkip to conversation

CVE-2026-72285: KVM: TDX: Reject concurrent change to CPUID entry count

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

KVM: TDX: Reject concurrent change to CPUID entry count

Reject KVM_TDX_INIT_VM if userspace changes cpuid.nent between the initial read and the subsequent copy of the initialization data.

tdx_td_init() first reads user_data->cpuid.nent to size the flexible kvm_tdx_init_vm copy. The copied structure also contains cpuid.nent, and that field can differ from the value used to size the allocation if userspace modifies the input concurrently. setup_tdparams_cpuids() later passes init_vm->cpuid.nent to kvm_find_cpuid_entry2(), which uses it as the array bound for the copied entries.

Require the copied count to match the value used to size the allocation so that CPUID parsing cannot access beyond the entries actually copied.

The Linux kernel CVE team has assigned CVE-2026-72285 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit 0bd0a4a1428baaf4447e95f0832492d9e3d64961 and fixed in 7.1.5 with commit d6b5aba65e99531c97b146622a406c75653819d5
	Issue introduced in 6.19 with commit 0bd0a4a1428baaf4447e95f0832492d9e3d64961 and fixed in 7.2-rc4 with commit cfbebb55e5127dc162e73fa8956000055a78606c

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-72285

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/vmx/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/d6b5aba65e99531c97b146622a406c75653819d5
	https://git.kernel.org/stable/c/cfbebb55e5127dc162e73fa8956000055a78606c