# CVE-2025-40359: perf/x86/intel: Fix KASAN global-out-of-bounds warning

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T13:39:58.778Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 1b61a1da3d8105ea1be548c94c2856697eb7ffd1; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251
- Anyone running Linux 6.11

## Description

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

perf/x86/intel: Fix KASAN global-out-of-bounds warning

When running "perf mem record" command on CWF, the below KASAN
global-out-of-bounds warning is seen.

  ==================================================================
  BUG: KASAN: global-out-of-bounds in cmt\_latency\_data+0x176/0x1b0
  Read of size 4 at addr ffffffffb721d000 by task dtlb/9850

  Call Trace:

   kasan\_report+0xb8/0xf0
   cmt\_latency\_data+0x176/0x1b0
   setup\_arch\_pebs\_sample\_data+0xf49/0x2560
   intel\_pmu\_drain\_arch\_pebs+0x577/0xb00
   handle\_pmi\_common+0x6c4/0xc80

The issue is caused by below code in \_\_grt\_latency\_data(). The code
tries to access x86\_hybrid\_pmu structure which doesn't exist on
non-hybrid platform like CWF.

        WARN\_ON\_ONCE(hybrid\_pmu(event-\>pmu)-\>pmu\_type == hybrid\_big)

So add is\_hybrid() check before calling this WARN\_ON\_ONCE to fix the
global-out-of-bounds access issue.

## Affected and fixed versions

- Linux: \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 1b61a1da3d8105ea1be548c94c2856697eb7ffd1; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-40359.md
Affected: Linux >= 090262439f66df03d4e9d0e52e14104b729e2ef8, < 1b61a1da3d8105ea1be548c94c2856697eb7ffd1; >= 090262439f66df03d4e9d0e52e14104b729e2ef8, < 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3; >= 090262439f66df03d4e9d0e52e14104b729e2ef8, < 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251; Linux 6.11
Fixed in: Linux 1b61a1da3d8105ea1be548c94c2856697eb7ffd1, Linux 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3, Linux 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251

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

There is no confirmed exploitation: CVE-2025-40359 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-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 1b61a1da3d8105ea1be548c94c2856697eb7ffd1; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3; \>= 090262439f66df03d4e9d0e52e14104b729e2ef8, \< 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251; Linux 6.11.

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

Yes. Fixed in Linux 1b61a1da3d8105ea1be548c94c2856697eb7ffd1, Linux 710a72e81a7028e1ad1a10eb14f941f8dd45ffd3, Linux 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251. Upgrade Linux to 0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251 or later.

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

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

- other: <https://git.kernel.org/stable/c/1b61a1da3d8105ea1be548c94c2856697eb7ffd1>
- other: <https://git.kernel.org/stable/c/710a72e81a7028e1ad1a10eb14f941f8dd45ffd3>
- other: <https://git.kernel.org/stable/c/0ba6502ce167fc3d598c08c2cc3b4ed7ca5aa251>

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

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