================================================================== 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 ffff888030bbf561 by task syz.6.611/8679 CPU: 1 UID: 0 PID: 8679 Comm: syz.6.611 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:0x7ff3fd98eec9 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:00007ff3fe798038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff3fdbe5fa0 RCX: 00007ff3fd98eec9 RDX: 0000200000000040 RSI: 0000000000008b1a RDI: 0000000000000007 RBP: 00007ff3fda11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff3fdbe6038 R14: 00007ff3fdbe5fa0 R15: 00007ffc4a419238 Allocated by task 6674: 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 ffff888030bbf560 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 [ffff888030bbf560, ffff888030bbf561) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x30bbf flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801a041500 ffffea0000bfc380 dead000000000002 raw: 0000000000000000 0000000000800080 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 69, tgid 69 (kworker/u8:4), ts 95739797136, free_ts 95562847866 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_noprof+0x305/0x4f0 mm/slub.c:4388 kmalloc_noprof include/linux/slab.h:909 [inline] kmalloc_array_noprof include/linux/slab.h:948 [inline] nsim_fib6_event_init drivers/net/netdevsim/fib.c:810 [inline] nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] nsim_fib_event_nb+0x295/0x1080 drivers/net/netdevsim/fib.c:1043 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:223 call_fib_notifiers+0x31/0x60 net/core/fib_notifier.c:35 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:409 [inline] fib6_add_rt2node+0x15fb/0x33a0 net/ipv6/ip6_fib.c:1244 fib6_add+0x8da/0x18a0 net/ipv6/ip6_fib.c:1528 __ip6_ins_rt net/ipv6/route.c:1351 [inline] ip6_ins_rt+0xc8/0x120 net/ipv6/route.c:1361 __ipv6_ifa_notify+0x63f/0xac0 net/ipv6/addrconf.c:6283 ipv6_ifa_notify net/ipv6/addrconf.c:6322 [inline] addrconf_dad_completed+0x180/0xd60 net/ipv6/addrconf.c:4320 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: ffff888030bbf400: 03 fc fc fc 00 fc fc fc 04 fc fc fc 04 fc fc fc ffff888030bbf480: 05 fc fc fc 06 fc fc fc 00 fc fc fc 00 fc fc fc >ffff888030bbf500: 06 fc fc fc 00 fc fc fc 00 fc fc fc 01 fc fc fc ^ ffff888030bbf580: 00 fc fc fc 05 fc fc fc 03 fc fc fc 00 fc fc fc ffff888030bbf600: 05 fc fc fc 05 fc fc fc 06 fc fc fc 06 fc fc fc ==================================================================