# CVE-2026-93181: perf/x86/intel/uncore: Fix uncore_box ref/unref ordering

- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-17T16:12:08.716Z
- Modified: 2026-10-21T13:21:02.227Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c74443d92f68f07c03ae242ced554b749e6c6736 before 3cfd351602e6704cce9bc766a974afb9f745d44b; from c74443d92f68f07c03ae242ced554b749e6c6736 before 64aa1bb4017d598828c6d8cd718f43daf2a83375; from c74443d92f68f07c03ae242ced554b749e6c6736 before 174f0582e38abe03b88e15f04bfe58490f88cb19; 6.11 (not affected: before 6.11; from 6.12.114 up to 6.12.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/3cfd351602e6704cce9bc766a974afb9f745d44b>
- <https://git.kernel.org/stable/c/64aa1bb4017d598828c6d8cd718f43daf2a83375>
- <https://git.kernel.org/stable/c/174f0582e38abe03b88e15f04bfe58490f88cb19>

## Sources

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

---

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