================================================================== BUG: KASAN: slab-use-after-free in read_pnet include/net/net_namespace.h:414 [inline] BUG: KASAN: slab-use-after-free in dev_net include/linux/netdevice.h:2722 [inline] BUG: KASAN: slab-use-after-free in nf_hook_entry_head+0x1f1/0x2c0 net/netfilter/core.c:319 Read of size 8 at addr ffff888042ed8108 by task kworker/u8:6/2986 CPU: 0 UID: 0 PID: 2986 Comm: kworker/u8:6 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: netns cleanup_net Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 read_pnet include/net/net_namespace.h:414 [inline] dev_net include/linux/netdevice.h:2722 [inline] nf_hook_entry_head+0x1f1/0x2c0 net/netfilter/core.c:319 __nf_unregister_net_hook+0x74/0x700 net/netfilter/core.c:491 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:8979 [inline] __nft_unregister_flowtable_net_hooks net/netfilter/nf_tables_api.c:8994 [inline] __nft_release_hook+0x180/0x350 net/netfilter/nf_tables_api.c:11987 __nft_release_hooks net/netfilter/nf_tables_api.c:12001 [inline] nf_tables_pre_exit_net+0xa7/0x110 net/netfilter/nf_tables_api.c:12152 ops_pre_exit_list net/core/net_namespace.c:161 [inline] ops_undo_list+0x184/0x990 net/core/net_namespace.c:234 cleanup_net+0x4d8/0x820 net/core/net_namespace.c:695 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 18762: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4947 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_node_noprof+0x433/0x710 mm/slub.c:5298 kmalloc_reserve+0xbd/0x290 net/core/skbuff.c:579 __alloc_skb+0x142/0x2d0 net/core/skbuff.c:670 __pskb_copy_fclone+0xa8/0xfb0 net/core/skbuff.c:2164 __pskb_copy include/linux/skbuff.h:1447 [inline] tipc_msg_reassemble+0x10b/0x3b0 net/tipc/msg.c:775 tipc_mcast_xmit+0x1f0/0x1850 net/tipc/bcast.c:392 tipc_send_group_bcast+0x79e/0xa70 net/tipc/socket.c:1130 __tipc_sendmsg+0x2d7/0x2960 net/tipc/socket.c:1432 tipc_sendmsg+0x55/0x70 net/tipc/socket.c:1399 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:742 ____sys_sendmsg+0x52d/0x830 net/socket.c:2630 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2684 __sys_sendmmsg+0x227/0x430 net/socket.c:2773 __do_sys_sendmmsg net/socket.c:2800 [inline] __se_sys_sendmmsg net/socket.c:2797 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2797 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 18762: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 __kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2515 [inline] slab_free mm/slub.c:6574 [inline] kmem_cache_free+0x19b/0x690 mm/slub.c:6684 skb_release_data+0x62d/0x7c0 net/core/skbuff.c:1087 skb_release_all net/core/skbuff.c:1152 [inline] __kfree_skb net/core/skbuff.c:1166 [inline] sk_skb_reason_drop+0x127/0x170 net/core/skbuff.c:1204 kfree_skb_reason include/linux/skbuff.h:1322 [inline] kfree_skb include/linux/skbuff.h:1331 [inline] tipc_sk_mcast_rcv+0xb79/0xeb0 net/tipc/socket.c:1262 tipc_mcast_xmit+0x123a/0x1850 net/tipc/bcast.c:424 tipc_send_group_bcast+0x79e/0xa70 net/tipc/socket.c:1130 __tipc_sendmsg+0x2d7/0x2960 net/tipc/socket.c:1432 tipc_sendmsg+0x55/0x70 net/tipc/socket.c:1399 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:742 ____sys_sendmsg+0x52d/0x830 net/socket.c:2630 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2684 __sys_sendmmsg+0x227/0x430 net/socket.c:2773 __do_sys_sendmmsg net/socket.c:2800 [inline] __se_sys_sendmmsg net/socket.c:2797 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2797 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888042ed8000 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 264 bytes inside of freed 704-byte region [ffff888042ed8000, ffff888042ed82c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42ed8 head: order:2 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 ffff8881412d8c80 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff8881412d8c80 dead000000000122 0000000000000000 head: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea00010bb601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 18762, tgid 18751 (syz.2.3327), ts 511339521705, free_ts 510173336098 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3031 [inline] allocate_slab+0x96/0x3a0 mm/slub.c:3204 new_slab mm/slub.c:3258 [inline] ___slab_alloc+0xe94/0x18a0 mm/slub.c:4628 __slab_alloc+0x65/0x100 mm/slub.c:4747 __slab_alloc_node mm/slub.c:4823 [inline] slab_alloc_node mm/slub.c:5234 [inline] kmem_cache_alloc_node_noprof+0x4c5/0x710 mm/slub.c:5298 kmalloc_reserve+0xbd/0x290 net/core/skbuff.c:579 __alloc_skb+0x142/0x2d0 net/core/skbuff.c:670 __pskb_copy_fclone+0xa8/0xfb0 net/core/skbuff.c:2164 __pskb_copy include/linux/skbuff.h:1447 [inline] tipc_msg_reassemble+0x10b/0x3b0 net/tipc/msg.c:775 tipc_mcast_xmit+0x1f0/0x1850 net/tipc/bcast.c:392 tipc_send_group_bcast+0x79e/0xa70 net/tipc/socket.c:1130 __tipc_sendmsg+0x2d7/0x2960 net/tipc/socket.c:1432 tipc_sendmsg+0x55/0x70 net/tipc/socket.c:1399 page last free pid 3519 tgid 3519 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2906 __slab_free+0x2e7/0x390 mm/slub.c:5924 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4947 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_lru_noprof+0x35d/0x6d0 mm/slub.c:5265 sock_alloc_inode+0x28/0xc0 net/socket.c:322 alloc_inode+0x67/0x1b0 fs/inode.c:346 new_inode_pseudo include/linux/fs.h:3395 [inline] sock_alloc net/socket.c:637 [inline] __sock_create+0x12d/0x9f0 net/socket.c:1569 rds_tcp_conn_path_connect+0x282/0x680 net/rds/tcp_connect.c:-1 rds_connect_worker+0x1d8/0x290 net/rds/threads.c:176 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888042ed8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888042ed8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888042ed8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888042ed8180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888042ed8200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================