KVM: TDX: Reject concurrent change to CPUID entry count
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cfbebb55e5127dc162e73fa8956000055a78606c, Kernel d6b5aba65e99531c97b146622a406c75653819d5 and Kernel 7.1.5.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.19, >=0bd0a4a1428baaf4447e95f0832492d9e3d64961 <cfbebb55e5127dc162e73fa8956000055a78606c, >=0bd0a4a1428baaf4447e95f0832492d9e3d64961 <d6b5aba65e99531c97b146622a406c75653819d5 | cfbebb55e5127dc162e73fa8956000055a78606c, d6b5aba65e99531c97b146622a406c75653819d5 |
| linux-kernel: Kernel | >=6.19.0 <7.1.5 | 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket