CVE-2026-98268

perf: Fix null pointer access in is_include_guest_event()

Published Oct 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

perf: Fix null pointer access in is_include_guest_event()

A typical module unload occurring event when there is an active perf
connection leads to freeing of the pmu pointer. The call log is something
like:
..
__pmu_detach_event
pmu_detach_event
pmu_detach_events
perf_pmu_unregister
..

__pmu_detach_event() sets event->pmu to null. When the perf connection
finally is closed, the following stack trace is observed:

Oops: general protection fault, kernel NULL pointer dereference
...
RIP: 0010:_free_event+0x3e/0x370
...
Call Trace:
...
perf_event_release_kernel+0x260/0x2d0
perf_release+0x12/0x20

A call to mediated_pmu_unaccount_event() inside _free_event() is the root
cause of this crash. Adding a check inside is_include_guest_event() ensures
we don't accidentally access a null pmu ptr. In addition to this, we will
now call mediated_pmu_unaccount_event() before clearing the pmu ptr so that
nr_include_guest_events counts are maintained correctly.

Analysis

AI-generated

Technical impact

The vulnerability stems from a null pointer dereference in the Linux kernel’s perf subsystem during the cleanup of active perf events. When a module unload occurs while a perf connection is still open, the event’s pmu pointer is cleared to null and later referenced, triggering a general protection fault and bringing the system down. An attacker controlling or manipulating perf events could therefore cause a kernel panic, leading to loss of availability of the affected system. The flaw is rooted in an unchecked null pointer use.

Affected Systems

All Linux kernel releases prior to the application of the commits referenced in the advisory (c/7fa9a465ae8f07c0e4685db6b6a6f984dbd784 and c/88aed0422f39b22406f35f1e758cea25e7bbcfb5) are affected. The issue exists across all architectures where the perf event handling code is compiled and has not yet been patched. No specific kernel version numbers are listed, so administrators should verify that their current kernel incorporates the fixes from the cited commits.

Risk and Exploitability

Based on the description, the likely attack vector is local: a local actor with permission to create and unload perf events can trigger a general protection fault that brings the system down. The EPSS score is < 1%, indicating a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, suggesting no known public exploitation. The risk remains serious when perf events are enabled, but the low exploitation probability and lack of remote vectors reduce the overall threat level. The CVSS score of 5.5 indicates moderate severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that contains the commit fixing a null pointer dereference in perf’s is_include_guest_event() logic.
  • If using a custom or embedded kernel build, recompile it including the corrective changes before deploying to production.
  • Where rapid upgrade is not feasible, limit or disable the use of perf events on the vulnerable kernel to mitigate the crash risk.

Generated by OpenCVE AI on October 11, 2026 at 04:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: perf: Fix null pointer access in is_include_guest_event() A typical module unload occurring event when there is an active perf connection leads to freeing of the pmu pointer. The call log is something like: .. __pmu_detach_event pmu_detach_event pmu_detach_events perf_pmu_unregister .. __pmu_detach_event() sets event->pmu to null. When the perf connection finally is closed, the following stack trace is observed: Oops: general protection fault, kernel NULL pointer dereference ... RIP: 0010:_free_event+0x3e/0x370 ... Call Trace: ... perf_event_release_kernel+0x260/0x2d0 perf_release+0x12/0x20 A call to mediated_pmu_unaccount_event() inside _free_event() is the root cause of this crash. Adding a check inside is_include_guest_event() ensures we don't accidentally access a null pmu ptr. In addition to this, we will now call mediated_pmu_unaccount_event() before clearing the pmu ptr so that nr_include_guest_events counts are maintained correctly.
Title perf: Fix null pointer access in is_include_guest_event()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 12:08 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Nov 30, 2026, 12:18 PM
Severity
Low
Public date
Oct 6, 2026, 12:00 AM