CVE-2026-98937

perf/core: Check kernel access when kernel callchains are requested

State
Published
Severity
Not scored
Published
Oct 23, 2026
Updated
Oct 26, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

perf/core: Check kernel access when kernel callchains are requested

perf_event_open() currently gates perf_allow_kernel() only on !attr.exclude_kernel.

However, users can still request kernel callchain collection with attr.exclude_callchain_kernel == 0 even when attr.exclude_kernel == 1. That still requires kernel profiling privilege, but the existing check does not enforce it.

Update the permission check to call perf_allow_kernel() when either kernel sampling is requested or kernel callchains are requested.

This keeps permission checks aligned with requested data and prevents unprivileged use of kernel callchain capture.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0764771dab80d7b84b9a271bee7f1b21a04a3f0c to before 132bee76097be421ab3012130b5b506324cf2be1Affected
  • 0764771dab80d7b84b9a271bee7f1b21a04a3f0c to before 2581b43e162cfc43e6f5d8dd8d2b38f3441550deAffected
  • 0764771dab80d7b84b9a271bee7f1b21a04a3f0c to before 6e187281f978a2bff98ead6aa40f8ddc9a2c9afbAffected
  • 0764771dab80d7b84b9a271bee7f1b21a04a3f0c to before a4573a3838ae4fc73b70019cfa1dac9aaea7cc2fAffected
LinuxLinux
  • 2.6.31Affected
  • before 2.6.31Not affected
  • 6.12.113 through 6.12.*Not affected
  • 6.18.56 through 6.18.*Not affected
  • 7.2.10 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.