CVE-2026-98477: perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()
In the Linux kernel, the following vulnerability has been resolved:
perf/core: Fix NULL pmuctx passed to pmu->schedtask()
perfpmuschedtask() returns early when cpuctx->taskctx is set, and cpc->taskepc is only non-NULL while a task context is scheduled in on this CPU. perfpmuschedtask() therefore always passes NULL:
Unable to handle kernel NULL pointer dereference at virtual address 00 pc : armv8pmuschedtask+0x14/0x50 Call trace: armv8pmuschedtask+0x14/0x50 (P) perfpmuschedtask+0xac/0x108 perfeventtaskschedout+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.
armv8pmuschedtask() is the only in-tree implementation that dereferences the argument, and it only reads ->pmu, so the oops needs BRBE, added in v6.17.