syzbot


KASAN: use-after-free Read in __nf_tables_abort

Status: upstream: reported C repro on 2020/01/27 08:32
Reported-by: syzbot+b611d325af55b7843ffc@syzkaller.appspotmail.com
First crash: 1544d, last: 437d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in __nf_tables_abort netfilter C done 3 1549d 1551d 15/26 fixed on 2020/02/18 14:31
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2022/06/09 17:15 12m bisect fix linux-4.19.y error job log (0)
2021/05/26 06:45 30m bisect fix linux-4.19.y job log (0) log
2021/04/01 18:57 23m bisect fix linux-4.19.y job log (0) log
2020/12/19 21:42 24m bisect fix linux-4.19.y job log (0) log
2020/11/19 20:48 24m bisect fix linux-4.19.y job log (0) log
2020/09/23 08:33 24m bisect fix linux-4.19.y job log (0) log
2020/07/29 00:14 31m bisect fix linux-4.19.y job log (0) log
2020/05/28 07:52 25m bisect fix linux-4.19.y job log (0) log
2020/04/03 20:31 25m bisect fix linux-4.19.y job log (0) log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in __list_del_entry_valid+0xcc/0xf0 lib/list_debug.c:42
Read of size 8 at addr ffff88809c2e2cc8 by task syz-executor148/8157

CPU: 1 PID: 8157 Comm: syz-executor148 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 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/0xf0 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:6660
 nf_tables_abort+0x13/0x30 net/netfilter/nf_tables_api.c:6770
 nfnetlink_rcv_batch+0xb66/0x1df0 net/netfilter/nfnetlink.c:496
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:545 [inline]
 nfnetlink_rcv+0x3b5/0x420 net/netfilter/nfnetlink.c:563
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f134587cb79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007f134582e318 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f13459043e8 RCX: 00007f134587cb79
RDX: 0000000000000000 RSI: 000000002000c2c0 RDI: 0000000000000003
RBP: 00007f13459043e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f13459043ec
R13: 00007ffe784a121f R14: 00007f134582e400 R15: 0000000000022000

Allocated by task 8157:
 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:883
 nfnetlink_rcv_batch+0x10d5/0x1df0 net/netfilter/nfnetlink.c:435
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:545 [inline]
 nfnetlink_rcv+0x3b5/0x420 net/netfilter/nfnetlink.c:563
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 8141:
 __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:1062
 nft_commit_release net/netfilter/nf_tables_api.c:6277 [inline]
 nf_tables_commit_release net/netfilter/nf_tables_api.c:6317 [inline]
 nf_tables_commit+0x2aba/0x57f0 net/netfilter/nf_tables_api.c:6607
 nfnetlink_rcv_batch+0xe22/0x1df0 net/netfilter/nfnetlink.c:487
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:545 [inline]
 nfnetlink_rcv+0x3b5/0x420 net/netfilter/nfnetlink.c:563
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 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 ffff88809c2e2cc0
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
 512-byte region [ffff88809c2e2cc0, ffff88809c2e2ec0)
The buggy address belongs to the page:
page:ffffea000270b880 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea00028cc7c8 ffffea0002949508 ffff88813bff0940
raw: 0000000000000000 ffff88809c2e2040 0000000100000006 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff88809c2e2b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88809c2e2c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff88809c2e2c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
                                              ^
 ffff88809c2e2d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88809c2e2d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (116):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/20 14:00 linux-4.19.y 3f8a27f9e27b dd15ff29 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/01 21:39 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/06/17 03:57 linux-4.19.y 3f8a27f9e27b 1719ee24 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2020/08/24 08:33 linux-4.19.y d18b78abc0c6 cef5ae68 .config console log report syz C ci2-linux-4-19
2020/08/23 20:48 linux-4.19.y d18b78abc0c6 a6d5f3ad .config console log report syz C ci2-linux-4-19
2020/08/15 10:46 linux-4.19.y c14d30dc9987 5ce13532 .config console log report syz C ci2-linux-4-19
2020/01/27 08:31 linux-4.19.y d183c8e2647a dd56146d .config console log report syz C ci2-linux-4-19
2023/02/07 03:45 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2023/01/26 16:27 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2023/01/24 16:19 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2023/01/20 13:33 linux-4.19.y 3f8a27f9e27b dd15ff29 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2023/01/04 06:55 linux-4.19.y 3f8a27f9e27b f0036e18 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/12/13 23:43 linux-4.19.y 3f8a27f9e27b f6511626 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/12/08 10:07 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/12/05 12:41 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/19 07:34 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/17 11:11 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/13 03:50 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/12 15:53 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/10 16:50 linux-4.19.y 3f8a27f9e27b 3ead01ad .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/10 15:38 linux-4.19.y 3f8a27f9e27b 3ead01ad .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/11/06 14:39 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/25 17:46 linux-4.19.y 3f8a27f9e27b 45645420 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/20 11:25 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/17 21:31 linux-4.19.y 3f8a27f9e27b 94744d21 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/15 16:16 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/10/01 21:11 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/09/20 00:59 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/09/18 23:04 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/09/09 01:43 linux-4.19.y 3f8a27f9e27b f3027468 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/09/02 05:25 linux-4.19.y 3f8a27f9e27b a805568e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/08/29 04:09 linux-4.19.y 3f8a27f9e27b 07177916 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/08/20 18:53 linux-4.19.y 3f8a27f9e27b 26a13b38 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/08/01 19:02 linux-4.19.y 3f8a27f9e27b fef302b1 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/08/01 07:47 linux-4.19.y 3f8a27f9e27b fef302b1 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/07/10 22:29 linux-4.19.y 3f8a27f9e27b b5765a15 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/07/07 17:35 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/07/07 13:59 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/07/03 12:00 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/06/25 16:21 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/06/24 18:16 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/06/19 12:57 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/06/17 03:35 linux-4.19.y 3f8a27f9e27b 1719ee24 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/05/10 17:15 linux-4.19.y 3f8a27f9e27b 8b277b8e .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/05/01 01:19 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/04/26 21:38 linux-4.19.y 3f8a27f9e27b 1fa34c1b .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/04/12 20:13 linux-4.19.y 3f8a27f9e27b dacb3f1c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/04/07 17:58 linux-4.19.y 3f8a27f9e27b 53c67432 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/04/05 20:48 linux-4.19.y 3f8a27f9e27b 0127c10f .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/03/28 15:03 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/03/25 16:59 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/03/25 03:27 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2022/03/20 17:27 linux-4.19.y 3f8a27f9e27b e2d91b1d .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in __nf_tables_abort
2021/01/16 05:02 linux-4.19.y 675cc038067f 65a7a854 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.