perf: Fix perf_pmu_migrate_context() leaving events behind (Linux Linux)

CVE-2026-99187
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ bd27568117664b8b3e259721393df420ed51f57b < 3caf006eb731e88cbb33fb5b7d1f2fdb23712bc7
affected : ≥ bd27568117664b8b3e259721393df420ed51f57b < d4002e954c612dfc7e3fb5549e4a188ea281fe35
affected : ≥ bd27568117664b8b3e259721393df420ed51f57b < 3eb08f09bfb364051f51316da873c3bd51a839ef
affected : ≥ bd27568117664b8b3e259721393df420ed51f57b < f5f0028764de322a3d04eda0d3b6389ca9847446
affected : ≥ bd27568117664b8b3e259721393df420ed51f57b < e76b36b4be7160eaa14b416681e548b125702395
Other versions : unaffected
Linux · Linux
affected : 6.2
unaffected : ≥ 0 < 6.2
unaffected : ≥ 6.6.161 ≤ 6.6.*
unaffected : ≥ 6.12.115 ≤ 6.12.*
unaffected : ≥ 6.18.59 ≤ 6.18.*
unaffected : ≥ 7.2.13 ≤ 7.2.*
unaffected : ≥ 7.3 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD