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 C299548FF69 for ; Fri, 25 Sep 2026 10:24:31 +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=1790331873; cv=none; b=LlQrHPHbauvQpTb3kHXBDOgF9WRtZxt29Dm12OMvWBIezNa5vzSl1ozysmK2OBfmKkk6jUBv8O3YwoKgW7pBQN+3VZn3TV/TBwAhlp6xIIIywz0uGje9jsfPbXVFqh3JvQDy8arxG2qfAHKXTyk3DN2dqKgPy7bSkLCcmK9aj6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331873; c=relaxed/simple; bh=0TInlLyVpokHf8H1Fs54UHUYZVbIGATKB4GgQXyawnU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sBnJR4MZC6x1y1JWv1x1PhzsED257ka5mamGEW4R4HKhjtnnPx4xcTXTK6j9iyN3POHBkyHLpBTO9stlkeq/UpdU1rBJtiEx5vOhc5xTbJDcHm+H4vNJfC0tdkVYA1LnWVgqSsOBmGwI8DSgTuA8Wyvut/Z/oXv5iMnhFExiF/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RGhs2/H1; 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="RGhs2/H1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2194F1F000FF; Fri, 25 Sep 2026 10:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331871; bh=t0hDLTFH8totZ+vG5UmvCTKt7+G3Fml0k+GxQWeghBA=; h=From:To:Cc:Subject:Date:Reply-To; b=RGhs2/H13ZfpVa3KmZYvPhFWZfL1OEtoZbhDbYzQYaIdsDJtyxnh2zXR0FFBGWJ8i 7bESm/nIOYV0d0/+uLfVRu6Xvyu/kOmTRUuuWT0LeXpC7zZPzLe5bagQQ79AxD54YK 5llv0ttVNf1Gd7IGcfoj+CmzYx6cuLZwzJq57/Kk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97526: s390/pai: Support CPU hotplug for PMU PAI Date: Fri, 25 Sep 2026 12:21:46 +0200 Message-ID: <2026092546-CVE-2026-97526-1b17@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=3228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b2YoWOGyFyOhwKDXHJiJn7J4dcFa1CJLHW+6H9sPqbo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvK14Xa+9sLnz6hbPs67vq0IObbrj8/3IhuXFl+90X FDOslX52xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATEetiWLAjZbW26dMZfpuf SrDUdM5oT80XXM0wP+/vhkOM/fab53IW1cu2qSRqW+nYAgA= 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: s390/pai: Support CPU hotplug for PMU PAI The command 'perf stat -e pai_crypto/CRYPTO_ALL/ -- ' crashes the kernel when CPUs are hotplug added during that run. Root cause is the missing allocation of per-CPU data structures for that new CPU. The allocation is dynamic and the first event that has task context creates such a structure for each online CPU. This is not sufficient. CPUs may be offline during event creation and can be set online during the perf run time. For example commands # echo 0 > /sys/devices/system/cpu/cpu1/online # perf stat -e cycles -i -- stress-ng -t10s --matrix X # sleep 1 # echo 1 > /sys/devices/system/cpu/cpu1/online Currently without a CPU hotplug handler, that new CPU has no per-CPU data infrastructure. The scheduler runs PMU call back function pai_add() to install the PMU support for that CPU before the task is being scheduled on that new CPU. In pai_add() instructions mp = this_cpu_ptr(pai_root[idx].mapptr); cpump = mp->mapptr; return a NULL pointer and the result is a kernel panic as variable cpump is used inside that function. Add CPU hotplug support for CPU add and delete and create the necessary per-CPU data infrastructure during CPU hotplug add processing. Same for CPU hotplug remove. This is done when the CPU is offline to ensure the data structures are available when CPU is made online and tasks are scheduled on it. [hca@linux.ibm.com: fixup error path in pai_init()] The Linux kernel CVE team has assigned CVE-2026-97526 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 9f66572f2889a5e72a9d7e17787e52f03b1f7bd8 and fixed in 7.2.7 with commit 706e2bf330144995d123dccf32aaf1981ce5abc2 Issue introduced in 6.11 with commit 9f66572f2889a5e72a9d7e17787e52f03b1f7bd8 and fixed in 7.3-rc3 with commit 9ecc4d033879f7761f2df07e20cd2fbec00fd90b 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-97526 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/s390/include/asm/pai.h arch/s390/kernel/perf_pai.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/706e2bf330144995d123dccf32aaf1981ce5abc2 https://git.kernel.org/stable/c/9ecc4d033879f7761f2df07e20cd2fbec00fd90b