================================================================== BUG: KASAN: global-out-of-bounds in nfnetlink_unbind+0x36b/0x3b0 net/netfilter/nfnetlink.c:697 Read of size 4 at addr ffffffff8ad83590 by task syz-executor.5/15930 CPU: 0 PID: 15930 Comm: syz-executor.5 Not tainted 5.18.0-rc7-syzkaller-02094-g677fb7525331 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 nfnetlink_unbind+0x36b/0x3b0 net/netfilter/nfnetlink.c:697 netlink_release+0xa8f/0x1db0 net/netlink/af_netlink.c:773 __sock_release+0xcd/0x280 net/socket.c:650 sock_close+0x18/0x20 net/socket.c:1365 __fput+0x277/0x9d0 fs/file_table.c:317 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2a3363bd3b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffcb6117200 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f2a3363bd3b RDX: 00007f2a337a0658 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f2a3379d960 R08: 0000000000000000 R09: 00007f2a337a0660 R10: 00007ffcb6117300 R11: 0000000000000293 R12: 0000000000051c3e R13: 00007ffcb6117300 R14: 00007f2a3379bf60 R15: 0000000000000032 The buggy address belongs to the variable: nfnl_group2type+0x50/0x3a0 Memory state around the buggy address: ffffffff8ad83480: 00 00 04 f9 f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 ffffffff8ad83500: 00 00 00 00 f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 >ffffffff8ad83580: f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9 00 00 06 f9 ^ ffffffff8ad83600: f9 f9 f9 f9 00 00 00 02 f9 f9 f9 f9 00 00 02 f9 ffffffff8ad83680: f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9 00 00 f9 f9 ==================================================================