================================================================== BUG: KASAN: slab-out-of-bounds in skip_ie net/wireless/util.c:1986 [inline] BUG: KASAN: slab-out-of-bounds in ieee80211_ie_split_ric+0x8fa/0x950 net/wireless/util.c:-1 Read of size 1 at addr ffff88806035f0c1 by task syz.4.3060/16843 CPU: 1 UID: 0 PID: 16843 Comm: syz.4.3060 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: 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 skip_ie net/wireless/util.c:1986 [inline] ieee80211_ie_split_ric+0x8fa/0x950 net/wireless/util.c:-1 ieee80211_ie_split include/net/cfg80211.h:9600 [inline] cfg80211_sme_get_conn_ies net/wireless/sme.c:529 [inline] cfg80211_sme_connect net/wireless/sme.c:586 [inline] cfg80211_connect+0x10bb/0x21a0 net/wireless/sme.c:1527 cfg80211_mgd_wext_connect+0x4b0/0x610 net/wireless/wext-sme.c:57 cfg80211_wext_siwessid+0xc4/0x160 net/wireless/wext-compat.c:1412 ioctl_standard_iw_point+0x689/0xd40 net/wireless/wext-core.c:865 ioctl_standard_call+0xaf/0x1b0 net/wireless/wext-core.c:1050 wireless_process_ioctl net/wireless/wext-core.c:-1 [inline] wext_ioctl_dispatch+0xeb/0x410 net/wireless/wext-core.c:1014 wext_handle_ioctl+0x100/0x1c0 net/wireless/wext-core.c:1075 sock_ioctl+0x15f/0x790 net/socket.c:1307 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f139038eec9 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:00007f13912b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f13905e5fa0 RCX: 00007f139038eec9 RDX: 0000200000000040 RSI: 0000000000008b1a RDI: 0000000000000007 RBP: 00007f1390411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f13905e6038 R14: 00007f13905e5fa0 R15: 00007ffd1e8e3f78 Allocated by task 15642: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4376 [inline] __kmalloc_node_track_caller_noprof+0x271/0x4e0 mm/slub.c:4395 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:765 [inline] cfg80211_wext_siwgenie+0x1ad/0x320 net/wireless/wext-sme.c:322 ioctl_standard_iw_point+0x689/0xd40 net/wireless/wext-core.c:865 ioctl_standard_call+0xaf/0x1b0 net/wireless/wext-core.c:1050 wireless_process_ioctl net/wireless/wext-core.c:-1 [inline] wext_ioctl_dispatch+0xeb/0x410 net/wireless/wext-core.c:1014 wext_handle_ioctl+0x100/0x1c0 net/wireless/wext-core.c:1075 sock_ioctl+0x15f/0x790 net/socket.c:1307 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806035f0c0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes to the right of allocated 1-byte region [ffff88806035f0c0, ffff88806035f0c1) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806035f000 pfn:0x6035f flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801a041500 ffffea0001784d50 ffffea0001299c90 raw: ffff88806035f000 0000000000800060 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 15616, tgid 15609 (syz.3.2730), ts 353175390025, free_ts 353146965082 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2492 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2660 new_slab mm/slub.c:2714 [inline] ___slab_alloc+0xbeb/0x1420 mm/slub.c:3901 __slab_alloc mm/slub.c:3992 [inline] __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] __do_kmalloc_node mm/slub.c:4375 [inline] __kmalloc_node_track_caller_noprof+0x2f8/0x4e0 mm/slub.c:4395 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x42/0x100 mm/util.c:84 __kernfs_new_node+0x9c/0x7e0 fs/kernfs/dir.c:633 kernfs_new_node+0x102/0x210 fs/kernfs/dir.c:713 kernfs_create_dir_ns+0x44/0x130 fs/kernfs/dir.c:1083 sysfs_create_dir_ns+0x123/0x280 fs/sysfs/dir.c:59 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x59f/0xb40 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_init_and_add+0x125/0x190 lib/kobject.c:457 netdev_queue_add_kobject net/core/net-sysfs.c:1997 [inline] netdev_queue_update_kobjects+0x249/0x6c0 net/core/net-sysfs.c:2056 register_queue_kobjects net/core/net-sysfs.c:2119 [inline] netdev_register_kobject+0x258/0x310 net/core/net-sysfs.c:2362 page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88806035ef80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88806035f000: fa fc fc fc 05 fc fc fc 05 fc fc fc 05 fc fc fc >ffff88806035f080: 05 fc fc fc 05 fc fc fc 01 fc fc fc fa fc fc fc ^ ffff88806035f100: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff88806035f180: fa fc fc fc fa fc fc fc fa fc fc fc 05 fc fc fc ==================================================================