syzbot


KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor

Status: upstream: reported on 2025/11/16 07:50
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+bc1aabf52d0a31e91f96@syzkaller.appspotmail.com
First crash: 4d07h, last: 18m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [wireless?] KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor 0 (1) 2025/11/16 07:50

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in ieee80211_add_virtual_monitor+0xa52/0xd00 net/mac80211/iface.c:1255
Read of size 1 at addr ffff888057a1bd50 by task syz.4.847/9389

CPU: 0 UID: 0 PID: 9389 Comm: syz.4.847 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 ieee80211_add_virtual_monitor+0xa52/0xd00 net/mac80211/iface.c:1255
 ieee80211_do_stop+0x1786/0x1f60 net/mac80211/iface.c:746
 ieee80211_stop+0x1b1/0x240 net/mac80211/iface.c:828
 __dev_close_many+0x364/0x6f0 net/core/dev.c:1756
 netif_close_many+0x225/0x410 net/core/dev.c:1781
 netif_close+0x158/0x210 net/core/dev.c:1798
 dev_close+0x10a/0x220 net/core/dev_api.c:220
 cfg80211_shutdown_all_interfaces+0xd4/0x220 net/wireless/core.c:280
 cfg80211_rfkill_set_block+0x2d/0x50 net/wireless/core.c:310
 rfkill_set_block+0x1d2/0x440 net/rfkill/core.c:346
 rfkill_fop_write+0x44b/0x570 net/rfkill/core.c:1301
 vfs_write+0x27e/0xb30 fs/read_write.c:684
 ksys_write+0x145/0x250 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc8d2d8f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc8d3c58038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fc8d2fe5fa0 RCX: 00007fc8d2d8f6c9
RDX: 0000000000000008 RSI: 0000200000000080 RDI: 0000000000000003
RBP: 00007fc8d2e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc8d2fe6038 R14: 00007fc8d2fe5fa0 R15: 00007fff7699b4a8
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x57a18
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f8(unknown)
raw: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
head: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000
head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
head: 00fff00000000002 ffffea00015e8601 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP), pid 5839, tgid 5839 (syz-executor), ts 99374543199, free_ts 30448607371
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850
 prep_new_page mm/page_alloc.c:1858 [inline]
 get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
 ___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:5591
 __kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5622
 __do_kmalloc_node mm/slub.c:5638 [inline]
 __kvmalloc_node_noprof+0x6e/0x910 mm/slub.c:7108
 alloc_netdev_mqs+0xa6/0x11b0 net/core/dev.c:11989
 ieee80211_if_add+0x46c/0x1390 net/mac80211/iface.c:2227
 ieee80211_register_hw+0x35a5/0x40d0 net/mac80211/main.c:1607
 mac80211_hwsim_new_radio+0x2f9a/0x5260 drivers/net/wireless/virtual/mac80211_hwsim.c:5810
 hwsim_new_radio_nl+0xf5b/0x1bd0 drivers/net/wireless/virtual/mac80211_hwsim.c:6504
 genl_family_rcv_msg_doit+0x215/0x300 net/netlink/genetlink.c:1115
 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline]
 genl_rcv_msg+0x60e/0x790 net/netlink/genetlink.c:1210
 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219
page last free pid 1 tgid 1 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1394 [inline]
 __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2906
 __free_pages mm/page_alloc.c:5302 [inline]
 free_contig_range+0x1bd/0x4a0 mm/page_alloc.c:7146
 destroy_args+0x69/0x660 mm/debug_vm_pgtable.c:958
 debug_vm_pgtable+0x39f/0x3b0 mm/debug_vm_pgtable.c:1345
 do_one_initcall+0x236/0x820 init/main.c:1283
 do_initcall_level+0x104/0x190 init/main.c:1345
 do_initcalls+0x59/0xa0 init/main.c:1361
 kernel_init_freeable+0x334/0x4b0 init/main.c:1593
 kernel_init+0x1d/0x1d0 init/main.c:1483
 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff888057a1bc00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff888057a1bc80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
>ffff888057a1bd00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
                                                 ^
 ffff888057a1bd80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff888057a1be00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
==================================================================

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/16 14:40 net-next c9dfb92de073 f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/16 10:18 net-next c9dfb92de073 f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/15 10:23 net-next 04ca7a69a35b f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/14 01:58 net-next f694d215d340 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/13 15:43 net-next 68fa5b092efa 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/13 10:56 net-next 68fa5b092efa 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/13 14:59 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/13 07:11 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/13 04:54 linux-next b179ce312baf 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/12 22:32 linux-next b179ce312baf 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/12 12:13 linux-next b179ce312baf 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/12 07:46 linux-next b179ce312baf 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
2025/11/12 07:46 linux-next b179ce312baf 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-out-of-bounds Read in ieee80211_add_virtual_monitor
* Struck through repros no longer work on HEAD.