CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
workqueue: Fix unbound pool lifetime for pending pwqs
KASAN reports a use-after-free of an unbound worker_pool in
node_activate_pending_pwq():
BUG: KASAN: slab-use-after-free in _raw_spin_trylock+0x6d/0x120Read of size 4 at addr ffff8880089ce000 by task kworker/u22:0/318
CPU: 1 UID: 0 PID: 318 Comm: kworker/u22:0 Not tainted 7.2.0 #1 PREEMPT(lazy)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue:0x0 (flush-8:0)
Call Trace:<TASK>dump_stack_lvl+0x53/0x70print_report+0xce/0x610kasan_report+0xce/0x100_raw_spin_trylock+0x6d/0x120pwq_dec_nr_in_flight+0x4b4/0xcb0process_one_work+0x921/0x11a0worker_thread+0x4d0/0xd20kthread+0x2de/0x3c0ret_from_fork+0x3aa/0x620ret_from_fork_asm+0x1a/0x30</TASK>Allocated by task 311:alloc_pwq+0x439/0xca0apply_wqattrs_prepare+0x75e/0xd10apply_workqueue_attrs_locked+0x44/0xa0wq_nice_store+0x350/0x450Freed by task 0:kfree+0x127/0x3b0rcu_core+0x523/0x1780handle_softirqs+0x1b3/0x610Last potentially related work creation:put_unbound_pool+0x3f3/0x7d0pwq_release_workfn+0x494/0x8e0kthread_worker_fn+0x1ff/0x790
Canceling the last inactive work skips pwq_dec_nr_active(), so an empty
pwq can remain on pending_pwqs when its refcnt reaches zero.
pwq_release_workfn() currently puts the pool before removing that pwq.
If this drops the last pool reference, the pool can be RCU-freed while
the pwq remains reachable, and node_activate_pending_pwq() may trylock
the freed pool->lock.
Remove the pwq from pending_pwqs before putting the pool.