Skip to contentSkip to conversation

CVE-2026-99337: KVM: TDX: Enable Bus Lock VM exit

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

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: 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.

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

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

	Issue introduced in 6.16 with commit 161d34609f9b319d0706eaf7d2cb7a2731251b25 and fixed in 7.3.2 with commit 0f5a9b6e7b222595a3146320875203621bb22d7d
	Issue introduced in 6.16 with commit 161d34609f9b319d0706eaf7d2cb7a2731251b25 and fixed in 7.4-rc1 with commit 63d196e2e20429de5ba501f1b6059d9b93140007

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

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/0f5a9b6e7b222595a3146320875203621bb22d7d
	https://git.kernel.org/stable/c/63d196e2e20429de5ba501f1b6059d9b93140007