netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 32 bytes leftover after parsing attributes in process `syz-executor.2'. ================================================================== BUG: KASAN: global-out-of-bounds in nfnetlink_parse_nat net/netfilter/nf_nat_core.c:747 [inline] BUG: KASAN: global-out-of-bounds in nfnetlink_parse_nat_setup+0x373/0x380 net/netfilter/nf_nat_core.c:784 Read of size 8 at addr ffffffff8852de38 by task syz-executor.2/22025 CPU: 1 PID: 22025 Comm: syz-executor.2 Not tainted 4.14.184-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+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x5/0x1dc 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/0x2b9 mm/kasan/report.c:393 nfnetlink_parse_nat net/netfilter/nf_nat_core.c:747 [inline] nfnetlink_parse_nat_setup+0x373/0x380 net/netfilter/nf_nat_core.c:784 ptrace attach of "/root/syz-executor.5"[22038] was attempted by "/root/syz-executor.5"[22039] ctnetlink_parse_nat_setup+0x70/0x490 net/netfilter/nf_conntrack_netlink.c:1421 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1496 [inline] ctnetlink_create_conntrack+0x477/0x1040 net/netfilter/nf_conntrack_netlink.c:1840 ctnetlink_new_conntrack+0x45f/0xbf4 net/netfilter/nf_conntrack_netlink.c:1964 nfnetlink_rcv_msg+0x9e1/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/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x64a/0xbb0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/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+0x46/0xbb RIP: 0033:0x45ca69 RSP: 002b:00007f063123ac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004fde80 RCX: 000000000045ca69 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000936 R14: 00000000004cc01c R15: 00007f063123b6d4 The buggy address belongs to the variable: nf_tables_objects+0x38/0x40 Memory state around the buggy address: ffffffff8852dd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8852dd80: 00 00 00 fa fa fa fa fa 00 00 fa fa fa fa fa fa >ffffffff8852de00: 00 00 fa fa fa fa fa fa 00 00 fa fa fa fa fa fa ^ ffffffff8852de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8852df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================