================================================================== BUG: KASAN: use-after-free in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:950 Read of size 1 at addr ffff888051d37fff by task syz-executor/5806 CPU: 1 UID: 0 PID: 5806 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:950 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2140 hid_irq_in+0x52e/0x6b0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xd85/0x3670 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1785 [inline] __hrtimer_run_queues+0x50e/0xa70 kernel/time/hrtimer.c:1849 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1866 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0x56/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0033:0x7fe065a6a7a8 Code: 49 c1 e5 03 e8 a9 ad 12 00 85 c0 0f 85 62 0a 00 00 48 b8 db 34 b6 d7 82 de 1b 43 48 f7 a4 24 98 00 00 00 48 8b 05 00 b0 ed 00 <48> 69 8c 24 90 00 00 00 e8 03 00 00 8b 78 08 48 8b 44 24 18 48 c1 RSP: 002b:00007ffc131e4440 EFLAGS: 00000a07 RAX: 0000001b2f224000 RBX: 00000000000001dc RCX: 000000000000cc18 RDX: 000000000d1aedc2 RSI: 00007fe0659f8010 RDI: 0030fa4eee773874 RBP: 00007ffc131e447c R08: 0000000000000000 R09: 0000000000000000 R10: 00007fe0659f8000 R11: 0000000000000001 R12: 0000000000001388 R13: 00000000000927c0 R14: 00000000000425a4 R15: 00007ffc131e44d0 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x51d37 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 151, tgid 151 (kworker/u8:6), ts 63196816991, free_ts 192846603702 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5250 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2484 ___kmalloc_large_node+0x104/0x150 mm/slub.c:5201 __kmalloc_large_noprof+0x1c/0x70 mm/slub.c:5222 rate_control_alloc_sta net/mac80211/rate.h:43 [inline] sta_prepare_rate_control net/mac80211/sta_info.c:541 [inline] __sta_info_alloc+0xae8/0x1cd0 net/mac80211/sta_info.c:704 ieee80211_ibss_add_sta+0x2e9/0x710 net/mac80211/ibss.c:613 ieee80211_update_sta_info net/mac80211/ibss.c:1000 [inline] ieee80211_rx_bss_info net/mac80211/ibss.c:1092 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1575 [inline] ieee80211_ibss_rx_queued_mgmt+0x2543/0x2f80 net/mac80211/ibss.c:1602 ieee80211_iface_process_skb net/mac80211/iface.c:1748 [inline] ieee80211_iface_work+0xbff/0x13d0 net/mac80211/iface.c:1802 cfg80211_wiphy_work+0x446/0x5c0 net/wireless/core.c:440 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 7813 tgid 7811 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7e1/0x10d0 mm/page_alloc.c:2978 rate_control_free_sta net/mac80211/rate.h:52 [inline] sta_info_free+0x25f/0x420 net/mac80211/sta_info.c:494 __sta_info_flush+0x4f6/0x720 net/mac80211/sta_info.c:1696 sta_info_flush net/mac80211/sta_info.h:970 [inline] ieee80211_ibss_disconnect+0x169/0xba0 net/mac80211/ibss.c:678 ieee80211_ibss_leave+0x4a/0x160 net/mac80211/ibss.c:1818 rdev_leave_ibss net/wireless/rdev-ops.h:574 [inline] cfg80211_leave_ibss+0x1ab/0x4c0 net/wireless/ibss.c:203 cfg80211_leave+0x11a/0x450 net/wireless/core.c:1387 cfg80211_netdev_notifier_call+0x560/0x11d0 net/wireless/core.c:1600 notifier_call_chain+0x99/0x420 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2249 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] __dev_close_many+0xff/0x700 net/core/dev.c:1746 netif_close_many+0x233/0x630 net/core/dev.c:1800 netif_close net/core/dev.c:1817 [inline] netif_close+0x17f/0x230 net/core/dev.c:1811 dev_close+0xaa/0x240 net/core/dev_api.c:220 cfg80211_shutdown_all_interfaces+0x9a/0x200 net/wireless/core.c:282 cfg80211_rfkill_set_block net/wireless/core.c:312 [inline] cfg80211_rfkill_set_block+0x35/0x50 net/wireless/core.c:304 Memory state around the buggy address: ffff888051d37e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888051d37f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888051d37f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888051d38000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888051d38080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================