CVE-2024-53135

KVM: VMX: Bury Intel PT virtualization (guest/host mode) behind CONFIG_BROKEN

State
Published
Severity
8.8 High
Published
Dec 4, 2024
Updated
Oct 15, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

Description

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

KVM: VMX: Bury Intel PT virtualization (guest/host mode) behind CONFIG_BROKEN

Hide KVM's pt_mode module param behind CONFIG_BROKEN, i.e. disable support for virtualizing Intel PT via guest/host mode unless BROKEN=y. There are myriad bugs in the implementation, some of which are fatal to the guest, and others which put the stability and health of the host at risk.

For guest fatalities, the most glaring issue is that KVM fails to ensure tracing is disabled, and *stays* disabled prior to VM-Enter, which is necessary as hardware disallows loading (the guest's) RTIT_CTL if tracing is enabled (enforced via a VMX consistency check). Per the SDM:

If the logical processor is operating with Intel PT enabled (if IA32_RTIT_CTL.TraceEn = 1) at the time of VM entry, the "load IA32_RTIT_CTL" VM-entry control must be 0.

On the host side, KVM doesn't validate the guest CPUID configuration provided by userspace, and even worse, uses the guest configuration to decide what MSRs to save/load at VM-Enter and VM-Exit. E.g. configuring guest CPUID to enumerate more address ranges than are supported in hardware will result in KVM trying to passthrough, save, and load non-existent MSRs, which generates a variety of WARNs, ToPA ERRORs in the host, a potential deadlock, etc.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before c3742319d021f5aa3a0a8c828485fee14753f6deAffected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before d4b42f926adcce4e5ec193c714afd9d37bba8e5bAffected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before b8a1d572478b6f239061ee9578b2451bf2f021c2Affected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before e6716f4230a8784957273ddd27326264b27b9313Affected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before d28b059ee4779b5102c5da6e929762520510e406Affected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before b91bb0ce5cd7005b376eac690ec664c1b56372ecAffected
  • f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 to before aa0d42cacf093a6fcca872edc954f6f812926a17Affected
LinuxLinux
  • 5.0Affected
  • before 5.0Not affected
  • 5.4.287 through 5.4.*Not affected
  • 5.10.231 through 5.10.*Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.119 through 6.1.*Not affected
  • 6.6.63 through 6.6.*Not affected
  • 6.11.10 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.