Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE24236195E for ; Sun, 18 Oct 2026 15:20:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336860; cv=none; b=k45xMMmz/HZmuXLTx1vx+5+SV0KZM1hkRqemsPOrnD3Ic/4sfoQp8BFvKJFZZTEpyp93iN5sDRwkLyJq5Nm3pWHCzAE2CXY3ik3IdFxmHOSyCFFynOsram710Ojo6fgyI+XDMaeVcfvhtV5qwOK+YOeJ8QZ5+eVsGDZ/4+Fn6TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336860; c=relaxed/simple; bh=YcuQQadKWEhhBHDejUE3zRv+f9IY8/iq11Lf7iDS0aI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FkQw9WerkEUWMTv8T97tlcZZrCgiIUiO29WuQ+qlYH2W2cGfgcOqWK6CZf8HFgpGb3/zW+Ekjmc4AZYCfBXdeZz+U+vGG5NuwSapCo+6qQ5xklwMxdzSUDnDZPYs409HPaSI+HsWkgdFMB/ssjshhz+zHgx2T321qQblI5Oc6og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vxl31ILs; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vxl31ILs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4A561F000C4; Sun, 18 Oct 2026 15:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792336859; bh=dDE2IoliJTuGK9RhUunfrM7FYntkzn1L3J1wxXJHlwk=; h=From:To:Cc:Subject:Date:Reply-To; b=vxl31ILskA1Ie+td8iY16vAoOrPiCLknvS9xVlXs3h/JrGZJ41VvR+LIySsmuI76F zxNUnp/aprhZRQSPw8+kGNLexFW8NFc7bQDiFYDv+IiPXFzVJTckou9WzDvA37276H O2eedMkvVTRIASrtDibUK7SewIWgjW3WTVWvZ3Q4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98477: perf/core: Fix NULL pmu_ctx passed to pmu->sched_task() Date: Sun, 18 Oct 2026 17:15:41 +0200 Message-ID: <2026101814-CVE-2026-98477-ba4c@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2956; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eEfOwfssMb4UeB0+qQMDoqAVJRcgcJAFF6WlX26Ojg8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHjW9/TBZMfTrhIUWtyZ/zFKo4wzWdWvU3KS6y0Tk9 vQGl2f9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRh5IM831OFNmHXKhf2uX3 QMhYZE33jUO88xnmCn18PmOhTR9ruOmqvO9lybm6LXrbAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98477 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.12.112 with commit b5409311b606d536cc485f3706c242c2afa93edb Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.18.55 with commit 249a2bd87a0e57dc28f36e992807edc9cae309b5 Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 7.2.9 with commit ec15f6a50183fc01f470af74ad49900fb3731fca Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 7.3-rc5 with commit 36bb85cf36cab15fb611cb44b78a5df06e4e69a2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98477 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/events/core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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