================================================================== BUG: KASAN: use-after-free in ipv6_skip_exthdr+0x4ed/0x520 net/ipv6/exthdrs_core.c:103 Read of size 1 at addr ffff88815a730011 by task syz-executor.4/7495 CPU: 1 PID: 7495 Comm: syz-executor.4 Not tainted 6.3.0-rc6-syzkaller-00127-g3037933448f6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:536 ipv6_skip_exthdr+0x4ed/0x520 net/ipv6/exthdrs_core.c:103 ipv6_get_l4proto net/netfilter/nf_conntrack_core.c:393 [inline] get_l4proto+0x325/0x500 net/netfilter/nf_conntrack_core.c:416 nf_conntrack_in+0x264/0x17d0 net/netfilter/nf_conntrack_core.c:1984 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xc9/0x1f0 net/netfilter/core.c:614 nf_hook include/linux/netfilter.h:257 [inline] __ip6_local_out+0x3e7/0x8e0 net/ipv6/output_core.c:143 ip6_local_out+0x2a/0x1a0 net/ipv6/output_core.c:153 ip6_send_skb+0xbb/0x340 net/ipv6/ip6_output.c:1989 udp_v6_send_skb+0x82a/0x18a0 net/ipv6/udp.c:1294 udp_v6_push_pending_frames+0x140/0x200 net/ipv6/udp.c:1321 udpv6_sendmsg+0x1858/0x2d50 net/ipv6/udp.c:1616 inet6_sendmsg+0x9d/0xe0 net/ipv6/af_inet6.c:651 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 ____sys_sendmsg+0x334/0x900 net/socket.c:2501 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555 __sys_sendmmsg+0x18f/0x460 net/socket.c:2641 __do_sys_sendmmsg net/socket.c:2670 [inline] __se_sys_sendmmsg net/socket.c:2667 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2667 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f164aa8c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f164b82e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f164ababf80 RCX: 00007f164aa8c169 RDX: 0000000000000001 RSI: 0000000020001f40 RDI: 0000000000000003 RBP: 00007f164aae7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8dea3daf R14: 00007f164b82e300 R15: 0000000000022000 The buggy address belongs to the physical page: page:ffffea000569cc00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15a730 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea000569cc08 ffffea000569cc08 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88815a72ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88815a72ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88815a730000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88815a730080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88815a730100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================