CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
9.8 CRITICAL v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
mptcp: fix race condition in mptcp_schedule_work()
syzbot reported use-after-free in mptcp_schedule_work() [1]
Issue here is that mptcp_schedule_work() schedules a work,
then gets a refcount on sk->sk_refcnt if the work was scheduled.
This refcount will be released by mptcp_worker().
[A] if (schedule_work(...)) {
[B] sock_hold(sk);
returntrue;
}
Problem is that mptcp_worker() can run immediately and complete before [B]
We need instead :
sock_hold(sk);
if (schedule_work(...))
returntrue;
sock_put(sk);
[1]
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 1 PID: 29 at lib/refcount.c:25refcount_warn_saturate+0xfa/0x1d0lib/refcount.c:25Call Trace:<TASK> __refcount_add include/linux/refcount.h:-1 [inline]__refcount_incinclude/linux/refcount.h:366[inline]refcount_incinclude/linux/refcount.h:383[inline]sock_holdinclude/net/sock.h:816[inline]mptcp_schedule_work+0x164/0x1a0net/mptcp/protocol.c:943mptcp_tout_timer+0x21/0xa0net/mptcp/protocol.c:2316call_timer_fn+0x17e/0x5f0kernel/time/timer.c:1747expire_timerskernel/time/timer.c:1798[inline]__run_timerskernel/time/timer.c:2372[inline]__run_timer_base+0x648/0x970kernel/time/timer.c:2384run_timer_basekernel/time/timer.c:2393[inline]run_timer_softirq+0xb7/0x180kernel/time/timer.c:2403handle_softirqs+0x22f/0x710kernel/softirq.c:622__do_softirqkernel/softirq.c:656[inline]run_ktimerd+0xcf/0x190kernel/softirq.c:1138smpboot_thread_fn+0x542/0xa60kernel/smpboot.c:160kthread+0x711/0x8a0kernel/kthread.c:463ret_from_fork+0x4bc/0x870arch/x86/kernel/process.c:158ret_from_fork_asm+0x1a/0x30arch/x86/entry/entry_64.S:245