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 228263E024E for ; Wed, 22 Apr 2026 13:58:29 +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=1776866309; cv=none; b=DjAQ8oNG1IyJslmGu4iNRLzLwYoiliOxPIR1vNkN3XLxSfImLXlqXqSVhVaWVha7P0udOXWR8O67couS/ED4yj7yauNQGjZK32cIqc8058tO2tdx6hcY1hj+BUWs2WOpfbjD2dcLQ0eTDfD7K8Ha/TXDdLBZq4Ro0f/VwtaXyf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866309; c=relaxed/simple; bh=Aodu4IqhxIoF6C8Yt944cSEtIarGoUF/2NgICHirJGM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V/+03m6a4GpcJhDk+7YQm2rpgq4qIR7h/Uz3zwQkbAUXDfv0YaReI4x/AtRoSKQarGvTD/VzANmkwjUNcwYSdnfrs7kdgnKAR3fCzwKDsMyDPMjd1FPAtyDnmS2YsaF7ZZK3DN31DiMeaiLW+4Tx/byGjLSi4B3/AMmLBO/u7q8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OSYvt6Nk; 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="OSYvt6Nk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4133C19425; Wed, 22 Apr 2026 13:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866309; bh=Aodu4IqhxIoF6C8Yt944cSEtIarGoUF/2NgICHirJGM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OSYvt6Nk394bmXmDyA04QtgzpPLf/qESU6GiaE/OEm43x/iXjnJcCgIJ2HCrOYUOF y26TIJZ8z2kaMmvE48PxsDJgaH9iRQkshememOwA7CXHgu3UzdTfm9KDRqdrkpPXz9 bE97KbqfvShDSjlLmQR3yYe/lEvPxbczq+aVa2EY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31528: perf: Make sure to use pmu_ctx->pmu for groups Date: Wed, 22 Apr 2026 15:55:14 +0200 Message-ID: <2026042214-CVE-2026-31528-b375@gregkh> X-Mailer: git-send-email 2.54.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=3162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yQ6BdE1WnaLSDVrTkRPywFz44fvUfQeWjXb60hNelA0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLrNp7cld+OHj2QM5Nx0/Gpoe5uo0sTQqL+3mzWu9v H3FJVbOjhgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIAxPDght+b7tObpkuP+PO zR/fso56bBBWDWaYZrH/28eyO0sNnn/UDvJM9Vxnv/oGAA== 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: Make sure to use pmu_ctx->pmu for groups Oliver reported that x86_pmu_del() ended up doing an out-of-bound memory access when group_sched_in() fails and needs to roll back. This *should* be handled by the transaction callbacks, but he found that when the group leader is a software event, the transaction handlers of the wrong PMU are used. Despite the move_group case in perf_event_open() and group_sched_in() using pmu_ctx->pmu. Turns out, inherit uses event->pmu to clone the events, effectively undoing the move_group case for all inherited contexts. Fix this by also making inherit use pmu_ctx->pmu, ensuring all inherited counters end up in the same pmu context. Similarly, __perf_event_read() should use equally use pmu_ctx->pmu for the group case. The Linux kernel CVE team has assigned CVE-2026-31528 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.6.131 with commit 656f35b463995bee024d948440128230aacd81e1 Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.12.80 with commit 3a696e84a8b1fafdd774bb30d62919faf844d9e4 Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.18.21 with commit 35f7914e54fe7f13654c22ee045b05e4b6d8062b Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 6.19.11 with commit 4c759446046500a1a6785b25725725c3ff087ace Issue introduced in 6.2 with commit bd27568117664b8b3e259721393df420ed51f57b and fixed in 7.0 with commit 4b9ce671960627b2505b3f64742544ae9801df97 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-31528 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/656f35b463995bee024d948440128230aacd81e1 https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97