CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.8 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
tracing/user_events: Clear copied tracing state before fork duplication
dup_task_struct() copies user_event_mm from the parent into the child,
without grabbing a reference to it. user_event_mm_dup() should
replace it, but it leaves that copied pointer unmodified if
user_event_mm_alloc() fails.
When the child exits, user_event_mm_remove() decrements a reference
the child never owned, which ultimately frees user_event_mm, while
the parent still as a stale pointer to it. This creates a UAF, which
KASAN reports as:
BUG: KASAN: slab-use-after-free in
current_user_event_mm+0x51/0x1d0 Write of size 4 at addr
ffff888005010d30 by task init/44
Call Trace:<TASK>kasan_report+0xce/0x100kasan_check_range+0x10f/0x1e0current_user_event_mm+0x51/0x1d0user_events_ioctl+0x82e/0x15c0__x64_sys_ioctl+0x139/0x1c0do_syscall_64+0xce/0x450entry_SYSCALL_64_after_hwframe+0x77/0x7fAllocated by task 44:__kasan_kmalloc+0x8f/0xa0__kmalloc_cache_noprof+0x180/0x3a0user_event_mm_alloc+0x3c/0x1f0current_user_event_mm+0x88/0x1d0Freed by task 42:__kasan_slab_free+0x43/0x70kfree+0x13a/0x390process_one_work+0x696/0xf90worker_thread+0x420/0xba0
The fix simply clears the copied pointer before any possible failure.
In case of failure, the child then has nothing to free.