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:
gtp: Fix use-after-free in __gtp_encap_destroy().
syzkaller reported use-after-free in __gtp_encap_destroy(). [0]
It shows the same process freed sk and touched it illegally.
Commit e198987e7dd7 ("gtp: fix suspicious RCU usage") added lock_sock()
and release_sock() in __gtp_encap_destroy() to protect sk->sk_user_data,
but release_sock() is called after sock_put() releases the last refcnt.
[0]:
BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96[inline]BUG: KASAN: slab-use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541[inline]BUG: KASAN: slab-use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:111[inline]BUG: KASAN: slab-use-after-free in do_raw_spin_lock include/linux/spinlock.h:186[inline]BUG: KASAN: slab-use-after-free in __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127[inline]BUG: KASAN: slab-use-after-free in _raw_spin_lock_bh+0x75/0xe0kernel/locking/spinlock.c:178Write of size 4 at addr ffff88800dbef398 by task syz-executor.2/2401
CPU: 1 PID: 2401 Comm: syz-executor.2 Not tainted 6.4.0-rc5-01219-gfa0e21fa4443 #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Call Trace:<TASK>__dump_stacklib/dump_stack.c:88[inline]dump_stack_lvl+0x72/0xa0lib/dump_stack.c:106print_address_descriptionmm/kasan/report.c:351[inline]print_report+0xcc/0x620mm/kasan/report.c:462kasan_report+0xb2/0xe0mm/kasan/report.c:572check_region_inlinemm/kasan/generic.c:181[inline]kasan_check_range+0x39/0x1c0mm/kasan/generic.c:187instrument_atomic_read_writeinclude/linux/instrumented.h:96[inline]atomic_try_cmpxchg_acquireinclude/linux/atomic/atomic-instrumented.h:541[inline]queued_spin_lockinclude/asm-generic/qspinlock.h:111[inline]do_raw_spin_lockinclude/linux/spinlock.h:186[inline]__raw_spin_lock_bhinclude/linux/spinlock_api_smp.h:127[inline]_raw_spin_lock_bh+0x75/0xe0kernel/locking/spinlock.c:178spin_lock_bhinclude/linux/spinlock.h:355[inline]release_sock+0x1f/0x1a0net/core/sock.c:3526gtp_encap_disable_sockdrivers/net/gtp.c:651[inline]gtp_encap_disable+0xb9/0x220drivers/net/gtp.c:664gtp_dev_uninit+0x19/0x50drivers/net/gtp.c:728unregister_netdevice_many_notify+0x97e/0x1520net/core/dev.c:10841rtnl_delete_linknet/core/rtnetlink.c:3216[inline]rtnl_dellink+0x3c0/0xb30net/core/rtnetlink.c:3268rtnetlink_rcv_msg+0x450/0xb10net/core/rtnetlink.c:6423netlink_rcv_skb+0x15d/0x450net/netlink/af_netlink.c:2548netlink_unicast_kernelnet/netlink/af_netlink.c:1339[inline]netlink_unicast+0x700/0x930net/netlink/af_netlink.c:1365netlink_sendmsg+0x91c/0xe30net/netlink/af_netlink.c:1913sock_sendmsg_nosecnet/socket.c:724[inline]sock_sendmsg+0x1b7/0x200net/socket.c:747____sys_sendmsg+0x75a/0x990net/socket.c:2493___sys_sendmsg+0x11d/0x1c0net/socket.c:2547__sys_sendmsg+0xfe/0x1d0net/socket.c:2576do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x3f/0x90arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x72/0xdcRIP: 0033:0x7f1168b1fe5dCode:ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 73 9f 1b 00 f7 d8 64 89 01 48RSP: 002b:00007f1167edccc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002eRAX: ffffffffffffffda RBX: 00000000004bbf80 RCX: 00007f1168b1fe5dRDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003RBP: 00000000004bbf80 R08: 0000000000000000 R09: 0000000000000000R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000R13: 000000000000000b R14: 00007f1168b80530 R15: 0000000000000000</TASK>Allocated by task 1483:kasan_save_stack+0x22/0x50mm/kasan/common.c:45kasan_set_track+0x25/0x30mm/kasan/common.c:52 __kasan_slab_alloc+0x