================================================================== BUG: KASAN: use-after-free in ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:909 Read of size 2 at addr ffff88802ee52042 by task syz.7.2157/12944 CPU: 1 PID: 12944 Comm: syz.7.2157 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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 ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:909 netdev_core_pick_tx+0x118/0x340 net/core/dev.c:4245 __dev_queue_xmit+0xb19/0x37c0 net/core/dev.c:4331 packet_snd net/packet/af_packet.c:3127 [inline] packet_sendmsg+0x3bc3/0x4e60 net/packet/af_packet.c:3158 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5be/0x970 net/socket.c:2518 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2572 __sys_sendmsg net/socket.c:2601 [inline] __do_sys_sendmsg net/socket.c:2610 [inline] __se_sys_sendmsg+0x1bb/0x2a0 net/socket.c:2608 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:0x7fa870d9cdd9 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:00007fa86eff6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fa871015fa0 RCX: 00007fa870d9cdd9 RDX: 008bb3a301eb080b RSI: 0000200000000280 RDI: 0000000000000007 RBP: 00007fa870e32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa871016038 R14: 00007fa871015fa0 R15: 00007ffcb507d658 Allocated by task 12572: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1303 [inline] alloc_skb_with_frags+0xa7/0x710 net/core/skbuff.c:6164 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2755 sock_alloc_send_skb include/net/sock.h:1975 [inline] bt_skb_send_alloc include/net/bluetooth/bluetooth.h:484 [inline] bt_skb_sendmsg+0xd6/0x5f0 include/net/bluetooth/bluetooth.h:517 bt_skb_sendmmsg include/net/bluetooth/bluetooth.h:558 [inline] rfcomm_sock_sendmsg+0x2a0/0x430 net/bluetooth/rfcomm/sock.c:582 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] sock_write_iter+0x2d9/0x3e0 net/socket.c:1143 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x642/0xb10 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_writev+0x27b/0x480 fs/read_write.c:977 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 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 insert_work+0x54/0x3c0 kernel/workqueue.c:1361 __queue_work+0xba3/0xfb0 kernel/workqueue.c:1520 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1747 [inline] __run_timers+0x569/0x800 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x2a1/0x930 kernel/softirq.c:596 run_ksoftirqd+0xa4/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x64a/0xa40 kernel/smpboot.c:164 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x103/0x870 kernel/rcu/tree.c:3405 mld_clear_delrec+0x198/0x5d0 net/ipv6/mcast.c:824 ipv6_mc_destroy_dev+0x41/0x590 net/ipv6/mcast.c:2798 addrconf_ifdown+0x155f/0x1a50 net/ipv6/addrconf.c:3941 addrconf_notify+0x405/0xf40 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] unregister_netdevice_many_notify+0x10ac/0x19c0 net/core/dev.c:11023 unregister_netdevice_many net/core/dev.c:11077 [inline] default_device_exit_batch+0x9ea/0xa80 net/core/dev.c:11549 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x791/0xba0 net/core/net_namespace.c:640 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88802ee52000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 66 bytes inside of 512-byte region [ffff88802ee52000, ffff88802ee52200) The buggy address belongs to the physical page: page:ffffea0000bb9400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2ee50 head:ffffea0000bb9400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea00015c4400 dead000000000002 ffff888017441c80 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 22174007906, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2115 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] device_private_init drivers/base/core.c:3541 [inline] device_add+0xba/0xfb0 drivers/base/core.c:3591 netdev_register_kobject+0x184/0x320 net/core/net-sysfs.c:2013 register_netdevice+0x12dc/0x1b10 net/core/dev.c:10243 __ip_tunnel_create+0x346/0x450 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2ac/0x780 net/ipv4/ip_tunnel.c:1104 ops_init+0x355/0x5f0 net/core/net_namespace.c:138 __register_pernet_operations net/core/net_namespace.c:1209 [inline] register_pernet_operations+0x2af/0x610 net/core/net_namespace.c:1282 page_owner free stack trace missing Memory state around the buggy address: ffff88802ee51f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802ee51f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802ee52000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802ee52080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802ee52100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================