Description
In the Linux kernel, the following vulnerability has been resolved: KVM: TDX: Enable Bus Lock VM exit Enable Bus Lock VM exit functionality for TDX guests. Bus Lock VM exit is an existing feature supported by KVM. Userspace can enable Bus Lock VM exit through KVM_BUS_LOCK_DETECTION_EXIT when it's reported as supported. However, KVM reports the support of this CAP just based on the hardware capability but doesn't differentiate between VMX and TDX. This leads to the issue that userspace can enable this cap for TDX guests without getting an error, but the feature is not actually enabled because KVM doesn't call the TDX module API to program the relevant TD VMCS fields. Enable Bus Lock VM exit for TDX guests by programming the BUS_LOCK_DETECTION control in the TD VMCS and by adding the exit handler. Note, there is no enumeration bit for this feature by TDX module because all TDX modules support it and allow to set the TD VMCS as long as the hardware supports the feature.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
161d34609f9b319d0706eaf7d2cb7a2731251b25 to < 0f5a9b6e7b222595a3146320875203621bb22d7daffected161d34609f9b319d0706eaf7d2cb7a2731251b25 to < 63d196e2e20429de5ba501f1b6059d9b93140007affected
Linux Linux
Default version status: affected
6.16affected0 to < 6.16unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected