Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2225C316193 for ; Wed, 24 Dec 2025 10:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572625; cv=none; b=d1oZ/3kVs5ulbh4n2G0u6VnTdY2T8/gcMe56sGygZaEohzqUI5Q1q6b34Xr7b/LrEU3cioQ6+8UrrBRDk9Jkn5W2nwldiSQ7otFSGZ7rU0EO1HS2p3dGKTjNkFQZiezmRCI7aDMqHRGRpSJZ5JFe2rZxHJq0Ign6Hv9MVJoK45c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572625; c=relaxed/simple; bh=o1qaB9/cL7QSaW7z0ibHxFEw/dNe0SS29iPaTui2DTQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tb1Po0w7kX4Vf2WUeDihvIp69joxbsYmbALc5oW+9p4LjGh8McZtBduoh8UVucDOjbUAnalkhWJIrnU5bMKLs4pcLq1j+yO6qJPB+o2mYsHQI8N4mv54smq16YTlQWvGxtQsgdP1uoJiCKkt240PB2av24Kv8+xYnKBBDx+6eWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hEGt2Wlz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hEGt2Wlz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E99AC116B1; Wed, 24 Dec 2025 10:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572625; bh=o1qaB9/cL7QSaW7z0ibHxFEw/dNe0SS29iPaTui2DTQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hEGt2WlzOMWbadRNASP6xJnc6JERbHA8LqjbPUsoNbzIEHrv2UhUsLEna8NgwYb52 vZrWUjNGb/NgOkm4epxL00vmwJG+J9xrdJ/ePT8gtw5xBsgN4fvxjvc5vv+LAYrmn/ rJGIdCVFUwdYCrtEVSk1XiSUygUgIE1vETyqs3wM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68375: perf/x86: Fix NULL event access and potential PEBS record loss Date: Wed, 24 Dec 2025 11:35:20 +0100 Message-ID: <2025122402-CVE-2025-68375-aa1b@gregkh> X-Mailer: git-send-email 2.52.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=3257; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tFVzuDU7TQBIU7nFmEuG2rP2v+Dhd4Q8iyedY9vrGY0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB681OL63+tNzKnP/n7nuXIt1eRZ4L8uZoMAbnPBqm tNcw4q2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjImj6GBbd47uTW3j9+60yK tW1b6Lktb6KqXBjml8o7FrbOM9iy3Vf5im56l13h1bOqAA== 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/x86: Fix NULL event access and potential PEBS record loss When intel_pmu_drain_pebs_icl() is called to drain PEBS records, the perf_event_overflow() could be called to process the last PEBS record. While perf_event_overflow() could trigger the interrupt throttle and stop all events of the group, like what the below call-chain shows. perf_event_overflow() -> __perf_event_overflow() ->__perf_event_account_interrupt() -> perf_event_throttle_group() -> perf_event_throttle() -> event->pmu->stop() -> x86_pmu_stop() The side effect of stopping the events is that all corresponding event pointers in cpuc->events[] array are cleared to NULL. Assume there are two PEBS events (event a and event b) in a group. When intel_pmu_drain_pebs_icl() calls perf_event_overflow() to process the last PEBS record of PEBS event a, interrupt throttle is triggered and all pointers of event a and event b are cleared to NULL. Then intel_pmu_drain_pebs_icl() tries to process the last PEBS record of event b and encounters NULL pointer access. To avoid this issue, move cpuc->events[] clearing from x86_pmu_stop() to x86_pmu_del(). It's safe since cpuc->active_mask or cpuc->pebs_enabled is always checked before access the event pointer from cpuc->events[]. The Linux kernel CVE team has assigned CVE-2025-68375 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 9734e25fbf5ae68eb04234b2cd14a4b36ab89141 and fixed in 6.17.13 with commit cf69b99805c263117305ac6dffbc85aaf9259d32 Issue introduced in 6.16 with commit 9734e25fbf5ae68eb04234b2cd14a4b36ab89141 and fixed in 6.18.2 with commit 6b089028bff1f2ff9e0c62b8f1faca1a620e5d6e Issue introduced in 6.16 with commit 9734e25fbf5ae68eb04234b2cd14a4b36ab89141 and fixed in 6.19-rc1 with commit 7e772a93eb61cb6265bdd1c5bde17d0f2718b452 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-2025-68375 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: arch/x86/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/cf69b99805c263117305ac6dffbc85aaf9259d32 https://git.kernel.org/stable/c/6b089028bff1f2ff9e0c62b8f1faca1a620e5d6e https://git.kernel.org/stable/c/7e772a93eb61cb6265bdd1c5bde17d0f2718b452