CVE-2025-37936 perf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kernel(Azure Linux 3.0) | < 6.6.92.2-1 | 6.6.92.2-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.140-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +37 more | 6.1.140-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.29-1 | 6.12.29-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.29-1 | 6.12.29-1 | Fixed |
| Linux kernel | < 6.1.138; < 6.6.90; < 6.12.28; < 6.14.6 +15 more | 6.1.138, 6.6.90, 6.12.28, 6.14.6, 6.15, 34b6fa11431aef71045ae5a00d90a7d630597eda, 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5, 58f6217e5d0132a9f14e401e62796916aa055c1b, 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b, 160153cf9e4aa875ad086cc094ce34aac8e13d63 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.92.2-1 | 6.6.92.2-1 |
| debian/linux(Debian:12) | < 6.1.140-1 | 6.1.140-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
Show 41 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.29-1 | 6.12.29-1 |
| debian/linux(Debian:14) | < 6.12.29-1 | 6.12.29-1 |
| Linux kernel | >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 160153cf9e4aa875ad086cc094ce34aac8e13d63 | 160153cf9e4aa875ad086cc094ce34aac8e13d63 |
| Linux kernel | >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 34b6fa11431aef71045ae5a00d90a7d630597eda | 34b6fa11431aef71045ae5a00d90a7d630597eda |
| Linux kernel | >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5 | 44ee0afc9d1e7a7c1932698de01362ed80cfc4b5 |
| Linux kernel | >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b | 86aa62895fc2fb7ab09d7ca40fae8ad09841f66b |
| Linux kernel | >= c59a1f106f5cd4843c097069ff1bb2ad72103a67, < 58f6217e5d0132a9f14e401e62796916aa055c1b | 58f6217e5d0132a9f14e401e62796916aa055c1b |
| Linux kernel | = 6.0 | No fix listed |
| Linux kernel | < 6.1.138 | 6.1.138 |
| Linux kernel | < 6.6.90 | 6.6.90 |
| Linux kernel | < 6.12.28 | 6.12.28 |
| Linux kernel | < 6.14.6 | 6.14.6 |
| Linux kernel | < 6.15 | 6.15 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 6.0, < 6.1.138 | 6.1.138 |
| Linux kernel | >= 6.2, < 6.6.90 | 6.6.90 |
| Linux kernel | >= 6.7, < 6.12.28 | 6.12.28 |
| Linux kernel | >= 6.13, < 6.14.6 | 6.14.6 |
| Linux kernel | = 6.15-rc1 | No fix listed |
| Linux kernel | = 6.15-rc2 | No fix listed |
| Linux kernel | = 6.15-rc3 | No fix listed |
| Linux kernel | = 6.15-rc4 | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-37936 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7649-1 vendor-advisory
- USN-7650-1 vendor-advisory
- USN-7649-2 vendor-advisory
- USN-7665-1 vendor-advisory
- USN-7665-2 vendor-advisory
- USN-7721-1 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-15918 third-party-advisory