# CVE-2026-98268: perf: Fix null pointer access in is_include_guest_event()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-06T08:45:30.917Z
- Modified: 2026-11-30T12:18:05.947Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 31bdd468afa47321520a1ad56871ba4a72e9ebff before f3eee3e11aa8c60ea8bd271de165adb7fbaeb0fa; from eff95e170275d9e80b968f335cd03d0ac250d2d1 before 7fa9a465ae8f07c0e4685db6edb6a6f984dbd784; from eff95e170275d9e80b968f335cd03d0ac250d2d1 before 88aed0422f39b22406f35f1e758cea25e7bbcfb5; 7.0 (not affected: before 7.0; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f3eee3e11aa8c60ea8bd271de165adb7fbaeb0fa>
- <https://git.kernel.org/stable/c/7fa9a465ae8f07c0e4685db6edb6a6f984dbd784>
- <https://git.kernel.org/stable/c/88aed0422f39b22406f35f1e758cea25e7bbcfb5>

## Sources

- CVE List: [CVE-2026-98268](https://www.cve.org/CVERecord?id=CVE-2026-98268), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-98268](https://nvd.nist.gov/vuln/detail/CVE-2026-98268), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-98268 · Whole record: https://cve.day/CVE-2026-98268.json · Rebuilt by cve.day 2026-11-30T12:32:13.227Z
