================================================================== BUG: KASAN: global-out-of-bounds in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: global-out-of-bounds in __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] BUG: KASAN: global-out-of-bounds in get_unique_tuple+0x16c3/0x19e0 net/netfilter/nf_nat_core.c:313 Read of size 8 at addr ffffffff873c9fe0 by task syz-executor675/6328 CPU: 1 PID: 6328 Comm: syz-executor675 Not tainted 4.14.175-syzkaller #0 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+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 __read_once_size include/linux/compiler.h:183 [inline] __nf_nat_l4proto_find net/netfilter/nf_nat_core.c:54 [inline] get_unique_tuple+0x16c3/0x19e0 net/netfilter/nf_nat_core.c:313 nf_nat_setup_info+0x17b/0x710 net/netfilter/nf_nat_core.c:407 __nf_nat_alloc_null_binding+0x13f/0x180 net/netfilter/nf_nat_core.c:466 nfnetlink_parse_nat_setup+0x30c/0x370 net/netfilter/nf_nat_core.c:782 ctnetlink_parse_nat_setup+0x70/0x490 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1491 [inline] ctnetlink_create_conntrack+0x437/0x1040 net/netfilter/nf_conntrack_netlink.c:1840 ctnetlink_new_conntrack+0x460/0xc30 net/netfilter/nf_conntrack_netlink.c:1964 nfnetlink_rcv_msg+0xa08/0xc00 net/netfilter/nfnetlink.c:214 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 nfnetlink_rcv+0x1ab/0x1650 net/netfilter/nfnetlink.c:515 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x440229 RSP: 002b:00007ffc92df38b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440229 RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401ab0 R13: 0000000000401b40 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the variable: nft_filter_chain_netdev+0x440/0x4c0 Memory state around the buggy address: ffffffff873c9e80: 00 00 00 00 07 fa fa fa fa fa fa fa 00 00 06 fa ffffffff873c9f00: fa fa fa fa 06 fa fa fa fa fa fa fa 00 01 fa fa >ffffffff873c9f80: fa fa fa fa 07 fa fa fa fa fa fa fa 06 fa fa fa ^ ffffffff873ca000: fa fa fa fa 00 03 fa fa fa fa fa fa 00 00 00 00 ffffffff873ca080: 00 00 fa fa fa fa fa fa 00 00 00 00 00 fa fa fa ==================================================================