================================================================== BUG: KASAN: use-after-free in read_pnet include/net/net_namespace.h:414 [inline] BUG: KASAN: use-after-free in dev_net include/linux/netdevice.h:2738 [inline] BUG: KASAN: use-after-free in nf_hook_entry_head+0x1f1/0x2c0 net/netfilter/core.c:319 Read of size 8 at addr ffff88805750c108 by task kworker/u8:14/17123 CPU: 1 UID: 0 PID: 17123 Comm: kworker/u8:14 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)} Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 Workqueue: netns cleanup_net Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 read_pnet include/net/net_namespace.h:414 [inline] dev_net include/linux/netdevice.h:2738 [inline] nf_hook_entry_head+0x1f1/0x2c0 net/netfilter/core.c:319 __nf_unregister_net_hook+0x74/0x6f0 net/netfilter/core.c:491 nft_unregister_flowtable_ops net/netfilter/nf_tables_api.c:9039 [inline] __nft_unregister_flowtable_net_hooks net/netfilter/nf_tables_api.c:9054 [inline] __nft_release_hook net/netfilter/nf_tables_api.c:12036 [inline] __nft_release_hooks net/netfilter/nf_tables_api.c:12050 [inline] nf_tables_pre_exit_net+0x64a/0x900 net/netfilter/nf_tables_api.c:12201 ops_pre_exit_list net/core/net_namespace.c:161 [inline] ops_undo_list+0x187/0x940 net/core/net_namespace.c:234 cleanup_net+0x4e5/0x7b0 net/core/net_namespace.c:696 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xaec/0x17a0 kernel/workqueue.c:3340 worker_thread+0xda6/0x1360 kernel/workqueue.c:3421 kthread+0x726/0x8b0 kernel/kthread.c:463 ret_from_fork+0x51b/0xa40 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805750dd40 pfn:0x5750c flags: 0x80000000000000(node=0|zone=1) page_type: f0(buddy) raw: 0080000000000000 ffffea0000e26108 ffffea0000d11e08 0000000000000000 raw: ffff88805750dd40 0000000000000002 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 19253, tgid 19252 (syz.3.4310), ts 1160667598364, free_ts 1184237022296 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x228/0x280 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5240 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3a0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xaf8/0x13d0 mm/slub.c:4656 __slab_alloc+0xc5/0x1f0 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_node_noprof+0x1ad/0x6d0 mm/slub.c:5315 kmalloc_reserve+0xbd/0x290 net/core/skbuff.c:586 __alloc_skb+0x204/0x390 net/core/skbuff.c:690 alloc_skb include/linux/skbuff.h:1383 [inline] alloc_skb_with_frags+0xca/0x890 net/core/skbuff.c:6715 sock_alloc_send_pskb+0x884/0x9a0 net/core/sock.c:2995 sock_alloc_send_skb include/net/sock.h:1885 [inline] __ip_append_data+0x2bc5/0x3f30 net/ipv4/ip_output.c:1127 ip_make_skb+0x250/0x470 net/ipv4/ip_output.c:1574 udp_sendmsg+0x19ec/0x2240 net/ipv4/udp.c:1479 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x875/0xac0 net/socket.c:2592 page last free pid 5854 tgid 5854 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xfd0/0x1160 mm/page_alloc.c:2973 __slab_free+0x2e6/0x330 mm/slub.c:6008 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __kmalloc_cache_noprof+0x188/0x6b0 mm/slub.c:5775 kmalloc_noprof include/linux/slab.h:957 [inline] usb_control_msg+0x73/0x3e0 drivers/usb/core/message.c:144 get_port_status drivers/usb/core/hub.c:607 [inline] hub_ext_port_status+0x116/0x820 drivers/usb/core/hub.c:624 hub_port_wait_reset drivers/usb/core/hub.c:-1 [inline] hub_port_reset+0x768/0x1820 drivers/usb/core/hub.c:3093 hub_port_init+0xf50/0x28c0 drivers/usb/core/hub.c:5056 hub_port_connect drivers/usb/core/hub.c:5496 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x25d3/0x4f60 drivers/usb/core/hub.c:5953 process_one_work kernel/workqueue.c:3257 [inline] process_scheduled_works+0xaec/0x17a0 kernel/workqueue.c:3340 worker_thread+0xda6/0x1360 kernel/workqueue.c:3421 kthread+0x726/0x8b0 kernel/kthread.c:463 ret_from_fork+0x51b/0xa40 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88805750c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805750c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805750c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805750c180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805750c200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================