{
  "id": "CVE-2025-37936",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37936",
  "published_at": "2025-05-20T15:22:00.557Z",
  "title": "perf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.\n\nWhen generating the MSR_IA32_PEBS_ENABLE value that will be loaded on\nVM-Entry to a KVM guest, mask the value with the vCPU's desired PEBS_ENABLE\nvalue.  Consulting only the host kernel's host vs. guest masks results in\nrunning the guest with PEBS enabled even when the guest doesn't want to use\nPEBS.  Because KVM uses perf events to proxy the guest virtual PMU, simply\nlooking at exclude_host can't differentiate between events created by host\nuserspace, and events created by KVM on behalf of the guest.\n\nRunning the guest with PEBS unexpectedly enabled typically manifests as\ncrashes due to a near-infinite stream of #PFs.  E.g. if the guest hasn't\nwritten MSR_IA32_DS_AREA, the CPU will hit page faults on address '0' when\ntrying to record PEBS events.\n\nThe issue is most easily reproduced by running `perf kvm top` from before\ncommit 7b100989b4f6 (\"perf evlist: Remove __evlist__add_default\") (after\nwhich, `perf kvm top` effectively stopped using PEBS).\tThe userspace side\nof perf creates a guest-only PEBS event, which intel_guest_get_msrs()\nmisconstrues a guest-*owned* PEBS event.\n\nArguably, this is a userspace bug, as enabling PEBS on guest-only events\nsimply cannot work, and userspace can kill VMs in many other ways (there\nis no danger to the host).  However, even if this is considered to be bad\nuserspace behavior, there's zero downside to perf/KVM restricting PEBS to\nguest-owned events.\n\nNote, commit 854250329c02 (\"KVM: x86/pmu: Disable guest PEBS temporarily\nin two rare situations\") fixed the case where host userspace is profiling\nKVM *and* userspace, but missed the case where userspace is profiling only\nKVM.",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \u003c 160153cf9e4aa875ad086cc094ce34aac8e13d63",
          "\u003e= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \u003c 34b6fa11431aef71045ae5a00d90a7d630597eda",
          "\u003e= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \u003c 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5",
          "\u003e= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \u003c 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b",
          "\u003e= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \u003c 58f6217e5d0132a9f14e401e62796916aa055c1b"
        ],
        "fixed_in": [
          "160153cf9e4aa875ad086cc094ce34aac8e13d63",
          "34b6fa11431aef71045ae5a00d90a7d630597eda",
          "44ee0afc9d1e7a7c1932698de01362ed80cfc4b5",
          "86aa62895fc2fb7ab09d7ca40fae8ad09841f66b",
          "58f6217e5d0132a9f14e401e62796916aa055c1b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.138",
          "6.6.90",
          "6.12.28",
          "6.14.6",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 160153cf9e4aa875ad086cc094ce34aac8e13d63 or 34b6fa11431aef71045ae5a00d90a7d630597eda or 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5 or 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b or 58f6217e5d0132a9f14e401e62796916aa055c1b or later.",
      "Upgrade Linux to 0 or 6.1.138 or 6.6.90 or 6.12.28 or 6.14.6 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
