================================================================== BUG: KASAN: use-after-free in ieee80211_monitor_select_queue+0x20c/0x210 net/mac80211/iface.c:909 Read of size 2 at addr ffff0000f2c94dfb by task syz.3.387/5755 CPU: 0 PID: 5755 Comm: syz.3.387 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/26/2026 Call trace: dump_backtrace+0x1c0/0x1ec arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __asan_report_load2_noabort+0x2c/0x38 mm/kasan/report_generic.c:349 ieee80211_monitor_select_queue+0x20c/0x210 net/mac80211/iface.c:909 netdev_core_pick_tx+0x130/0x320 net/core/dev.c:4233 __dev_queue_xmit+0x738/0x3118 net/core/dev.c:4319 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3051 packet_snd net/packet/af_packet.c:3127 [inline] packet_sendmsg+0x2f9c/0x3fd0 net/packet/af_packet.c:3158 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5c8/0x938 net/socket.c:2518 ___sys_sendmsg net/socket.c:2572 [inline] __sys_sendmsg+0x288/0x374 net/socket.c:2601 __do_sys_sendmsg net/socket.c:2610 [inline] __se_sys_sendmsg net/socket.c:2608 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2608 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 4811: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:563 [inline] batadv_forw_packet_alloc+0x19c/0x3b0 net/batman-adv/send.c:519 batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:565 [inline] batadv_iv_ogm_queue_add+0x6f4/0xb74 net/batman-adv/bat_iv_ogm.c:673 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:852 [inline] batadv_iv_ogm_schedule+0x994/0xd48 net/batman-adv/bat_iv_ogm.c:871 batadv_iv_send_outstanding_bat_ogm_packet+0x6f8/0x858 net/batman-adv/bat_iv_ogm.c:1715 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Freed by task 4811: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:245 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xbc/0x218 mm/slub.c:3700 kfree+0xd0/0x1a8 mm/slab_common.c:988 batadv_forw_packet_free+0x1c4/0x25c net/batman-adv/send.c:477 batadv_iv_send_outstanding_bat_ogm_packet+0x720/0x858 net/batman-adv/bat_iv_ogm.c:1721 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 insert_work+0x64/0x37c kernel/workqueue.c:1361 __queue_work+0xcbc/0x1234 kernel/workqueue.c:1520 delayed_work_timer_fn+0x74/0x90 kernel/workqueue.c:1646 call_timer_fn+0x1b8/0x95c kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1747 [inline] __run_timers+0x4d0/0x6f0 kernel/time/timer.c:2023 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:2036 handle_softirqs+0x318/0xc60 kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x100/0x94c kernel/rcu/tree.c:2849 fib6_info_release include/net/ip6_fib.h:340 [inline] ip6_route_info_create+0x81c/0xf78 net/ipv6/route.c:3875 ip6_route_add+0x34/0x154 net/ipv6/route.c:3889 rt6_add_dflt_router+0x148/0x27c net/ipv6/route.c:4421 ndisc_router_discovery+0x178c/0x2be0 net/ipv6/ndisc.c:1395 ndisc_rcv+0x3d8/0x5e4 net/ipv6/ndisc.c:1864 icmpv6_rcv+0xcb4/0x1408 net/ipv6/icmp.c:980 ip6_protocol_deliver_rcu+0x928/0x11cc net/ipv6/ip6_input.c:438 ip6_input_finish+0x164/0x294 net/ipv6/ip6_input.c:483 NF_HOOK+0x2dc/0x36c include/linux/netfilter.h:302 ip6_input+0x90/0xa8 net/ipv6/ip6_input.c:492 dst_input include/net/dst.h:463 [inline] ip6_sublist_rcv_finish net/ipv6/ip6_input.c:88 [inline] ip6_list_rcv_finish net/ipv6/ip6_input.c:146 [inline] ip6_sublist_rcv+0xc28/0xf08 net/ipv6/ip6_input.c:320 ipv6_list_rcv+0x388/0x3e4 net/ipv6/ip6_input.c:355 __netif_receive_skb_list_ptype net/core/dev.c:5650 [inline] __netif_receive_skb_list_core+0x4e8/0x67c net/core/dev.c:5698 __netif_receive_skb_list net/core/dev.c:5750 [inline] netif_receive_skb_list_internal+0x6f0/0x998 net/core/dev.c:5841 netif_receive_skb_list+0x64/0x658 net/core/dev.c:5893 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+0x1360/0x15d0 net/bpf/test_run.c:362 bpf_prog_test_run_xdp+0x5fc/0xc88 net/bpf/test_run.c:1412 bpf_prog_test_run+0x2dc/0x360 kernel/bpf/syscall.c:3695 __sys_bpf+0x504/0x660 kernel/bpf/syscall.c:5049 __do_sys_bpf kernel/bpf/syscall.c:5135 [inline] __se_sys_bpf kernel/bpf/syscall.c:5133 [inline] __arm64_sys_bpf+0x80/0x98 kernel/bpf/syscall.c:5133 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff0000f2c94c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 507 bytes inside of 512-byte region [ffff0000f2c94c00, ffff0000f2c94e00) The buggy address belongs to the physical page: page:000000003103ace4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x132c94 head:000000003103ace4 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003cb2600 dead000000000002 ffff0000c0002600 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f2c94c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000f2c94d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000f2c94d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000f2c94e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000f2c94e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================