================================================================== BUG: KASAN: use-after-free in ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:770 Read of size 2 at addr ffff8880798aadfb by task syz.1.361/5752 CPU: 0 PID: 5752 Comm: syz.1.361 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 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 ieee80211_monitor_select_queue+0x23a/0x240 net/mac80211/iface.c:770 netdev_core_pick_tx+0x12c/0x300 net/core/dev.c:4184 __dev_queue_xmit+0x797/0x2e50 net/core/dev.c:4261 packet_snd net/packet/af_packet.c:3119 [inline] packet_sendmsg+0x3b4f/0x4de0 net/packet/af_packet.c:3150 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmsg net/socket.c:2529 [inline] __do_sys_sendmsg net/socket.c:2538 [inline] __se_sys_sendmsg+0x1b7/0x2a0 net/socket.c:2536 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 RIP: 0033:0x7f310ceba159 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:00007f310b0f1028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f310d142090 RCX: 00007f310ceba159 RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f310cf5106b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f310d142128 R14: 00007f310d142090 R15: 00007ffcfe1629a8 Allocated by task 5603: 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_slab_alloc+0x92/0xc0 mm/kasan/common.c:467 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 sk_prot_alloc+0x57/0x210 net/core/sock.c:1859 sk_alloc+0x2f/0x310 net/core/sock.c:1921 unix_create1+0xad/0x610 net/unix/af_unix.c:-1 unix_create+0x139/0x1f0 net/unix/af_unix.c:929 __sock_create+0x473/0x910 net/socket.c:1496 sock_create net/socket.c:1552 [inline] __sys_socketpair+0x232/0x540 net/socket.c:1656 __do_sys_socketpair net/socket.c:1705 [inline] __se_sys_socketpair net/socket.c:1702 [inline] __x64_sys_socketpair+0x97/0xb0 net/socket.c:1702 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 Freed by task 5601: 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] kmem_cache_free+0x8f/0x210 mm/slub.c:3520 sk_prot_free net/core/sock.c:1902 [inline] __sk_destruct+0x571/0x840 net/core/sock.c:1990 sock_put include/net/sock.h:1990 [inline] unix_release_sock+0x86f/0xc60 net/unix/af_unix.c:577 unix_release+0x88/0xc0 net/unix/af_unix.c:944 __sock_release net/socket.c:651 [inline] sock_close+0xbf/0x210 net/socket.c:1346 __fput+0x212/0x8c0 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8880798aa800 which belongs to the cache UNIX-STREAM of size 1920 The buggy address is located 1531 bytes inside of 1920-byte region [ffff8880798aa800, ffff8880798aaf80) The buggy address belongs to the page: page:ffffea0001e62a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880798a9800 pfn:0x798a8 head:ffffea0001e62a00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88802bd92601 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff8880183ccdc0 raw: ffff8880798a9800 000000008010000d 00000001ffffffff ffff88802bd92601 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4169, ts 63248967170, free_ts 57705391569 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] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0xf0/0x280 mm/slub.c:3238 sk_prot_alloc+0x57/0x210 net/core/sock.c:1859 sk_alloc+0x2f/0x310 net/core/sock.c:1921 unix_create1+0xad/0x610 net/unix/af_unix.c:-1 unix_create+0x139/0x1f0 net/unix/af_unix.c:929 __sock_create+0x473/0x910 net/socket.c:1496 sock_create net/socket.c:1552 [inline] __sys_socket+0xe2/0x170 net/socket.c:1594 __do_sys_socket net/socket.c:1603 [inline] __se_sys_socket net/socket.c:1601 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1601 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] sock_read_iter+0x2c2/0x380 net/socket.c:1068 call_read_iter include/linux/fs.h:2173 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x75e/0xd50 fs/read_write.c:485 ksys_read+0x153/0x260 fs/read_write.c:623 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: ffff8880798aac80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880798aad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880798aad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880798aae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880798aae80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================