Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EFAD5370AEC for ; Sat, 15 Aug 2026 06:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774834; cv=none; b=asUjAECHbK8rsXMV/xtjFbi2ZNkh8UBJtIuH9xbHdM/647hnxSb0kCY2BDzyydaY+MtZ8Iozr2Q69sHvU1HAsUwX4XDjtY9xzkULapKiDZI/J6vCM0Ls7aclIPwO9q5rURUjn/MFjFrigYe/qy1ZDpH/RczcNcZANtxzDSPyyNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774834; c=relaxed/simple; bh=d/SL6qgcuuI0j3rGliJvuColSgn/H5Lt2gps1LlCdWU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ic1+lPftUcsQ3LdajJzUHMSFr+ifgmQw60PLapWfoZDevxXKyul6AzouDC8d2/xZuYooFyM96G3wFxpLBqCkh41J9XcDLdhdst4WfmjaB4AK9/SMbC4kAsNalcm2UnI8BxEgB1+91B7WWIDZJFGX7CqqVaG0m8gRXTRJaQAbEnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ut1J+8hK; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ut1J+8hK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 523761F000E9; Sat, 15 Aug 2026 06:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774832; bh=jdW4qcbTiE5EZKK9SXgCy796Eao6FPbEXi1FdR0jeZs=; h=From:To:Cc:Subject:Date:Reply-To; b=ut1J+8hKOWApKp2Wg1uhWjC+I9K6RgglTRjpGONfiPR/gX4Non5cfrP/IDiqTXZ3A MBiQdhA7w6NzyKFj6MqyHSB6xhi+KlcsU82tt43agLVYU/wn36XBno7vt9Nukik6uK ohx0/C8lZKGQhQRcQyoTQy7ZLL3pr3muTy6EOABw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72285: KVM: TDX: Reject concurrent change to CPUID entry count Date: Sat, 15 Aug 2026 15:06:04 +0900 Message-ID: <2026081559-CVE-2026-72285-026a@gregkh> X-Mailer: git-send-email 2.55.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=2448; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HBovBojZIgzPhc6+uUEU1tYUymaaOhq2TilcnARTdHA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDNdV16+1f125Vu+6k+HmAheuSvGNK9RWKBs7N6U/m eO7isO+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyNJthrlj8xylT4jPiNZqv xx9LE3KRyLmWw7Cg6VRx5plD8bKLeb++LPjYsvVqH8MDAA== 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: 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