HIGH Introduced in 6.11
s390/pai PMU Stop Race
CVE-2026-99125
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: s390/pai: Handle multiple PMU stop callback invocations Handle the following scenario: The kernel protects itself against a very high sampling load and throttles the sampling using: perf_event_throttle() --> PMU->stop() Shortly later the scheduler may terminate the task and removes it from the CPU. It again calls PMU->stop() which results in two invocations of PMU->stop() called back to back. Protect against this and check the PERF_HES_STOPPED bit on function entry. If it is already set return. Clear bit PERF_HES_STOPPED in PMU->start(). Prohibit ioctl(fd, PERF_EVENT_IOC_PERIOD, ...) call for this event. It sets perf_event::event_limit to a positive value and causes perf_event_overflow() to invoke pai_stop() call back function when perf_event::event_limit hits zero. This is not supported because the sample events CRYPTO_ALL and NNPA_ALL are only taken at schedule out of a task. Use list_for_each_entry_safe() for safe iteration over syswide_list in pai_have_samples().
02KernelScan AI Analysis
Risk summary
A local attacker on an s390 system with PAI hardware support can trigger a race condition in the PAI performance monitoring unit driver, leading to use-after-free or double-free kernel memory corruption. This allows privilege escalation or denial of service. The vulnerability is reachable through the perf_event subsystem when high sampling load causes throttling followed by task termination.
Vulnerability analysis
The PAI (Processor Activity Instrumentation) performance monitoring driver on s390 did not protect against its stop callback being invoked twice in quick succession. When the kernel throttles a high-rate sampling event it calls the PMU stop function; shortly afterward the scheduler may remove the task from the CPU and call the same stop function again. Without a guard, the second invocation could free or corrupt resources already released by the first, creating a use-after-free or double-free condition. The fix adds a state check so the stop handler returns early if the event is already marked stopped, clears that mark in the start handler, hardens a list traversal against concurrent modification, and rejects an unsupported ioctl that could trigger the stop path unexpectedly. An attacker needs only a local account and the ability to open perf events (controlled by perf_event_paranoid or CAP_PERFMON), making this reachable from containers and unprivileged user namespaces on many configurations.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 6.11 | 7.2.13 | cf348ec613f7 |
| mainline | 6.11 | 7.3 | f3110e969ad2 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.114-cip34) |