================================================================================ UBSAN: array-index-out-of-bounds in net/netfilter/nfnetlink.c:697:28 index 10 is out of range for type 'int [10]' CPU: 0 PID: 4082 Comm: syz-executor.0 Not tainted 5.18.0-rc2-syzkaller #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+0x57/0x7d lib/dump_stack.c:106 ubsan_epilogue+0x5/0x36 lib/ubsan.c:151 __ubsan_handle_out_of_bounds.cold+0x43/0x48 lib/ubsan.c:283 nfnetlink_unbind+0x296/0x2c0 net/netfilter/nfnetlink.c:697 netlink_release+0x889/0x17c0 net/netlink/af_netlink.c:773 __sock_release+0xbb/0x270 net/socket.c:650 sock_close+0xf/0x20 net/socket.c:1318 __fput+0x1f5/0x8c0 fs/file_table.c:317 task_work_run+0xc0/0x160 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:0x7f7cb723bd2b 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:00007ffd8e868f60 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f7cb723bd2b RDX: 00007f7cb73a0178 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f7cb739d960 R08: 0000000000000000 R09: 00007f7cb73a0180 R10: 00007ffd8e869060 R11: 0000000000000293 R12: 0000000000012071 R13: 00007ffd8e869060 R14: 00007f7cb739bf60 R15: 0000000000000032 ================================================================================