# CVE-2025-37936: perf/x86/intel: KVM: Mask PEBS\_ENABLE loaded for guest with vCPU's value.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **Published:** 2025-05-20T15:22:00.557Z
- **Modified:** 2026-10-15T22:18:21.910Z

## Who should check

- Anyone running Linux \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 160153cf9e4aa875ad086cc094ce34aac8e13d63; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 34b6fa11431aef71045ae5a00d90a7d630597eda; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 58f6217e5d0132a9f14e401e62796916aa055c1b
- Anyone running Linux 6.0

## Description

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

perf/x86/intel: KVM: Mask PEBS\_ENABLE loaded for guest with vCPU's value.

When generating the MSR\_IA32\_PEBS\_ENABLE value that will be loaded on
VM-Entry to a KVM guest, mask the value with the vCPU's desired PEBS\_ENABLE
value.  Consulting only the host kernel's host vs. guest masks results in
running the guest with PEBS enabled even when the guest doesn't want to use
PEBS.  Because KVM uses perf events to proxy the guest virtual PMU, simply
looking at exclude\_host can't differentiate between events created by host
userspace, and events created by KVM on behalf of the guest.

Running the guest with PEBS unexpectedly enabled typically manifests as
crashes due to a near-infinite stream of \#PFs.  E.g. if the guest hasn't
written MSR\_IA32\_DS\_AREA, the CPU will hit page faults on address '0' when
trying to record PEBS events.

The issue is most easily reproduced by running \`perf kvm top\` from before
commit 7b100989b4f6 ("perf evlist: Remove \_\_evlist\_\_add\_default") (after
which, \`perf kvm top\` effectively stopped using PEBS).	The userspace side
of perf creates a guest-only PEBS event, which intel\_guest\_get\_msrs()
misconstrues a guest-\*owned\* PEBS event.

Arguably, this is a userspace bug, as enabling PEBS on guest-only events
simply cannot work, and userspace can kill VMs in many other ways (there
is no danger to the host).  However, even if this is considered to be bad
userspace behavior, there's zero downside to perf/KVM restricting PEBS to
guest-owned events.

Note, commit 854250329c02 ("KVM: x86/pmu: Disable guest PEBS temporarily
in two rare situations") fixed the case where host userspace is profiling
KVM \*and\* userspace, but missed the case where userspace is profiling only
KVM.

## Affected and fixed versions

- Linux: \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 160153cf9e4aa875ad086cc094ce34aac8e13d63; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 34b6fa11431aef71045ae5a00d90a7d630597eda; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 58f6217e5d0132a9f14e401e62796916aa055c1b (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 58f6217e5d0132a9f14e401e62796916aa055c1b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37936. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37936.md
Affected: Linux >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 160153cf9e4aa875ad086cc094ce34aac8e13d63; >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 34b6fa11431aef71045ae5a00d90a7d630597eda; >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5; >= c59a1f106f5cd4843c09706…
Fixed in: Linux 160153cf9e4aa875ad086cc094ce34aac8e13d63, Linux 34b6fa11431aef71045ae5a00d90a7d630597eda, Linux 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5, Linux 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b, Linux 58f6217e5d0132a9f14e401e62796916aa055c1b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37936 being exploited?

There is no confirmed exploitation: CVE-2025-37936 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-37936?

High: CVSS 8.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37936?

Linux \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 160153cf9e4aa875ad086cc094ce34aac8e13d63; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 34b6fa11431aef71045ae5a00d90a7d630597eda; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b; \>= c59a1f106f5cd4843c097069ff1bb2ad72103a67, \< 58f6217e5d0132a9f14e401e62796916aa055c1b; Linux 6.0.

### Is there a fix for CVE-2025-37936?

Yes. Fixed in Linux 160153cf9e4aa875ad086cc094ce34aac8e13d63, Linux 34b6fa11431aef71045ae5a00d90a7d630597eda, Linux 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5, Linux 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b, Linux 58f6217e5d0132a9f14e401e62796916aa055c1b. Upgrade Linux to 58f6217e5d0132a9f14e401e62796916aa055c1b or later.

### How do I check if I'm affected by CVE-2025-37936?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/160153cf9e4aa875ad086cc094ce34aac8e13d63>
- patch: <https://git.kernel.org/stable/c/34b6fa11431aef71045ae5a00d90a7d630597eda>
- patch: <https://git.kernel.org/stable/c/44ee0afc9d1e7a7c1932698de01362ed80cfc4b5>
- patch: <https://git.kernel.org/stable/c/86aa62895fc2fb7ab09d7ca40fae8ad09841f66b>
- patch: <https://git.kernel.org/stable/c/58f6217e5d0132a9f14e401e62796916aa055c1b>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37936>

HTML: <https://flawdb.com/CVE-2025-37936> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37936>
