{"id":"CVE-2026-93181","aliases":["CVE-2026-93181"],"related":[],"kind":"vulnerability","state":"published","title":"perf/x86/intel/uncore: Fix uncore_box ref/unref ordering","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86/intel/uncore: Fix uncore_box ref/unref ordering\n\nIn uncore_event_cpu_online(), uncore_box_ref() was called before\nuncore_change_context().  uncore_box_ref() gates on box->cpu >= 0,\nbut box->cpu is still -1 at that point because uncore_change_context()\nhas not run yet.  As a result, the box is never initialized on the\nfirst CPU to come online in a die, leaving it permanently\nuninitialized in the single-CPU-per-die case.\n\nThus, box->refcnt is one count below the true value, and in the CPU\noffline path, the box will be torn down on the second-to-last CPU.\n\nIn uncore_event_cpu_offline(), uncore_box_unref() was called after\nuncore_change_context(), so box->cpu is already -1 when the collector\nCPU goes offline, which prevents it from tearing down the box.\n\nFix by swapping the call order in both paths so that\nuncore_box_{ref,unref}() runs at the point where box->cpu reflects\nthe correct context.\n\nMove allocate_boxes() out of uncore_box_ref() to enable this\nreordering.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86/intel/uncore: Fix uncore_box ref/unref ordering\n\nIn uncore_event_cpu_online(), uncore_box_ref() was called before\nuncore_change_context().  uncore_box_ref() gates on box->cpu >= 0,\nbut box->cpu is still -1 at that point because uncore_change_context()\nhas not run yet.  As a result, the box is never initialized on the\nfirst CPU to come online in a die, leaving it permanently\nuninitialized in the single-CPU-per-die case.\n\nThus, box->refcnt is one count below the true value, and in the CPU\noffline path, the box will be torn down on the second-to-last CPU.\n\nIn uncore_event_cpu_offline(), uncore_box_unref() was called after\nuncore_change_context(), so box->cpu is already -1 when the collector\nCPU goes offline, which prevents it from tearing down the box.\n\nFix by swapping the call order in both paths so that\nuncore_box_{ref,unref}() runs at the point where box->cpu reflects\nthe correct context.\n\nMove allocate_boxes() out of uncore_box_ref() to enable this\nreordering.","source":"cvelist"}],"published":"2026-09-17T16:12:08.716Z","modified":"2026-10-21T13:21:02.227Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c74443d92f68f07c03ae242ced554b749e6c6736","fixed":"3cfd351602e6704cce9bc766a974afb9f745d44b","status":"affected"},{"type":"git","introduced":"c74443d92f68f07c03ae242ced554b749e6c6736","fixed":"64aa1bb4017d598828c6d8cd718f43daf2a83375","status":"affected"},{"type":"git","introduced":"c74443d92f68f07c03ae242ced554b749e6c6736","fixed":"174f0582e38abe03b88e15f04bfe58490f88cb19","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3cfd351602e6704cce9bc766a974afb9f745d44b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64aa1bb4017d598828c6d8cd718f43daf2a83375","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/174f0582e38abe03b88e15f04bfe58490f88cb19","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93181","url":"https://www.cve.org/CVERecord?id=CVE-2026-93181","licence":"CVE Terms of Use","modified":"2026-10-21T12:52:12.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93181","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93181","licence":"Public domain","modified":"2026-10-21T13:21:02.227Z"}],"updatedAt":"2026-11-25T22:59:39.480Z","epss":{"score":0.00204,"percentile":0.10957,"date":"2026-12-01T12:00:22.000Z"}}