# CVE-2026-99187: perf: Fix perf_pmu_migrate_context() leaving events behind

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-10-28T10:35:44.813Z
- Modified: 2026-10-30T13:21:52.040Z
- Assigned by: Linux

## Description

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

perf: Fix perf_pmu_migrate_context() leaving events behind

__perf_pmu_remove() walks the group leaders of a CPU and PMU with
perf_event_groups_for_cpu_pmu(), removing each one as it goes.
perf_remove_from_context() takes the leader out of the groups rbtree,
after which rb_next() on that node returns NULL, prematurely ending the
walk. Other groups stay behind in the source context.

On CPU hotplug, they are then torn down with the dying CPU. They keep
running until teardown, while the PMU's interrupt and migrated events
are on a new CPU, which drivers rely on never happening.

Walk ctx->event_list instead and pick out the PMU's events by their
pmu_ctx.

(As written by CVE List.)

## Affected

- Linux Linux: from bd27568117664b8b3e259721393df420ed51f57b before 3caf006eb731e88cbb33fb5b7d1f2fdb23712bc7; from bd27568117664b8b3e259721393df420ed51f57b before d4002e954c612dfc7e3fb5549e4a188ea281fe35; from bd27568117664b8b3e259721393df420ed51f57b before 3eb08f09bfb364051f51316da873c3bd51a839ef; from bd27568117664b8b3e259721393df420ed51f57b before f5f0028764de322a3d04eda0d3b6389ca9847446; from bd27568117664b8b3e259721393df420ed51f57b before e76b36b4be7160eaa14b416681e548b125702395; 6.2 (not affected: before 6.2; from 6.6.161 up to 6.6.*; from 6.12.115 up to 6.12.*; from 6.18.59 up to 6.18.*; from 7.2.13 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/3caf006eb731e88cbb33fb5b7d1f2fdb23712bc7>
- <https://git.kernel.org/stable/c/d4002e954c612dfc7e3fb5549e4a188ea281fe35>
- <https://git.kernel.org/stable/c/3eb08f09bfb364051f51316da873c3bd51a839ef>
- <https://git.kernel.org/stable/c/f5f0028764de322a3d04eda0d3b6389ca9847446>
- <https://git.kernel.org/stable/c/e76b36b4be7160eaa14b416681e548b125702395>

## Sources

- CVE List: [CVE-2026-99187](https://www.cve.org/CVERecord?id=CVE-2026-99187), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-99187](https://nvd.nist.gov/vuln/detail/CVE-2026-99187), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-99187 · Whole record: https://cve.day/CVE-2026-99187.json · Rebuilt by cve.day 2026-11-25T22:59:47.594Z
