# CVE-2026-98477: perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()

- 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-02)
- Published: 2026-10-18T15:15:51.475Z
- Modified: 2026-10-21T13:21:31.320Z
- Assigned by: Linux

## Description

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

perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()

perf_pmu_sched_task() returns early when cpuctx->task_ctx is set, and
cpc->task_epc is only non-NULL while a task context is scheduled in on
this CPU. __perf_pmu_sched_task() therefore always passes NULL:

  Unable to handle kernel NULL pointer dereference at virtual address 00
  pc : armv8pmu_sched_task+0x14/0x50
  Call trace:
   armv8pmu_sched_task+0x14/0x50 (P)
   perf_pmu_sched_task+0xac/0x108
   __perf_event_task_sched_out+0x6c/0xe0

Pass &cpc->epc instead, the CPU-wide context for this PMU, which the
function already dereferences a few lines up to find pmu.

armv8pmu_sched_task() is the only in-tree implementation that
dereferences the argument, and it only reads ->pmu, so the oops needs
BRBE, added in v6.17.

(As written by CVE List.)

## Affected

- Linux Linux: from bd27568117664b8b3e259721393df420ed51f57b before 98181f9721f75f1a544dc563b0d8fed1d5c398d5; from bd27568117664b8b3e259721393df420ed51f57b before b5409311b606d536cc485f3706c242c2afa93edb; from bd27568117664b8b3e259721393df420ed51f57b before 249a2bd87a0e57dc28f36e992807edc9cae309b5; from bd27568117664b8b3e259721393df420ed51f57b before ec15f6a50183fc01f470af74ad49900fb3731fca; from bd27568117664b8b3e259721393df420ed51f57b before 36bb85cf36cab15fb611cb44b78a5df06e4e69a2; 6.2 (not affected: before 6.2; from 6.6.160 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/98181f9721f75f1a544dc563b0d8fed1d5c398d5>
- <https://git.kernel.org/stable/c/b5409311b606d536cc485f3706c242c2afa93edb>
- <https://git.kernel.org/stable/c/249a2bd87a0e57dc28f36e992807edc9cae309b5>
- <https://git.kernel.org/stable/c/ec15f6a50183fc01f470af74ad49900fb3731fca>
- <https://git.kernel.org/stable/c/36bb85cf36cab15fb611cb44b78a5df06e4e69a2>

## Sources

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

---

Page: https://cve.day/CVE-2026-98477 · Whole record: https://cve.day/CVE-2026-98477.json · Rebuilt by cve.day 2026-11-25T22:59:45.195Z
