================================================================== BUG: KASAN: slab-use-after-free in flow_block_cb_is_busy net/core/flow_offload.c:326 [inline] BUG: KASAN: slab-use-after-free in flow_block_cb_setup_simple+0x1ca/0x750 net/core/flow_offload.c:351 Read of size 8 at addr ffff888037e74020 by task syz.1.6785/27969 CPU: 0 UID: 0 PID: 27969 Comm: syz.1.6785 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 flow_block_cb_is_busy net/core/flow_offload.c:326 [inline] flow_block_cb_setup_simple+0x1ca/0x750 net/core/flow_offload.c:351 nft_block_offload_cmd net/netfilter/nf_tables_offload.c:397 [inline] nft_chain_offload_cmd+0x2b1/0x650 net/netfilter/nf_tables_offload.c:451 nft_flow_block_chain net/netfilter/nf_tables_offload.c:471 [inline] nft_flow_offload_chain net/netfilter/nf_tables_offload.c:513 [inline] nft_flow_rule_offload_commit+0x8c9/0x1d40 net/netfilter/nf_tables_offload.c:584 nf_tables_commit+0x1165/0xad60 net/netfilter/nf_tables_api.c:11040 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:574 [inline] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:647 [inline] nfnetlink_rcv+0x1caf/0x28c0 net/netfilter/nfnetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fba3e1a94d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fba3c3f6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fba3e425fa0 RCX: 00007fba3e1a94d9 RDX: 0000000000000000 RSI: 0000200000000e00 RDI: 0000000000000006 RBP: 00007fba3e23804e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fba3e426038 R14: 00007fba3e425fa0 R15: 00007ffe50119b98 Allocated by task 27966: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_node_track_caller_noprof+0x4af/0x720 mm/slub.c:5662 kmalloc_reserve net/core/skbuff.c:638 [inline] __alloc_skb+0x2c1/0x7a0 net/core/skbuff.c:716 alloc_skb include/linux/skbuff.h:1390 [inline] nlmsg_new include/net/netlink.h:1055 [inline] nf_tables_table_notify+0xa1/0x490 net/netfilter/nf_tables_api.c:1265 nf_tables_commit+0x307c/0xad60 net/netfilter/nf_tables_api.c:11097 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:574 [inline] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:647 [inline] nfnetlink_rcv+0x1caf/0x28c0 net/netfilter/nfnetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 27966: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 skb_release_all net/core/skbuff.c:1188 [inline] __kfree_skb+0x5d/0x210 net/core/skbuff.c:1202 kfree_skb_reason include/linux/skbuff.h:1329 [inline] kfree_skb include/linux/skbuff.h:1338 [inline] nft_commit_notify net/netfilter/nf_tables_api.c:10815 [inline] nf_tables_commit+0x9844/0xad60 net/netfilter/nf_tables_api.c:11259 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:574 [inline] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:647 [inline] nfnetlink_rcv+0x1caf/0x28c0 net/netfilter/nfnetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888037e74000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 32 bytes inside of freed 8192-byte region [ffff888037e74000, ffff888037e76000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37e70 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff2c280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813ff2c280 dead000000000100 dead000000000122 head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5650, tgid 5650 (kworker/u9:4), ts 92895799455 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856 prep_new_page mm/page_alloc.c:1864 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5444 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] __hci_conn_add+0x447/0x1dd0 net/bluetooth/hci_conn.c:1060 le_conn_complete_evt+0x8e2/0x1780 net/bluetooth/hci_event.c:5918 hci_le_conn_complete_evt+0x187/0x470 net/bluetooth/hci_event.c:6069 hci_event_func net/bluetooth/hci_event.c:8036 [inline] hci_event_packet+0x67a/0xf10 net/bluetooth/hci_event.c:8090 hci_rx_work+0x2b4/0x1110 net/bluetooth/hci_core.c:4124 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 page last free pid 5621 tgid 5621 ts 89626672000 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] __free_frozen_pages+0xc97/0xd90 mm/page_alloc.c:2954 __folio_put+0x4b3/0x590 mm/folio.c:106 folio_put include/linux/mm.h:2301 [inline] put_page include/linux/mm.h:2370 [inline] netmem_dec_ref include/net/netmem.h:444 [inline] skb_netmem_unref include/linux/skbuff_ref.h:64 [inline] skb_release_data+0x668/0xa30 net/core/skbuff.c:1117 skb_release_all net/core/skbuff.c:1188 [inline] __kfree_skb+0x5d/0x210 net/core/skbuff.c:1202 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3725 [inline] tcp_ack+0x2bbd/0x8500 net/ipv4/tcp_input.c:4427 tcp_rcv_established+0x1506/0x2910 net/ipv4/tcp_input.c:6641 tcp_v4_do_rcv+0x727/0x13b0 net/ipv4/tcp_ipv4.c:1859 sk_backlog_rcv include/net/sock.h:1196 [inline] __release_sock+0x256/0x390 net/core/sock.c:3341 __sk_flush_backlog+0x36/0xc0 net/core/sock.c:3364 sk_flush_backlog include/net/sock.h:1257 [inline] tcp_sendmsg_locked+0x41e6/0x53c0 net/ipv4/tcp.c:1263 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1462 sock_sendmsg_nosec+0x10f/0x190 net/socket.c:801 __sock_sendmsg net/socket.c:818 [inline] sock_write_iter+0x2de/0x3e0 net/socket.c:1269 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 Memory state around the buggy address: ffff888037e73f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888037e73f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888037e74000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888037e74080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888037e74100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================