Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege shell
-
DeliverySpawn concurrent attach/detach perf threads
-
ExploitWin cmpxchg race window
-
ExecutionTrigger UAF on freed perf_ctx_data
-
PersistCorrupt kernel memory via stale refcount
-
ImpactEscalate to kernel privileges
Vulnerability Assessment
| Exploitation Conditions | Requires local code execution as an unprivileged or low-privileged user on a kernel built with perf events support (CONFIG_PERF_EVENTS), with the ability to invoke the perf path that calls attach_task_ctx_data()/detach_task_ctx_data() concurrently against a shared task's perf_ctx_data. Exploitation is fundamentally a timing race: the attacker must win the cmpxchg retry window where attach reloads a pointer that a concurrent detach is freeing under RCU, so success depends on hitting a narrow concurrency window (SMP/multi-core strongly favors the attacker). Limiting factors: no remote vector (AV:L), low privileges still required (PR:L), the race is probabilistic rather than deterministic, and systems that restrict perf access via perf_event_paranoid or lack CONFIG_PERF_EVENTS reduce or remove exposure. |
| Impact | Signals are consistent and point to a genuine but not emergency-grade local privilege-escalation risk. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8) correctly reflects a local, low-privilege flaw with high impact to confidentiality, integrity and availability - characteristic of a kernel use-after-free that can lead to memory corruption and potential root escalation. However, the description makes clear this is a concurrency race (concurrent attach_task_ctx_data()/detach_task_ctx_data() on task->perf_ctx_data), so the AC:L in the supplied vector likely understates real difficulty; winning the cmpxchg race window reliably is non-trivial, which argues for AC:H. EPSS is low at 0.18% (8th percentile) and there is no CISA KEV listing and no public exploit identified, so there is no evidence of active or imminent exploitation. The vuln.today decision label is 'this_week', consistent with a patch-available, high-impact local kernel bug that should be scheduled promptly but is not an act-now emergency. No key signals conflict; the main caveat is that the 'Buffer Overflow' tag mischaracterizes the mechanism (this is a UAF, not an overflow), and the EUVD affected-version strings contain implausible kernel numbers (7.3.6, 7.4-rc1) that cannot be reconciled with real Linux versioning. |
| Exploit ScenarioDerived | A local, low-privileged user on a multi-core system repeatedly attaches and detaches perf context data to a shared task from multiple threads, racing the cmpxchg retry loop so that detach_task_ctx_data() frees a perf_ctx_data object (cd1) while attach_task_ctx_data() still holds and dereferences the stale pointer. Hitting the window triggers a use-after-free and subsequent refcount_inc on freed memory, which can be shaped into kernel memory corruption and potential privilege escalation. No public exploit identified at time of analysis, and the narrow race window makes reliable exploitation difficult. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Local privilege escalation in the Linux kernel perf subsystem allows a low-privileged user to race attach_task_ctx_data() against detach_task_ctx_data() and trigger a use-after-free on the RCU-protected task->perf_ctx_data pointer, potentially causing memory corruption and code execution with kernel privileges. The flaw requires local access on a kernel built with CONFIG_PERF_EVENTS, and exploitation depends on winning a narrow concurrency window (assessed AC:H); systems that restrict perf access via perf_event_paranoid or omit perf events support reduce exposure. No public exploit has been identified at time of analysis, EPSS is low at 0.18% (8th percentile), and vendor patches are available in Linux 6.18.65, 7.3.6, and 7.4-rc1.
RemediationAI
Apply the vendor-released kernel fixes by upgrading to Linux 6.18.65, 7.3.6, or 7.4-rc1, which contain stable commits 64ea0e8226ed98d14e0231af1beae10c3d5c043a, b455bcb13502696e588c7a0e60a196851fb87474, and 5d1869d012b475e9165c201a5cc71ad1ac92115a; updating is the complete fix for the race. Treat this as a this-week remediation priority per the supplied decision label. If an immediate kernel update is not possible, reduce exposure by setting kernel.perf_event_paranoid to 3 so unprivileged users cannot open perf events, or by building the kernel without CONFIG_PERF_EVENTS; the trade-off is that the first option removes unprivileged performance profiling while the second removes perf events support entirely. Reference advisories and fixes are available at https://git.kernel.org/stable/c/64ea0e8226ed98d14e0231af1beae10c3d5c043a, https://git.kernel.org/stable/c/b455bcb13502696e588c7a0e60a196851fb87474, https://git.kernel.org/stable/c/5d1869d012b475e9165c201a5cc71ad1ac92115a, and https://nvd.nist.gov/vuln/detail/CVE-2026-139214.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Linux perf subsystem keeps per-task context data in task->perf_ctx_data, an RCU-protected pointer managed with reference counting. detach_task_ctx_data() drops the reference and frees the object through perf_free_ctx_data_rcu() after an RCU grace period. In attach_task_ctx_data(), the try_cmpxchg retry loop runs without holding rcu_read_lock(); when the compare-exchange fails because another thread already installed cd1, the loop reloads old = cd1. A concurrent detach can then drop the last reference, free cd1 after the RCU grace period, and the subsequent refcount_inc_not_zero(&old->refcount) dereferences freed memory, causing a use-after-free and possible memory corruption if the object is reclaimed. The supplied fix takes rcu_read_lock across the race window. The trigger is a concurrency race between perf attach and detach paths operating on a shared task's perf_ctx_data; no CWE identifier is assigned in the available data, and no CPE strings were provided.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local low-priv access (AV:L/PR:L); AC:H because triggering requires winning a narrow concurrent attach/detach race window; UAF yields full kernel C/I/A impact.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
4DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-139214 is a high-severity local privilege escalation vulnerability in the Linux kernel's perf subsystem that allows an authenticated low-privileged user to gain kernel-level code execution. This poses a significant risk to multi-user and containerized environments where Linux hosts are shared, as a compromised or malicious user account could lead to full system compromise. Leadership should prioritize patching due to the potential for lateral movement and data breach.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
EUVD-2026-138919
GHSA-mm9r-fr8x-j39r
NVD
CVE.org
EPSS
Exploit-DB