# CVE-2026-89460: s390/cpum\_cf: Handle CPU hotplug via prepare/dead callbacks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-11T19:43:22.664Z
- **Modified:** 2026-10-19T09:17:38.427Z

## Who should check

- Anyone running Linux \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 991be92489bc7b1b6e7903debb96bd58c892dee4; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 777d040c2f91d8d929b4a32333dfe4102b27caea; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< dcce7a06ea690d5cf46a705a9b74cf0398ac091f; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 71d46de9153e067c63a15f3b00e6364e1c0230f8; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 337bd95507a16063687cfc286ea90de5cca48c37
- Anyone running Linux 6.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

s390/cpum\_cf: Handle CPU hotplug via prepare/dead callbacks

The command 'perf stat -e cycles -- \<command\>' crashes the kernel
when CPUs are hotplug added during that run.

Root cause is the allocation of struct cpu\_cf\_events at first
event initialization. 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

create an event for CPUs 0,2-X. Since the events are created with
task-context, the scheduler will eventually schedule the program
on CPU1. This CPU has not created and initialized any per
CPU event infrastructure as that CPU was not online at the time
of the perf invocation. Thus when the scheduler runs stress-ng
on CPU1, the function cpumf\_pmu\_add() refers to a NULL pointer:

 struct cpu\_cf\_events \*cpuhw = this\_cpu\_cfhw();

This function call is invoked after the task stress-ng has been
made runnable on CPU1. And this\_cpu\_cfhw() returns NULL.

The result is a panic:
Unable to handle kernel pointer dereference in virtual kernel address space
Failing address: 0000000000000000 TEID: 0000000000000483
....
Krnl PSW : 0404d00180000000 000003ef8291fd0c (cpumf\_pmu\_add+0x3c/0x80)
....
Call Trace:
 \[\<000003ef8291fd0c\>\] cpumf\_pmu\_add+0x3c/0x80
 \[\<000003ef82bb5e3e\>\] event\_sched\_in+0xae/0x190
 \[\<000003ef82bb60d6\>\] merge\_sched\_in+0x1b6/0x390
 \[\<000003ef82bb65b8\>\] visit\_groups\_merge.constprop.0.isra.0+0x308/0x5b0
 \[\<000003ef82bb689a\>\] pmu\_groups\_sched\_in+0x3a/0x50
 \[\<000003ef82bb6a30\>\] ctx\_sched\_in+0x180/0x260
 \[\<000003ef82bb780c\>\] perf\_event\_context\_sched\_in+0x11c/0x2d0
 \[\<000003ef82bb79ee\>\] \_\_perf\_event\_task\_sched\_in+0x2e/0xc0
 \[\<000003ef82994834\>\] finish\_task\_switch.isra.0+0x1a4/0x250
....
Last Breaking-Event-Address:
 \[\<000003ef8291f1d8\>\] this\_cpu\_cfhw+0x38/0x40

The issue arises only in per-task context when the CPUMF facility is
used and the scheduler picks a random CPU for such a process to run on.
The scheduler enables the CPUMF infrastructure via PMU callback
functions pmu::add() and pmu::del().

Introduce a CPU hotplug prepare/dead callback pair which creates and
removes the per CPU counter data while the CPU is offline. Count the
users which track every CPU (cpu == -1), that is perf\_event\_open()
events with task context and /dev/hwctr device sessions, in the new
counter cpu\_cf\_root::tskcnt, protected by pmc\_reserve\_mutex.
This ensures the infrastructure is available when
new CPU is selected to run the per-task context process.

In cpum\_cf\_free\_root() and cpum\_cf\_free\_cpu() ensure the reference
pointer to data structures is set to NULL before the data is freed
to prevent interrupt handlers to access stale data.

\[gor@linux.ibm.com: change commit message\]

## Affected and fixed versions

- Linux: \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 991be92489bc7b1b6e7903debb96bd58c892dee4; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 777d040c2f91d8d929b4a32333dfe4102b27caea; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< dcce7a06ea690d5cf46a705a9b74cf0398ac091f; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 71d46de9153e067c63a15f3b00e6364e1c0230f8; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 337bd95507a16063687cfc286ea90de5cca48c37 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 337bd95507a16063687cfc286ea90de5cca48c37 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89460. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89460.md
Affected: Linux >= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, < 991be92489bc7b1b6e7903debb96bd58c892dee4; >= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, < 777d040c2f91d8d929b4a32333dfe4102b27caea; >= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, < dcce7a06ea690d5cf46a705a9b74cf0398ac091f; >= 9b9cf3c77e7e090b30657b3…
Fixed in: Linux 991be92489bc7b1b6e7903debb96bd58c892dee4, Linux 777d040c2f91d8d929b4a32333dfe4102b27caea, Linux 71d46de9153e067c63a15f3b00e6364e1c0230f8, Linux 337bd95507a16063687cfc286ea90de5cca48c37

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89460 being exploited?

There is no confirmed exploitation: CVE-2026-89460 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89460?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89460?

Linux \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 991be92489bc7b1b6e7903debb96bd58c892dee4; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 777d040c2f91d8d929b4a32333dfe4102b27caea; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< dcce7a06ea690d5cf46a705a9b74cf0398ac091f; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 71d46de9153e067c63a15f3b00e6364e1c0230f8; \>= 9b9cf3c77e7e090b30657b3d2c288deb58dfb4f2, \< 337bd95507a16063687cfc286ea90de5cca48c37; Linux 6.5.

### Is there a fix for CVE-2026-89460?

Yes. Fixed in Linux 991be92489bc7b1b6e7903debb96bd58c892dee4, Linux 777d040c2f91d8d929b4a32333dfe4102b27caea, Linux 71d46de9153e067c63a15f3b00e6364e1c0230f8, Linux 337bd95507a16063687cfc286ea90de5cca48c37. Upgrade Linux to 337bd95507a16063687cfc286ea90de5cca48c37 or later.

### How do I check if I'm affected by CVE-2026-89460?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/991be92489bc7b1b6e7903debb96bd58c892dee4>
- other: <https://git.kernel.org/stable/c/777d040c2f91d8d929b4a32333dfe4102b27caea>
- other: <https://git.kernel.org/stable/c/dcce7a06ea690d5cf46a705a9b74cf0398ac091f>
- other: <https://git.kernel.org/stable/c/71d46de9153e067c63a15f3b00e6364e1c0230f8>
- other: <https://git.kernel.org/stable/c/337bd95507a16063687cfc286ea90de5cca48c37>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89460>

HTML: <https://flawdb.com/CVE-2026-89460> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89460>
