PT-2026-163255

CVE-2026-139214

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
perf: Fix UAF in attach task ctx data()
struct perf ctx data is RCU protected. In attach task ctx data(), the cmpxchg retry loop runs without holding rcu read lock(). If task->perf ctx data already holds a pointer (call it cd1), then try cmpxchg(&task->perf ctx data, &old, cd) fails and loads old = cd1. A concurrent thread running detach task ctx data() could free cd1 leading to UAF and further memory corruption when cd1 is reclaimed by another thread.
CPU 0: attach task ctx data() CPU 1: detach task ctx data()

try cmpxchg(&task->perf ctx data, &old, cd2) -> fails; loads old = cd1
              refcount dec and test(&cd1->refcount)
              try cmpxchg(&task->perf ctx data,
                    &cd1, NULL)
              perf free ctx data rcu(cd1)
              [ RCU grace period -> kfree(cd1) ]
refcount inc not zero(&old->refcount) -> UAF on freed cd1
Fix this by taking rcu read lock across the race window.
Exploitability
Fix
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾