audit: type=1400 audit(1598257901.099:8): avc: denied { execmem } for pid=6465 comm="syz-executor850" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xcc/0xef lib/list_debug.c:42 Read of size 8 at addr ffff8880a753d788 by task syz-executor850/6494 CPU: 1 PID: 6494 Comm: syz-executor850 Not tainted 4.19.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __list_del_entry_valid+0xcc/0xef lib/list_debug.c:42 __list_del_entry include/linux/list.h:117 [inline] list_del_rcu include/linux/rculist.h:130 [inline] __nf_tables_abort+0x1fde/0x2ca0 net/netfilter/nf_tables_api.c:6661 nf_tables_abort+0x13/0x30 net/netfilter/nf_tables_api.c:6771 nfnetlink_rcv_batch+0xb66/0x1df0 net/netfilter/nfnetlink.c:491 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:540 [inline] nfnetlink_rcv+0x3b5/0x41b net/netfilter/nfnetlink.c:558 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x446b29 Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 db 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa2593f1d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446b29 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c R13: 000000200a000000 R14: 0000000000006c1e R15: 0000001000000014 Allocated by task 6494: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] nf_tables_newtable+0xad9/0x1620 net/netfilter/nf_tables_api.c:882 nfnetlink_rcv_batch+0x10d5/0x1df0 net/netfilter/nfnetlink.c:430 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:540 [inline] nfnetlink_rcv+0x3b5/0x41b net/netfilter/nfnetlink.c:558 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6485: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 nf_tables_table_destroy+0xee/0x130 net/netfilter/nf_tables_api.c:1061 nft_commit_release net/netfilter/nf_tables_api.c:6278 [inline] nf_tables_commit_release net/netfilter/nf_tables_api.c:6318 [inline] nf_tables_commit+0x2aba/0x57e6 net/netfilter/nf_tables_api.c:6608 nfnetlink_rcv_batch+0xe22/0x1df0 net/netfilter/nfnetlink.c:482 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:540 [inline] nfnetlink_rcv+0x3b5/0x41b net/netfilter/nfnetlink.c:558 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a753d780 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 8 bytes inside of 512-byte region [ffff8880a753d780, ffff8880a753d980) The buggy address belongs to the page: page:ffffea00029d4f40 count:1 mapcount:0 mapping:ffff88812c39c940 index:0xffff8880a753da00 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea0002971548 ffffea0002a333c8 ffff88812c39c940 raw: ffff8880a753da00 ffff8880a753d000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a753d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a753d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a753d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a753d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a753d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================