{"id":"CVE-2026-98477","state":"PUBLISHED","title":"perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()","description":"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.","publishedAt":"2026-10-18T15:15:51.475Z","updatedAt":"2026-10-21T12:55:10.170Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"98181f9721f75f1a544dc563b0d8fed1d5c398d5","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"b5409311b606d536cc485f3706c242c2afa93edb","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"249a2bd87a0e57dc28f36e992807edc9cae309b5","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"ec15f6a50183fc01f470af74ad49900fb3731fca","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"36bb85cf36cab15fb611cb44b78a5df06e4e69a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/events/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/events/core.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98477.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98477","state":"PUBLISHED","datePublished":"2026-10-18T15:15:51.475Z","dateUpdated":"2026-10-21T12:55:10.170Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.351Z"},"containers":{"cna":{"title":"perf/core: Fix NULL pmu_ctx passed to pmu->sched_task()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"98181f9721f75f1a544dc563b0d8fed1d5c398d5","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"b5409311b606d536cc485f3706c242c2afa93edb","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"249a2bd87a0e57dc28f36e992807edc9cae309b5","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"ec15f6a50183fc01f470af74ad49900fb3731fca","versionType":"git"},{"version":"bd27568117664b8b3e259721393df420ed51f57b","status":"affected","lessThan":"36bb85cf36cab15fb611cb44b78a5df06e4e69a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/events/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/events/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/98181f9721f75f1a544dc563b0d8fed1d5c398d5"},{"url":"https://git.kernel.org/stable/c/b5409311b606d536cc485f3706c242c2afa93edb"},{"url":"https://git.kernel.org/stable/c/249a2bd87a0e57dc28f36e992807edc9cae309b5"},{"url":"https://git.kernel.org/stable/c/ec15f6a50183fc01f470af74ad49900fb3731fca"},{"url":"https://git.kernel.org/stable/c/36bb85cf36cab15fb611cb44b78a5df06e4e69a2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:55:10.170Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}