================================================================== BUG: KASAN: use-after-free in dump_ipv6_mac_header net/netfilter/nf_log_syslog.c:891 [inline] BUG: KASAN: use-after-free in nf_log_ip6_packet+0x848/0x960 net/netfilter/nf_log_syslog.c:930 Read of size 1 at addr ffff88807be3ffff by task kworker/1:1/26 CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: mld mld_ifc_work Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 dump_ipv6_mac_header net/netfilter/nf_log_syslog.c:891 [inline] nf_log_ip6_packet+0x848/0x960 net/netfilter/nf_log_syslog.c:930 nf_log_packet+0x446/0x5f0 net/netfilter/nf_log.c:229 nft_log_eval+0x2c0/0x3b0 net/netfilter/nft_log.c:60 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x491/0x14d0 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x25c/0x340 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook+0x205/0x360 include/linux/netfilter.h:257 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip6_output+0x273/0x3b0 net/ipv6/ip6_output.c:236 dst_output include/net/dst.h:452 [inline] NF_HOOK+0x165/0x460 include/linux/netfilter.h:302 mld_sendpack+0x6ee/0xc40 net/ipv6/mcast.c:1853 mld_send_cr net/ipv6/mcast.c:2152 [inline] mld_ifc_work+0x843/0xd60 net/ipv6/mcast.c:2688 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the page: page:ffffea0001ef8fc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x100 pfn:0x7be3f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 ffffea0001ef8f88 0000000000000000 raw: 0000000000000100 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1528c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5208, ts 91078333249, free_ts 91143242444 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 skb_page_frag_refill+0x225/0x4c0 net/core/sock.c:2666 sk_page_frag_refill+0x4a/0x200 net/core/sock.c:2686 tcp_sendmsg_locked+0xf44/0x3330 net/ipv4/tcp.c:1345 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1460 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x46d/0x620 net/socket.c:2073 __do_sys_sendto net/socket.c:2085 [inline] __se_sys_sendto net/socket.c:2081 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2081 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 put_page include/linux/mm.h:1258 [inline] __skb_frag_unref include/linux/skbuff.h:3254 [inline] skb_release_data+0x35c/0x830 net/core/skbuff.c:672 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:756 sk_eat_skb include/net/sock.h:2793 [inline] tcp_recvmsg_locked+0x143d/0x2690 net/ipv4/tcp.c:2520 tcp_recvmsg+0x22a/0x760 net/ipv4/tcp.c:2566 inet_recvmsg+0x146/0x200 net/ipv4/af_inet.c:868 sock_recvmsg_nosec net/socket.c:969 [inline] sock_recvmsg net/socket.c:987 [inline] __sys_recvfrom+0x396/0x510 net/socket.c:2130 __do_sys_recvfrom net/socket.c:2148 [inline] __se_sys_recvfrom net/socket.c:2144 [inline] __x64_sys_recvfrom+0xda/0xf0 net/socket.c:2144 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88807be3fe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807be3ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88807be3ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807be40000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807be40080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================