Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2024-53135

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-53135

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "c3742319d021f5aa3a0a8c828485fee14753f6de",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "d4b42f926adcce4e5ec193c714afd9d37bba8e5b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "b8a1d572478b6f239061ee9578b2451bf2f021c2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "e6716f4230a8784957273ddd27326264b27b9313",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "d28b059ee4779b5102c5da6e929762520510e406",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "b91bb0ce5cd7005b376eac690ec664c1b56372ec",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f99e3daf94ff35dd4a878d32ff66e1fd35223ad6",
        "lessThan": "aa0d42cacf093a6fcca872edc954f6f812926a17",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "arch/x86/kvm/vmx/vmx.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.4.287",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.231",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.174",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.119",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.63",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.11.10",
        "versionType": "semver",
        "lessThanOrEqual": "6.11.*"
      },
      {
        "status": "unaffected",
        "version": "6.12",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "arch/x86/kvm/vmx/vmx.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-53135

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30387 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement