perf/x86/intel/uncore: Fix uncore_box ref/unref ordering (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % · 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/x86/intel/uncore: Fix uncore_box ref/unref ordering In uncore_event_cpu_online(), uncore_box_ref() was called before uncore_change_context(). uncore_box_ref() gates on box->cpu >= 0, but box->cpu is still -1 at that point because uncore_change_context() has not run yet. As a result, the box is never initialized on the first CPU to come online in a die, leaving it permanently uninitialized in the single-CPU-per-die case. Thus, box->refcnt is one count below the true value, and in the CPU offline path, the box will be torn down on the second-to-last CPU. In uncore_event_cpu_offline(), uncore_box_unref() was called after uncore_change_context(), so box->cpu is already -1 when the collector CPU goes offline, which prevents it from tearing down the box. Fix by swapping the call order in both paths so that uncore_box_{ref,unref}() runs at the point where box->cpu reflects the correct context. Move allocate_boxes() out of uncore_box_ref() to enable this reordering.
References
European references
- ENISA EUVD · EUVD-2026-82289
- GCVE · GCVE-0-2026-93181
CERT-FR advisories
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1535 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1473 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1469 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ c74443d92f68f07c03ae242ced554b749e6c6736 < 3cfd351602e6704cce9bc766a974afb9f745d44b affected : ≥ c74443d92f68f07c03ae242ced554b749e6c6736 < 64aa1bb4017d598828c6d8cd718f43daf2a83375 affected : ≥ c74443d92f68f07c03ae242ced554b749e6c6736 < 174f0582e38abe03b88e15f04bfe58490f88cb19 Other versions : unaffected |
| Linux · Linux | affected : 6.11 unaffected : ≥ 0 < 6.11 unaffected : ≥ 6.12.114 ≤ 6.12.* unaffected : ≥ 7.2.6 ≤ 7.2.* unaffected : ≥ 7.3 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |