================================================================== BUG: KASAN: slab-out-of-bounds in dump_ipv6_mac_header net/netfilter/nf_log_syslog.c:891 [inline] BUG: KASAN: slab-out-of-bounds in nf_log_ip6_packet+0x848/0x960 net/netfilter/nf_log_syslog.c:930 Read of size 1 at addr ffff88805e714fff by task kworker/1:17/5659 CPU: 1 PID: 5659 Comm: kworker/1:17 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 Allocated by task 4280: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:612 [inline] kzalloc include/linux/slab.h:738 [inline] ieee802_11_parse_elems_crc+0xb3/0x1090 net/mac80211/util.c:1478 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2243 [inline] ieee80211_bss_info_update+0x74d/0xa80 net/mac80211/scan.c:212 ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline] ieee80211_ibss_rx_queued_mgmt+0x1763/0x2b50 net/mac80211/ibss.c:1643 ieee80211_iface_process_skb net/mac80211/iface.c:1467 [inline] ieee80211_iface_work+0x714/0xc50 net/mac80211/iface.c:1521 cfg80211_wiphy_work+0x224/0x260 net/wireless/core.c:433 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 Freed by task 4280: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kfree+0xef/0x2a0 mm/slub.c:4564 ieee80211_bss_info_update+0x842/0xa80 net/mac80211/scan.c:232 ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline] ieee80211_ibss_rx_queued_mgmt+0x1763/0x2b50 net/mac80211/ibss.c:1643 ieee80211_iface_process_skb net/mac80211/iface.c:1467 [inline] ieee80211_iface_work+0x714/0xc50 net/mac80211/iface.c:1521 cfg80211_wiphy_work+0x224/0x260 net/wireless/core.c:433 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 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 kvfree_call_rcu+0x105/0x7f0 kernel/rcu/tree.c:3600 cgroup_migrate_finish+0x19f/0x370 kernel/cgroup/cgroup.c:2694 cgroup_attach_task+0x59e/0x830 kernel/cgroup/cgroup.c:2895 cgroup_attach_task_all+0xb0/0x140 kernel/cgroup/cgroup-v1.c:74 kvm_vm_worker_thread+0xc8/0x260 virt/kvm/kvm_main.c:5798 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 object at ffff88805e714800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 1023 bytes to the right of 1024-byte region [ffff88805e714800, ffff88805e714c00) The buggy address belongs to the page: page:ffffea000179c400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e710 head:ffffea000179c400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888017841dc0 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 155, ts 62439511973, free_ts 62427661688 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 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] __kmalloc_node_track_caller+0x13d/0x3a0 mm/slub.c:4963 kmalloc_reserve net/core/skbuff.c:356 [inline] pskb_expand_head+0x128/0x1100 net/core/skbuff.c:1714 __skb_cow include/linux/skbuff.h:3406 [inline] skb_cow_head include/linux/skbuff.h:3440 [inline] batadv_skb_head_push+0x162/0x1f0 net/batman-adv/soft-interface.c:73 batadv_send_skb_packet+0xf7/0x580 net/batman-adv/send.c:86 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:396 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:424 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x657/0x800 net/batman-adv/bat_iv_ogm.c:1793 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 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 free_slab mm/slub.c:2020 [inline] discard_slab mm/slub.c:2026 [inline] __unfreeze_partials+0x188/0x1e0 mm/slub.c:2512 put_cpu_partial+0x12d/0x190 mm/slub.c:2592 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238 getname_flags+0xb7/0x4f0 fs/namei.c:138 user_path_at_empty+0x2a/0x190 fs/namei.c:2933 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1786 [inline] __do_sys_umount fs/namespace.c:1794 [inline] __se_sys_umount fs/namespace.c:1792 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1792 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: ffff88805e714e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805e714f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805e714f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805e715000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805e715080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================