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 F111B36F40B for ; Fri, 20 Mar 2026 08:13:44 +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=1773994425; cv=none; b=Tx8GezRU+/hY1UgFjZyiqAUXiYWqyHAaLZgCmEkqTSith/dd/1XGhWu39/uF7oPdbEk3hEZzAtf8KenPdAML+QQgu8l/1WOfqpBCEYWF+7/Zy0tYk+7aet9ZpHGrJYCz2lbjGj+q7t8qMd/cwD6/iT/yj7VVWWfHU/kVQrSJACM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994425; c=relaxed/simple; bh=eXIMrywutYoGm3UbLwHjMTwoQRpfFcgAztgLYn+aa2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A5bZ3txx+6gXS18kkt/Pt/kavDhnvSEXuPCc0h11hVfOFTei6ee7VBtCJ24ncMY8DzII2neL0ezKglfjFpbDN8BSu/Ztq0HnfyDKxfrrc768DDjRBre7P2GIQO7szvRa7Prdj4u4nV3HbGdH4Y5M8746TYJNLbrM3RcnzdEbUdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CT3KsPT6; 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="CT3KsPT6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 188ADC4CEF7; Fri, 20 Mar 2026 08:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773994424; bh=eXIMrywutYoGm3UbLwHjMTwoQRpfFcgAztgLYn+aa2s=; h=From:To:Cc:Subject:Date:Reply-To:From; b=CT3KsPT6fJfOzDClKpkA2FmPQzrVCerzB6Z6NPuhXHLK0vuzAllG3TnEHn5uVE2dj 76q3U9iB82rrI3W3SxxXLlQnFuwEtJWwFrUNUj/kPVxFNGZFIPhpCXtS6NSyOR791z pjrvVCMVa1nNwE1bdB5llcClxwfyRA87wqO5tXd8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23271: perf: Fix __perf_event_overflow() vs perf_remove_from_context() race Date: Fri, 20 Mar 2026 09:13:32 +0100 Message-ID: <2026032031-CVE-2026-23271-657a@gregkh> X-Mailer: git-send-email 2.53.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=2585; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/4IVi0AGspJQZO4tBnh6hUO135labJq54ZVhk3nVMcE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl7Gde8P9M8z6z1nfWt+ruupnFvHE/2Zn27cptLSUUrz uNr3RXpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+TyGBde9F8cmzbuxgKNw qeecYH/z16rrPzLMUxSaWLX7jundbZlPk7TypQ1CMjX3AgA= 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: Fix __perf_event_overflow() vs perf_remove_from_context() race Make sure that __perf_event_overflow() runs with IRQs disabled for all possible callchains. Specifically the software events can end up running it with only preemption disabled. This opens up a race vs perf_event_exit_event() and friends that will go and free various things the overflow path expects to be present, like the BPF program. The Linux kernel CVE team has assigned CVE-2026-23271 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.31 with commit 592903cdcbf606a838056bae6d03fc557806c914 and fixed in 6.12.77 with commit 5c48fdc4b4623533d86e279f51531a7ba212eb87 Issue introduced in 2.6.31 with commit 592903cdcbf606a838056bae6d03fc557806c914 and fixed in 6.18.17 with commit 3f89b61dd504c5b6711de9759e053b082f9abf12 Issue introduced in 2.6.31 with commit 592903cdcbf606a838056bae6d03fc557806c914 and fixed in 6.19.7 with commit bb190628fe5f2a73ba762a9972ba16c5e895f73e Issue introduced in 2.6.31 with commit 592903cdcbf606a838056bae6d03fc557806c914 and fixed in 7.0-rc2 with commit c9bc1753b3cc41d0e01fbca7f035258b5f4db0ae 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-23271 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/5c48fdc4b4623533d86e279f51531a7ba212eb87 https://git.kernel.org/stable/c/3f89b61dd504c5b6711de9759e053b082f9abf12 https://git.kernel.org/stable/c/bb190628fe5f2a73ba762a9972ba16c5e895f73e https://git.kernel.org/stable/c/c9bc1753b3cc41d0e01fbca7f035258b5f4db0ae