nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. ================================================================== BUG: KASAN: use-after-free in sock_net_uid include/net/sock.h:1733 [inline] BUG: KASAN: use-after-free in ip6_route_me_harder+0x9d8/0xc00 net/ipv6/netfilter.c:26 Read of size 4 at addr ffff8801bc8981b0 by task syz-executor0/9159 CPU: 0 PID: 9159 Comm: syz-executor0 Not tainted 4.16.0-rc2+ #250 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23b/0x360 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 sock_net_uid include/net/sock.h:1733 [inline] ip6_route_me_harder+0x9d8/0xc00 net/ipv6/netfilter.c:26 nf_nat_ipv6_local_fn+0x2a4/0x5d0 net/ipv6/netfilter/nf_nat_l3proto_ipv6.c:414 ip6table_nat_local_fn+0x2c/0x40 net/ipv6/netfilter/ip6table_nat.c:69 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline] nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483 nf_hook include/linux/netfilter.h:243 [inline] NF_HOOK include/linux/netfilter.h:286 [inline] ip6_xmit+0x10ec/0x2260 net/ipv6/ip6_output.c:277 tcp_v6_send_synack+0x57b/0xaa0 net/ipv6/tcp_ipv6.c:490 tcp_conn_request+0x26fd/0x3660 net/ipv4/tcp_input.c:6335 tcp_v6_conn_request+0x212/0x270 net/ipv6/tcp_ipv6.c:1021 tcp_rcv_state_process+0x92a/0x4760 net/ipv4/tcp_input.c:5842 tcp_v6_do_rcv+0x739/0x1250 net/ipv6/tcp_ipv6.c:1331 tcp_v6_rcv+0x25a0/0x2d40 net/ipv6/tcp_ipv6.c:1521 ip6_input_finish+0x37e/0x17a0 net/ipv6/ip6_input.c:284 NF_HOOK include/linux/netfilter.h:288 [inline] ip6_input+0xdb/0x560 net/ipv6/ip6_input.c:327 dst_input include/net/dst.h:449 [inline] ip6_rcv_finish+0x297/0x8c0 net/ipv6/ip6_input.c:71 NF_HOOK include/linux/netfilter.h:288 [inline] ipv6_rcv+0xf37/0x1fa0 net/ipv6/ip6_input.c:208 __netif_receive_skb_core+0x1a41/0x3460 net/core/dev.c:4554 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4619 netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4693 netif_receive_skb+0xae/0x390 net/core/dev.c:4717 tun_rx_batched.isra.52+0x5ee/0x870 drivers/net/tun.c:1556 tun_get_user+0x25a5/0x3810 drivers/net/tun.c:1957 tun_chr_write_iter+0xbd/0x1c0 drivers/net/tun.c:1985 call_write_iter include/linux/fs.h:1781 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653 do_iter_write+0x154/0x540 fs/read_write.c:932 vfs_writev+0x18a/0x340 fs/read_write.c:977 do_writev+0xfc/0x2a0 fs/read_write.c:1012 SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453c41 RSP: 002b:00007f66256b6ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000004a RCX: 0000000000453c41 RDX: 0000000000000001 RSI: 00007f66256b6bf0 RDI: 00000000000000fc RBP: 0000000020000100 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000004a R11: 0000000000000293 R12: 00000000ffffffff R13: 0000000000000627 R14: 00000000006f9448 R15: 0000000000000001 Allocated by task 6958: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc_node+0x144/0x760 mm/slab.c:3631 __alloc_skb+0xf1/0x780 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:986 [inline] _sctp_make_chunk+0x51/0x270 net/sctp/sm_make_chunk.c:1390 sctp_make_control+0x39/0x150 net/sctp/sm_make_chunk.c:1437 sctp_make_ecne+0xa5/0x140 net/sctp/sm_make_chunk.c:710 sctp_get_ecne_prepend+0x77/0xa0 net/sctp/associola.c:930 sctp_packet_config+0x8a3/0xc80 net/sctp/output.c:118 sctp_outq_flush+0x7c7/0x4060 net/sctp/outqueue.c:894 sctp_outq_uncork+0x5a/0x70 net/sctp/outqueue.c:776 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1807 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1210 [inline] sctp_do_sm+0x4e0/0x6ed0 net/sctp/sm_sideeffect.c:1181 sctp_assoc_bh_rcv+0x283/0x4b0 net/sctp/associola.c:1065 sctp_inq_push+0x23b/0x300 net/sctp/inqueue.c:95 sctp_backlog_rcv+0x177/0xa90 net/sctp/input.c:350 sk_backlog_rcv include/net/sock.h:909 [inline] __release_sock+0x124/0x360 net/core/sock.c:2275 release_sock+0xa4/0x2a0 net/core/sock.c:2790 sctp_sendmsg+0x19b9/0x35e0 net/sctp/socket.c:2055 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xca/0x110 net/socket.c:639 sock_write_iter+0x31a/0x5d0 net/socket.c:908 call_write_iter include/linux/fs.h:1781 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653 do_iter_write+0x154/0x540 fs/read_write.c:932 vfs_writev+0x18a/0x340 fs/read_write.c:977 do_writev+0xfc/0x2a0 fs/read_write.c:1012 SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 6958: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x2a0 mm/slab.c:3743 kfree_skbmem+0x1a1/0x1d0 net/core/skbuff.c:582 __kfree_skb net/core/skbuff.c:642 [inline] consume_skb+0x15b/0x490 net/core/skbuff.c:701 sctp_chunk_destroy net/sctp/sm_make_chunk.c:1450 [inline] sctp_chunk_put+0x29c/0x420 net/sctp/sm_make_chunk.c:1477 sctp_chunk_free+0x53/0x60 net/sctp/sm_make_chunk.c:1464 sctp_packet_pack net/sctp/output.c:486 [inline] sctp_packet_transmit+0x124b/0x3750 net/sctp/output.c:606 sctp_outq_flush+0x121b/0x4060 net/sctp/outqueue.c:1197 sctp_outq_uncork+0x5a/0x70 net/sctp/outqueue.c:776 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1807 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1210 [inline] sctp_do_sm+0x4e0/0x6ed0 net/sctp/sm_sideeffect.c:1181 sctp_assoc_bh_rcv+0x283/0x4b0 net/sctp/associola.c:1065 sctp_inq_push+0x23b/0x300 net/sctp/inqueue.c:95 sctp_backlog_rcv+0x177/0xa90 net/sctp/input.c:350 sk_backlog_rcv include/net/sock.h:909 [inline] __release_sock+0x124/0x360 net/core/sock.c:2275 release_sock+0xa4/0x2a0 net/core/sock.c:2790 sctp_sendmsg+0x19b9/0x35e0 net/sctp/socket.c:2055 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xca/0x110 net/socket.c:639 sock_write_iter+0x31a/0x5d0 net/socket.c:908 call_write_iter include/linux/fs.h:1781 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653 do_iter_write+0x154/0x540 fs/read_write.c:932 vfs_writev+0x18a/0x340 fs/read_write.c:977 do_writev+0xfc/0x2a0 fs/read_write.c:1012 SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8801bc898180 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 48 bytes inside of 232-byte region [ffff8801bc898180, ffff8801bc898268) The buggy address belongs to the page: page:ffffea0006f22600 count:1 mapcount:0 mapping:ffff8801bc898040 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801bc898040 0000000000000000 000000010000000c raw: ffffea0006dc1aa0 ffffea0006ef0fa0 ffff8801d9bec680 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bc898080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801bc898100: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc >ffff8801bc898180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801bc898200: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff8801bc898280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================