================================================================== BUG: KASAN: use-after-free in skb_network_header include/linux/skbuff.h:2925 [inline] BUG: KASAN: use-after-free in ipv6_hdr include/linux/ipv6.h:101 [inline] BUG: KASAN: use-after-free in nf_nat_ipv6_in+0x13d/0x2b0 net/netfilter/nf_nat_proto.c:949 Read of size 8 at addr ffff88807c83e5d0 by task syz.3.808/6867 CPU: 1 PID: 6867 Comm: syz.3.808 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 skb_network_header include/linux/skbuff.h:2925 [inline] ipv6_hdr include/linux/ipv6.h:101 [inline] nf_nat_ipv6_in+0x13d/0x2b0 net/netfilter/nf_nat_proto.c:949 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow net/netfilter/core.c:614 [inline] nf_hook_slow_list+0x29f/0x600 net/netfilter/core.c:653 NF_HOOK_LIST include/linux/netfilter.h:350 [inline] ip6_sublist_rcv+0xffe/0x1110 net/ipv6/ip6_input.c:318 ipv6_list_rcv+0x3ec/0x440 net/ipv6/ip6_input.c:355 __netif_receive_skb_list_ptype net/core/dev.c:5681 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5729 __netif_receive_skb_list net/core/dev.c:5781 [inline] netif_receive_skb_list_internal+0x93f/0xca0 net/core/dev.c:5872 netif_receive_skb_list+0x51/0x4e0 net/core/dev.c:5924 xdp_recv_frames net/bpf/test_run.c:256 [inline] xdp_test_run_batch net/bpf/test_run.c:334 [inline] bpf_test_run_xdp_live+0x17ac/0x1a90 net/bpf/test_run.c:362 bpf_prog_test_run_xdp+0x757/0xf80 net/bpf/test_run.c:1457 bpf_prog_test_run+0x31c/0x390 kernel/bpf/syscall.c:3748 __sys_bpf+0x62b/0x780 kernel/bpf/syscall.c:5112 __do_sys_bpf kernel/bpf/syscall.c:5198 [inline] __se_sys_bpf kernel/bpf/syscall.c:5196 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5196 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd69a59fb19 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:00007fd69b42c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fd69a825fa0 RCX: 00007fd69a59fb19 RDX: 0000000000000048 RSI: 0000200000000600 RDI: 000000000000000a RBP: 00007fd69a637b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd69a826038 R14: 00007fd69a825fa0 R15: 00007ffca131f348 Allocated by task 6867: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:742 kmem_cache_alloc_bulk+0x3ba/0x4e0 mm/slub.c:3887 xdp_recv_frames net/bpf/test_run.c:237 [inline] xdp_test_run_batch net/bpf/test_run.c:334 [inline] bpf_test_run_xdp_live+0x160d/0x1a90 net/bpf/test_run.c:362 bpf_prog_test_run_xdp+0x757/0xf80 net/bpf/test_run.c:1457 bpf_prog_test_run+0x31c/0x390 kernel/bpf/syscall.c:3748 __sys_bpf+0x62b/0x780 kernel/bpf/syscall.c:5112 __do_sys_bpf kernel/bpf/syscall.c:5198 [inline] __se_sys_bpf kernel/bpf/syscall.c:5196 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5196 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 6867: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] kmem_cache_free+0xf7/0x2a0 mm/slub.c:3716 NF_DROP_REASON include/linux/netfilter.h:29 [inline] nft_do_chain+0x15cc/0x1770 net/netfilter/nf_tables_core.c:-1 nft_nat_do_chain+0x25c/0x340 net/netfilter/nft_chain_nat.c:32 nf_nat_inet_fn+0x6ea/0xb30 net/netfilter/nf_nat_core.c:752 nf_nat_ipv6_fn+0x223/0x2e0 net/netfilter/nf_nat_proto.c:937 nf_nat_ipv6_in+0xed/0x2b0 net/netfilter/nf_nat_proto.c:947 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow net/netfilter/core.c:614 [inline] nf_hook_slow_list+0x29f/0x600 net/netfilter/core.c:653 NF_HOOK_LIST include/linux/netfilter.h:350 [inline] ip6_sublist_rcv+0xffe/0x1110 net/ipv6/ip6_input.c:318 ipv6_list_rcv+0x3ec/0x440 net/ipv6/ip6_input.c:355 __netif_receive_skb_list_ptype net/core/dev.c:5681 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5729 __netif_receive_skb_list net/core/dev.c:5781 [inline] netif_receive_skb_list_internal+0x93f/0xca0 net/core/dev.c:5872 netif_receive_skb_list+0x51/0x4e0 net/core/dev.c:5924 xdp_recv_frames net/bpf/test_run.c:256 [inline] xdp_test_run_batch net/bpf/test_run.c:334 [inline] bpf_test_run_xdp_live+0x17ac/0x1a90 net/bpf/test_run.c:362 bpf_prog_test_run_xdp+0x757/0xf80 net/bpf/test_run.c:1457 bpf_prog_test_run+0x31c/0x390 kernel/bpf/syscall.c:3748 __sys_bpf+0x62b/0x780 kernel/bpf/syscall.c:5112 __do_sys_bpf kernel/bpf/syscall.c:5198 [inline] __se_sys_bpf kernel/bpf/syscall.c:5196 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5196 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807c83e500 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 208 bytes inside of 240-byte region [ffff88807c83e500, ffff88807c83e5f0) The buggy address belongs to the physical page: page:ffffea0001f20f80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c83e flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff88814225d500 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 6846, tgid 6845 (syz.2.802), ts 249660630249, free_ts 243643495908 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1805 allocate_slab mm/slub.c:1950 [inline] new_slab+0x87/0x2d0 mm/slub.c:2003 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3161 __slab_alloc mm/slub.c:3247 [inline] slab_alloc_node mm/slub.c:3332 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x111/0x2f0 mm/slub.c:3390 skb_clone+0x1e7/0x370 net/core/skbuff.c:1663 ip_mc_output+0x228/0x5d0 net/ipv4/ip_output.c:392 dst_output include/net/dst.h:456 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0x129/0x1c0 net/ipv4/ip_output.c:1616 udp_send_skb+0xa4f/0x13f0 net/ipv4/udp.c:1058 udp_sendmsg+0x1b46/0x23d0 net/ipv4/udp.c:1346 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5ed/0x9a0 net/socket.c:2519 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2573 __sys_sendmmsg+0x2c3/0x510 net/socket.c:2659 __do_sys_sendmmsg net/socket.c:2688 [inline] __se_sys_sendmmsg net/socket.c:2685 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2685 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 kasan_depopulate_vmalloc_pte+0x67/0x80 mm/kasan/shadow.c:456 apply_to_pte_range mm/memory.c:2660 [inline] apply_to_pmd_range mm/memory.c:2704 [inline] apply_to_pud_range mm/memory.c:2740 [inline] apply_to_p4d_range mm/memory.c:2776 [inline] __apply_to_page_range+0x98d/0xd10 mm/memory.c:2812 kasan_release_vmalloc+0x93/0xb0 mm/kasan/shadow.c:573 __purge_vmap_area_lazy+0xf72/0x1920 mm/vmalloc.c:1839 drain_vmap_area_work+0x3c/0xd0 mm/vmalloc.c:1868 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88807c83e480: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88807c83e500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807c83e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ^ ffff88807c83e600: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88807c83e680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================