{"id":"CVE-2026-98477","aliases":["CVE-2026-98477"],"related":[],"kind":"vulnerability","state":"published","title":"perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix NULL pmu_ctx passed to pmu->sched_task()\n\nperf_pmu_sched_task() returns early when cpuctx->task_ctx is set, and\ncpc->task_epc is only non-NULL while a task context is scheduled in on\nthis CPU. __perf_pmu_sched_task() therefore always passes NULL:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 00\n  pc : armv8pmu_sched_task+0x14/0x50\n  Call trace:\n   armv8pmu_sched_task+0x14/0x50 (P)\n   perf_pmu_sched_task+0xac/0x108\n   __perf_event_task_sched_out+0x6c/0xe0\n\nPass &cpc->epc instead, the CPU-wide context for this PMU, which the\nfunction already dereferences a few lines up to find pmu.\n\narmv8pmu_sched_task() is the only in-tree implementation that\ndereferences the argument, and it only reads ->pmu, so the oops needs\nBRBE, added in v6.17.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix NULL pmu_ctx passed to pmu->sched_task()\n\nperf_pmu_sched_task() returns early when cpuctx->task_ctx is set, and\ncpc->task_epc is only non-NULL while a task context is scheduled in on\nthis CPU. __perf_pmu_sched_task() therefore always passes NULL:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 00\n  pc : armv8pmu_sched_task+0x14/0x50\n  Call trace:\n   armv8pmu_sched_task+0x14/0x50 (P)\n   perf_pmu_sched_task+0xac/0x108\n   __perf_event_task_sched_out+0x6c/0xe0\n\nPass &cpc->epc instead, the CPU-wide context for this PMU, which the\nfunction already dereferences a few lines up to find pmu.\n\narmv8pmu_sched_task() is the only in-tree implementation that\ndereferences the argument, and it only reads ->pmu, so the oops needs\nBRBE, added in v6.17.","source":"cvelist"}],"published":"2026-10-18T15:15:51.475Z","modified":"2026-10-21T13:21:31.320Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"98181f9721f75f1a544dc563b0d8fed1d5c398d5","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"b5409311b606d536cc485f3706c242c2afa93edb","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"249a2bd87a0e57dc28f36e992807edc9cae309b5","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"ec15f6a50183fc01f470af74ad49900fb3731fca","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"36bb85cf36cab15fb611cb44b78a5df06e4e69a2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/98181f9721f75f1a544dc563b0d8fed1d5c398d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5409311b606d536cc485f3706c242c2afa93edb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/249a2bd87a0e57dc28f36e992807edc9cae309b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec15f6a50183fc01f470af74ad49900fb3731fca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/36bb85cf36cab15fb611cb44b78a5df06e4e69a2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98477","url":"https://www.cve.org/CVERecord?id=CVE-2026-98477","licence":"CVE Terms of Use","modified":"2026-10-21T12:55:10.170Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98477","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98477","licence":"Public domain","modified":"2026-10-21T13:21:31.320Z"}],"updatedAt":"2026-11-25T22:59:45.195Z","epss":{"score":0.00168,"percentile":0.0637,"date":"2026-12-02T12:00:21.000Z"}}