Skip to content
High 7.8

Linux カーネルの perf に解放済みメモリを参照する脆弱性、CVSS 7.8

CVE-2026-139214 First seen on SecPulse

Summary

Linux カーネルの perf 処理で、解放済みのメモリを参照する脆弱性が見つかりました。CVSSは7.8で、影響を受けるのは6.15.0以降6.18.65未満と6.19.0以降7.3.6未満のカーネルです。修正版は6.18.65と7.3.6で、該当するカーネルを修正版へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Linux カーネルの perf 処理で、解放済みのメモリを参照する脆弱性が見つかりました。CVSSは7.8で、影響を受けるのは6.15.0以降6.18.65未満と6.19.0以降7.3.6未満のカーネルです。修正版は6.18.65と7.3.6で、該当するカーネルを修正版へ更新してください。

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.15.0, < 6.18.65→ 6.18.65
≥ 6.19.0, < 7.3.6→ 7.3.6

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details