CVE-2026-98552: perf/core: Fix a refcount leak in attach_perf_ctx_data()

Published Oct 18, 2026
·
Updated

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

perf/core: Fix a refcount leak in attachperfctxdata()

The attachperfctxdata() can race on global and !global cases. The global case is protected by globalctxdatarwsem and shares a single reference count using perfctxdata.global field.

But when it races with !global case, it may miss to set the global field and result in a reference count leak.

CPU1 CPU2 ---------------------------------------------------------------- attachtaskctxdata(.global=1) attachtaskctxdata(.global=0) cd1 = allocperfctxdata(); cd2 = allocperfctxdata(); // { .global = 0, .refcount = 1 };

trycmpxchg(); // success, // task->perfctxdata = cd2 trycmpxhg(); // fail; old = cd2 refcountincnotzero(&old->refcount); // success // old.refcount = 2 freeperfctxdata(cd1);

Then later detachglobalctxdata() will see the data but it's not marked as global, so it won't call detachtaskctxdata().

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203