CVE-2026-139214

HighCVSS 7.8/10Last modified Dec 1, 2026

Description

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139215In the Linux kernel, the following vulnerability has been resolved: nsproxy: Fix cred leak in the error path of prepare_nsset() A task thaCVE-2026-139216In the Linux kernel, the following vulnerability has been resolved: ntfs: fix u16 truncation of the update sequence array count check ntfsCVE-2026-1392177.8In the Linux kernel, the following vulnerability has been resolved: ntfs: reject index blocks with a too small entries offset Index blocksCVE-2026-1392187.8In the Linux kernel, the following vulnerability has been resolved: tipc: fix use-after-free of broadcast reception link at node release WCVE-2026-1392197.8In the Linux kernel, the following vulnerability has been resolved: net: shrink the payload-only part of skb dataref to one bit skb_shinfoCVE-2026-139226.5Side-channel information leakage in Paint in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to leak cross-origin data via a CVE-2026-139220In the Linux kernel, the following vulnerability has been resolved: net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereCVE-2026-139221In the Linux kernel, the following vulnerability has been resolved: ionic: free port_info when probe fails after the port is set up ionic_CVE-2026-1392227.0In the Linux kernel, the following vulnerability has been resolved: ionic: fix port_info use-after-free on firmware recovery ionic_port_inCVE-2026-139223In the Linux kernel, the following vulnerability has been resolved: nvme-fabrics: clear the poll map if no poll queues are mapped blk_mq_aCVE-2026-139224In the Linux kernel, the following vulnerability has been resolved: nvme-fabrics: reset io_queues before computing the queue mapping nvmf_CVE-2026-139225In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix modify header pool match for copy actions mlx5_fs_h
CVE-2026-139214: High severity, CVSS 7.8 | Vulnix