# CVE-2025-38055: perf/x86/intel: Fix segfault with PEBS-via-PT with sample\_freq

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.27% (percentile 13, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-06-18T09:33:35.556Z
- **Modified:** 2026-06-17T09:15:57.867Z

## Who should check

- Anyone running Linux \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< ca51db23166767a8445deb8331c9b8d5205d9287; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 0b1874a5b1173fbcb2185ab828f4c33d067e551e; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 99bcd91fabada0dbb1d5f0de44532d8008db93c6; a9d6d466bcf0621a872e1052bc40e4c6f0541b8d; \>= 6.10.5, \< 6.11
- Anyone running Linux 6.11

## Description

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

perf/x86/intel: Fix segfault with PEBS-via-PT with sample\_freq

Currently, using PEBS-via-PT with a sample frequency instead of a sample
period, causes a segfault.  For example:

    BUG: kernel NULL pointer dereference, address: 0000000000000195
    \<NMI\>
    ? \_\_die\_body.cold+0x19/0x27
    ? page\_fault\_oops+0xca/0x290
    ? exc\_page\_fault+0x7e/0x1b0
    ? asm\_exc\_page\_fault+0x26/0x30
    ? intel\_pmu\_pebs\_event\_update\_no\_drain+0x40/0x60
    ? intel\_pmu\_pebs\_event\_update\_no\_drain+0x32/0x60
    intel\_pmu\_drain\_pebs\_icl+0x333/0x350
    handle\_pmi\_common+0x272/0x3c0
    intel\_pmu\_handle\_irq+0x10a/0x2e0
    perf\_event\_nmi\_handler+0x2a/0x50

That happens because intel\_pmu\_pebs\_event\_update\_no\_drain() assumes all the
pebs\_enabled bits represent counter indexes, which is not always the case.
In this particular case, bits 60 and 61 are set for PEBS-via-PT purposes.

The behaviour of PEBS-via-PT with sample frequency is questionable because
although a PMI is generated (PEBS\_PMI\_AFTER\_EACH\_RECORD), the period is not
adjusted anyway.

Putting that aside, fix intel\_pmu\_pebs\_event\_update\_no\_drain() by passing
the mask of counter bits instead of 'size'.  Note, prior to the Fixes
commit, 'size' would be limited to the maximum counter index, so the issue
was not hit.

## Affected and fixed versions

- Linux: \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< ca51db23166767a8445deb8331c9b8d5205d9287; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 0b1874a5b1173fbcb2185ab828f4c33d067e551e; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 99bcd91fabada0dbb1d5f0de44532d8008db93c6; a9d6d466bcf0621a872e1052bc40e4c6f0541b8d; \>= 6.10.5, \< 6.11 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 6.11 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-38055. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38055.md
Affected: Linux >= 722e42e45c2f1c6d1adec7813651dba5139f52f4, < ca51db23166767a8445deb8331c9b8d5205d9287; >= 722e42e45c2f1c6d1adec7813651dba5139f52f4, < 0b1874a5b1173fbcb2185ab828f4c33d067e551e; >= 722e42e45c2f1c6d1adec7813651dba5139f52f4, < 99bcd91fabada0dbb1d5f0de44532d8008db93c6; a9d6d466bcf0621a872e1052bc…
Fixed in: Linux 0b1874a5b1173fbcb2185ab828f4c33d067e551e, Linux 99bcd91fabada0dbb1d5f0de44532d8008db93c6, Linux 6.11

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-38055 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< ca51db23166767a8445deb8331c9b8d5205d9287; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 0b1874a5b1173fbcb2185ab828f4c33d067e551e; \>= 722e42e45c2f1c6d1adec7813651dba5139f52f4, \< 99bcd91fabada0dbb1d5f0de44532d8008db93c6; a9d6d466bcf0621a872e1052bc40e4c6f0541b8d; \>= 6.10.5, \< 6.11; Linux 6.11.

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

Yes. Fixed in Linux 0b1874a5b1173fbcb2185ab828f4c33d067e551e, Linux 99bcd91fabada0dbb1d5f0de44532d8008db93c6, Linux 6.11. Upgrade Linux to 6.11 or later.

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

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/ca51db23166767a8445deb8331c9b8d5205d9287>
- patch: <https://git.kernel.org/stable/c/0b1874a5b1173fbcb2185ab828f4c33d067e551e>
- patch: <https://git.kernel.org/stable/c/99bcd91fabada0dbb1d5f0de44532d8008db93c6>

## 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-38055>

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