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 A4972345EAB for ; Fri, 28 Aug 2026 06:52:20 +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=1787899941; cv=none; b=o7mPtiHty83XPhYRejXL/5OQPImZHOHjJwNVbxvCV6o2Lyzd+STo1mvKWNB6zKRoQl9gI6/kdgdkw6Uxqy1xLrZ7pquiXIHHJtkimEZkKQwJtF6DBLVJqYtofVsESa5O7ZIktWh0kyVy3azngxJJ116c1XXD8FjAXU56jnmTEqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899941; c=relaxed/simple; bh=oeHw4/Ja0k+8cCazsZzD1Zhgrw3jCL/u29nA2SHr3uA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NMhCV8eG+vf6sYHT64Ykfrjl7ekASZ0P6muEMR85c7L5fAbjiDEg5Qj4bQ8o0D8TiGfZstMbudeQImbhgWgt3TlSto0FVTCNsl7yzhNwvHpOLvmeboIvRbPo6OFxk49Nr43dr4GUQhjZJdsCp4Q5CZhmd1L69RQgXWNTPLbIH80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kU+xGw6i; 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="kU+xGw6i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 032451F000E9; Fri, 28 Aug 2026 06:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899940; bh=sOOrh+TIZUfU4X688RV8l/pVFK7ETwqD4gYc5qdf4wI=; h=From:To:Cc:Subject:Date:Reply-To; b=kU+xGw6igJk253sASfDBigqxqYm1YY5gHhJMc8HdNtVF3UbnK02GLt6sdsxy8jEms 3bLqkc39WuFqFghjvTOvlsZo2WQI7BiASn7ezF5nYzchRSyXY9pvhMQ3C0EhQDYYHw ffU+YzbltyH0iXOLe5wCk2dePqcTU1BagRBiZqec= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80626: powerpc/perf: fix preempt count underflow in fsl_emb_pmu_del Date: Fri, 28 Aug 2026 08:49:03 +0200 Message-ID: <2026082837-CVE-2026-80626-26f8@gregkh> X-Mailer: git-send-email 2.55.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=3803; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Krvz26JlUwnWRwxsZhps20iI4JuD3wIv1cbvaopECr4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9V1PHnpnd2rRl/yTmW3zmx37eA73NWtxPI76l7Hk/ 9SPegy9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRo3kM8wOku/9mpjzcmjIv aPNuT9GFvvPMNjIsOFn/JXv1qSdabP+e5E01mKjOujGuEAA= 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: powerpc/perf: fix preempt count underflow in fsl_emb_pmu_del fsl_emb_pmu_del() unconditionally calls put_cpu_var(cpu_hw_events) at the 'out:' label, but only calls the matching get_cpu_var() after the 'i < 0' early-return check. When event->hw.idx is negative the function jumps to 'out:' without having taken get_cpu_var(), and the trailing put_cpu_var() then issues an unmatched preempt_enable(), underflowing preempt_count. On a CONFIG_PREEMPT=y kernel preempt_count would underflow and eventually present as a 'scheduling while atomic' BUG. Move put_cpu_var() to pair with get_cpu_var() so the percpu access is correctly bracketed and the 'out:' label only handles perf_pmu_enable. The Linux kernel CVE team has assigned CVE-2026-80626 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 5.10.261 with commit c0c7722308c5f303117d8bd555290fdf26b098da Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 5.15.212 with commit 67aeb1eb93d4ffd898a3e74a7f3fe46ee71feb28 Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 6.1.178 with commit 9a515e00b00132b6fc3f1dd62dc5204bbda8cb10 Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 6.6.145 with commit 5397142d60aa29dcf636f5459d960bfc4f97c42a Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 6.12.97 with commit b89477077c834d94381c7bf07d81193bebefcff9 Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 6.18.40 with commit 73711688479df333acc134e3730fff1acba1843e Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 7.1.5 with commit b504fd953664c3f4d176ae8cb594adb3fda9d577 Issue introduced in 2.6.34 with commit a11106544f33c104706ae42d27219a409b67478e and fixed in 7.2 with commit 81e3a86030462824a67d697739cf3f387f4ba350 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-80626 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/powerpc/perf/core-fsl-emb.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/c0c7722308c5f303117d8bd555290fdf26b098da https://git.kernel.org/stable/c/67aeb1eb93d4ffd898a3e74a7f3fe46ee71feb28 https://git.kernel.org/stable/c/9a515e00b00132b6fc3f1dd62dc5204bbda8cb10 https://git.kernel.org/stable/c/5397142d60aa29dcf636f5459d960bfc4f97c42a https://git.kernel.org/stable/c/b89477077c834d94381c7bf07d81193bebefcff9 https://git.kernel.org/stable/c/73711688479df333acc134e3730fff1acba1843e https://git.kernel.org/stable/c/b504fd953664c3f4d176ae8cb594adb3fda9d577 https://git.kernel.org/stable/c/81e3a86030462824a67d697739cf3f387f4ba350