Skip to main content
Vulnerability Database/CVE-2026-97526

CVE-2026-97526: Linux Kernel PAI CPU Hotplug DOS Vulnerability

CVE-2026-97526 is a denial of service flaw in Linux kernel PAI that crashes the system during CPU hotplug operations. This post explains the technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97526 Overview

CVE-2026-97526 is a Linux kernel vulnerability in the s390 Processor Activity Instrumentation (PAI) performance monitoring unit (PMU) subsystem. The flaw causes a kernel panic when CPUs are hot-added during an active perf stat run against the pai_crypto/CRYPTO_ALL/ event. The root cause is a missing allocation of per-CPU data structures for CPUs brought online after event creation. When the scheduler invokes pai_add() on the new CPU, this_cpu_ptr(pai_root[idx].mapptr) returns a NULL pointer, leading to a dereference inside the function. The fix adds a CPU hotplug handler to allocate the required per-CPU infrastructure during CPU add and remove events.

Critical Impact

A local user running perf stat with the pai_crypto event can trigger a kernel panic by toggling CPU online state, resulting in denial of service on s390 systems.

Affected Products

  • Linux kernel on s390 architecture
  • Kernel builds including the s390 PAI PMU driver (arch/s390/kernel/perf_pai_crypto.c)
  • Stable kernel branches prior to the fix commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97526 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97526

Vulnerability Analysis

The vulnerability resides in the s390 PAI PMU driver, which exposes processor activity counters such as pai_crypto/CRYPTO_ALL/ through the perf subsystem. Per-CPU data structures backing the PMU are allocated dynamically when the first event with task context is created, iterating only over CPUs that are online at that moment. CPUs brought online later during the perf run never receive this allocation. When the scheduler migrates or starts a task on the newly hot-added CPU, the kernel invokes the PMU callback pai_add() to install PMU support on that CPU. Inside pai_add(), the expressions mp = this_cpu_ptr(pai_root[idx].mapptr) and cpump = mp->mapptr return a NULL pointer for the uninitialized CPU, and subsequent use of cpump triggers a NULL pointer dereference and kernel panic.

Root Cause

The root cause is the absence of a CPU hotplug notifier in the s390 PAI PMU driver. The driver assumed that the set of online CPUs at event creation time would remain static, so no state was lazily instantiated on hotplug add. Any CPU that transitions from offline to online while a PAI event is active lacks the mapptr backing structure required by pai_add().

Attack Vector

Exploitation requires local access and the ability to run perf stat against a PAI event, combined with the ability to toggle CPU online state through /sys/devices/system/cpu/cpuN/online (typically root). The reproducer takes a CPU offline, launches perf stat -e pai_crypto/CRYPTO_ALL/ against a workload, then brings the CPU back online. Scheduling a task onto the newly online CPU invokes pai_add() and crashes the kernel. The impact is denial of service rather than code execution, since the dereference occurs on an uninitialized pointer path without attacker-controlled memory.

No verified exploit code is published. See the upstream fixes at kernel.org commit 706e2bf3 and kernel.org commit 9ecc4d03 for the patched code paths.

Detection Methods for CVE-2026-97526

Indicators of Compromise

  • Kernel panic log entries referencing pai_add in the call stack on s390 systems
  • Oops messages indicating NULL pointer dereference inside the s390 PAI PMU code path
  • Crash correlated with recent echo 1 > /sys/devices/system/cpu/cpuN/online activity during a perf session

Detection Strategies

  • Inventory s390 kernels and compare running versions against the fixed stable commits listed above
  • Audit which users and services can execute perf and modify CPU online state via sysfs
  • Collect dmesg and kdump output from s390 hosts and search for pai_crypto or pai_add references near panic traces

Monitoring Recommendations

  • Alert on unexpected s390 kernel panics and automatic reboots in fleet telemetry
  • Monitor use of perf_event_open with PAI event names in audit logs
  • Track writes to /sys/devices/system/cpu/cpu*/online by non-automation accounts

How to Mitigate CVE-2026-97526

Immediate Actions Required

  • Apply the upstream stable kernel updates containing commits 706e2bf3 and 9ecc4d03 to all s390 systems
  • Restrict perf_event_paranoid to a value that limits unprivileged perf access on affected hosts
  • Limit administrative access to CPU hotplug sysfs entries until patched kernels are deployed

Patch Information

The fix adds a CPU hotplug handler to the s390 PAI PMU driver that allocates and releases per-CPU mapptr structures during CPU online and offline transitions. Allocation during the offline-to-online path ensures pai_add() finds a valid pointer when the scheduler installs PMU support on the new CPU. Fixes are available in the stable tree at kernel.org commit 706e2bf3 and kernel.org commit 9ecc4d03, including an error path fixup in pai_init().

Workarounds

  • Avoid running perf stat -e pai_crypto/* events on s390 hosts where CPU hotplug may occur
  • Freeze CPU hotplug operations for the duration of any PAI PMU measurement session
  • Reduce perf_event_paranoid scope to prevent unprivileged users from opening PAI events
bash
# Restrict perf access to privileged users only
sysctl -w kernel.perf_event_paranoid=3

# Verify kernel version includes the fix on s390 hosts
uname -r

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.