================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff888055143fff by task kworker/0:6/5929 CPU: 0 UID: 0 PID: 5929 Comm: kworker/0:6 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948 __hid_input_report.constprop.0+0x311/0x450 drivers/hid/hid-core.c:2130 hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x38b/0x610 drivers/usb/core/hcd.c:1661 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1745 dummy_timer+0x1814/0x3a30 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x219/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:finish_task_switch.isra.0+0x22a/0xc10 kernel/sched/core.c:5225 Code: fb 09 00 00 44 8b 05 b9 8d 22 0f 45 85 c0 0f 85 be 01 00 00 4c 89 e7 e8 a4 f6 ff ff e8 af 69 3a 00 fb 65 48 8b 1d 5e c5 4d 12 <48> 8d bb 18 16 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc900043de7d8 EFLAGS: 00000206 RAX: 0000000000027b41 RBX: ffff888077c4a440 RCX: 0000000000000006 RDX: 0000000000000000 RSI: ffffffff8de52d59 RDI: ffffffff8c163400 RBP: ffffc900043de820 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90ab7697 R11: 0000000000000000 R12: ffff8880b843a300 R13: ffff88807a3d8000 R14: ffff8880b843a300 R15: ffff8880b843b170 context_switch kernel/sched/core.c:5360 [inline] __schedule+0x1198/0x5de0 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xe7/0x3a0 kernel/sched/core.c:7058 schedule_hrtimeout_range_clock+0x217/0x320 kernel/time/sleep_timeout.c:216 schedule_hrtimeout_range kernel/time/sleep_timeout.c:263 [inline] usleep_range_state+0x16c/0x220 kernel/time/sleep_timeout.c:373 usleep_range include/linux/delay.h:77 [inline] mcp_set_i2c_speed drivers/hid/hid-mcp2221.c:244 [inline] mcp2221_probe+0xa69/0xc50 drivers/hid/hid-mcp2221.c:1273 __hid_device_probe drivers/hid/hid-core.c:2740 [inline] hid_device_probe+0x363/0x720 drivers/hid/hid-core.c:2777 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa90 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:462 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1031 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537 device_add+0x1148/0x1aa0 drivers/base/core.c:3689 hid_add_device+0x373/0xa60 drivers/hid/hid-core.c:2923 usbhid_probe+0xd38/0x13f0 drivers/hid/usbhid/hid-core.c:1435 usb_probe_interface+0x303/0xa40 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa90 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:462 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1031 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537 device_add+0x1148/0x1aa0 drivers/base/core.c:3689 usb_set_configuration+0x1187/0x1e20 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0xb1/0x110 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x3e0 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa90 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:462 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1031 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537 device_add+0x1148/0x1aa0 drivers/base/core.c:3689 usb_new_device+0xd07/0x1a60 drivers/usb/core/hub.c:2694 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x2f34/0x4fe0 drivers/usb/core/hub.c:5952 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:463 ret_from_fork+0x56a/0x730 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6519: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:330 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:356 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_node_noprof+0x1d5/0x3b0 mm/slub.c:4292 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:578 __alloc_skb+0x166/0x380 net/core/skbuff.c:669 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1055 [inline] inet6_rt_notify+0x1e0/0x4b0 net/ipv6/route.c:6347 fib6_del_route net/ipv6/ip6_fib.c:2052 [inline] fib6_del+0xf60/0x1770 net/ipv6/ip6_fib.c:2087 fib6_clean_node+0x424/0x5b0 net/ipv6/ip6_fib.c:2249 fib6_walk_continue+0x452/0x8d0 net/ipv6/ip6_fib.c:2171 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2219 fib6_clean_tree+0xd4/0x110 net/ipv6/ip6_fib.c:2299 __fib6_clean_all+0x107/0x2d0 net/ipv6/ip6_fib.c:2315 rt6_sync_down_dev net/ipv6/route.c:5005 [inline] rt6_disable_ip+0x2ec/0x990 net/ipv6/route.c:5010 addrconf_ifdown.isra.0+0x11d/0x1aa0 net/ipv6/addrconf.c:3853 addrconf_notify+0x220/0x19e0 net/ipv6/addrconf.c:3776 notifier_call_chain+0xb9/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2229 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] netif_close_many+0x319/0x630 net/core/dev.c:1784 unregister_netdevice_many_notify+0x563/0x24c0 net/core/dev.c:12136 unregister_netdevice_many net/core/dev.c:12229 [inline] unregister_netdevice_queue+0x305/0x3f0 net/core/dev.c:12073 unregister_netdevice include/linux/netdevice.h:3385 [inline] __tun_detach+0x1249/0x1540 drivers/net/tun.c:621 tun_detach drivers/net/tun.c:637 [inline] tun_chr_close+0xc2/0x230 drivers/net/tun.c:3433 __fput+0x3ff/0xb70 fs/file_table.c:468 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6519: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x60/0x70 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2422 [inline] slab_free mm/slub.c:4695 [inline] kmem_cache_free+0x2d1/0x4d0 mm/slub.c:4797 skb_kfree_head net/core/skbuff.c:1045 [inline] skb_kfree_head net/core/skbuff.c:1042 [inline] skb_free_head+0x1b7/0x210 net/core/skbuff.c:1059 skb_release_data+0x795/0x9e0 net/core/skbuff.c:1086 skb_release_all net/core/skbuff.c:1151 [inline] __kfree_skb net/core/skbuff.c:1165 [inline] consume_skb net/core/skbuff.c:1397 [inline] consume_skb+0xbf/0x100 net/core/skbuff.c:1391 netlink_broadcast_filtered+0x3ee/0xf90 net/netlink/af_netlink.c:1537 nlmsg_multicast_filtered include/net/netlink.h:1165 [inline] nlmsg_multicast include/net/netlink.h:1184 [inline] nlmsg_notify+0x9e/0x220 net/netlink/af_netlink.c:2595 inet6_rt_notify+0x355/0x4b0 net/ipv6/route.c:6365 fib6_del_route net/ipv6/ip6_fib.c:2052 [inline] fib6_del+0xf60/0x1770 net/ipv6/ip6_fib.c:2087 fib6_clean_node+0x424/0x5b0 net/ipv6/ip6_fib.c:2249 fib6_walk_continue+0x452/0x8d0 net/ipv6/ip6_fib.c:2171 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2219 fib6_clean_tree+0xd4/0x110 net/ipv6/ip6_fib.c:2299 __fib6_clean_all+0x107/0x2d0 net/ipv6/ip6_fib.c:2315 rt6_sync_down_dev net/ipv6/route.c:5005 [inline] rt6_disable_ip+0x2ec/0x990 net/ipv6/route.c:5010 addrconf_ifdown.isra.0+0x11d/0x1aa0 net/ipv6/addrconf.c:3853 addrconf_notify+0x220/0x19e0 net/ipv6/addrconf.c:3776 notifier_call_chain+0xb9/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2229 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] netif_close_many+0x319/0x630 net/core/dev.c:1784 unregister_netdevice_many_notify+0x563/0x24c0 net/core/dev.c:12136 unregister_netdevice_many net/core/dev.c:12229 [inline] unregister_netdevice_queue+0x305/0x3f0 net/core/dev.c:12073 unregister_netdevice include/linux/netdevice.h:3385 [inline] __tun_detach+0x1249/0x1540 drivers/net/tun.c:621 tun_detach drivers/net/tun.c:637 [inline] tun_chr_close+0xc2/0x230 drivers/net/tun.c:3433 __fput+0x3ff/0xb70 fs/file_table.c:468 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888055143a80 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 703 bytes to the right of allocated 704-byte region [ffff888055143a80, ffff888055143d40) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888055143740 pfn:0x55140 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff8881416adb40 ffffea000160e110 ffffea0000ae7410 raw: ffff888055143740 0000000000130011 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff8881416adb40 ffffea000160e110 ffffea0000ae7410 head: ffff888055143740 0000000000130011 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0001545001 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5965, tgid 5962 (syz.2.6), ts 69378322135, free_ts 16276826519 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2492 [inline] allocate_slab mm/slub.c:2660 [inline] new_slab+0x247/0x330 mm/slub.c:2714 ___slab_alloc+0xcf2/0x1750 mm/slub.c:3901 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3992 __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] kmem_cache_alloc_node_noprof+0xf5/0x3b0 mm/slub.c:4292 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:578 __alloc_skb+0x166/0x380 net/core/skbuff.c:669 alloc_skb include/linux/skbuff.h:1336 [inline] alloc_skb_with_frags+0xe0/0x860 net/core/skbuff.c:6665 sock_alloc_send_pskb+0x7fb/0x990 net/core/sock.c:2958 sock_alloc_send_skb include/net/sock.h:1849 [inline] __ip_append_data+0x2149/0x41c0 net/ipv4/ip_output.c:1125 ip_make_skb+0x27f/0x300 net/ipv4/ip_output.c:1572 udp_sendmsg+0x17d7/0x2870 net/ipv4/udp.c:1479 inet_sendmsg+0x105/0x140 net/ipv4/af_inet.c:851 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:1395 [inline] __free_frozen_pages+0x7d5/0x10f0 mm/page_alloc.c:2895 __free_pages mm/page_alloc.c:5260 [inline] free_contig_range+0x183/0x4b0 mm/page_alloc.c:7091 destroy_args+0x794/0xc10 mm/debug_vm_pgtable.c:958 debug_vm_pgtable+0x1a32/0x3640 mm/debug_vm_pgtable.c:1345 do_one_initcall+0x120/0x6e0 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x5c2/0x910 init/main.c:1579 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x56a/0x730 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: ffff888055143e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888055143f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888055143f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888055144000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888055144080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: fb sti 1: 09 00 or %eax,(%rax) 3: 00 44 8b 05 add %al,0x5(%rbx,%rcx,4) 7: b9 8d 22 0f 45 mov $0x450f228d,%ecx c: 85 c0 test %eax,%eax e: 0f 85 be 01 00 00 jne 0x1d2 14: 4c 89 e7 mov %r12,%rdi 17: e8 a4 f6 ff ff call 0xfffff6c0 1c: e8 af 69 3a 00 call 0x3a69d0 21: fb sti 22: 65 48 8b 1d 5e c5 4d mov %gs:0x124dc55e(%rip),%rbx # 0x124dc588 29: 12 * 2a: 48 8d bb 18 16 00 00 lea 0x1618(%rbx),%rdi <-- trapping instruction 31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 38: fc ff df 3b: 48 89 fa mov %rdi,%rdx 3e: 48 rex.W 3f: c1 .byte 0xc1