================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff88812ea3ffff by task udevd/5225 CPU: 1 UID: 0 PID: 5225 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 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/0x1a0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2139 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:1777 [inline] __hrtimer_run_queues+0x516/0x990 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x1dd/0x8f0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xed/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+0x42/0xb0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0033:0x7fe41f41dd50 Code: 00 48 8d 15 f2 18 01 00 f6 80 9e 00 00 00 10 48 8d 05 f4 df 0c 00 48 0f 44 c2 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 <55> 53 48 89 fb 48 83 ec 08 e8 a2 83 f8 ff 48 8d 68 01 48 89 ef e8 RSP: 002b:00007fff519ec638 EFLAGS: 00000246 RAX: 00000000000003dc RBX: 00007fff519ec660 RCX: 000000007379732f RDX: 0000000000000000 RSI: 00007fff519ec660 RDI: 00007fff519ec660 RBP: 0000561abbe7d170 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000561abbe7d170 R13: 0000000000000070 R14: 00007fff519ecc03 R15: 0000000000000000 Allocated by task 22504: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6e/0x70 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_node_noprof+0x292/0x7d0 mm/slub.c:5315 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:586 __alloc_skb+0x186/0x410 net/core/skbuff.c:690 alloc_skb include/linux/skbuff.h:1383 [inline] alloc_uevent_skb+0x7d/0x210 lib/kobject_uevent.c:289 uevent_net_broadcast_untagged lib/kobject_uevent.c:326 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:410 [inline] kobject_uevent_env+0xd2d/0x18b0 lib/kobject_uevent.c:608 device_add+0x116e/0x1950 drivers/base/core.c:3670 usb_new_device.cold+0x685/0x115c drivers/usb/core/hub.c:2695 hub_port_connect drivers/usb/core/hub.c:5567 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x314d/0x4af0 drivers/usb/core/hub.c:5953 process_one_work+0x9c2/0x1840 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x5da/0xe40 kernel/workqueue.c:3421 kthread+0x3b3/0x730 kernel/kthread.c:463 ret_from_fork+0x6c3/0xa20 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Freed by task 2857: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x43/0x70 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x124/0x6d0 mm/slub.c:6781 skb_kfree_head net/core/skbuff.c:1066 [inline] skb_kfree_head net/core/skbuff.c:1063 [inline] skb_free_head+0x1c6/0x220 net/core/skbuff.c:1080 skb_release_data+0x540/0x700 net/core/skbuff.c:1107 skb_release_all net/core/skbuff.c:1182 [inline] __kfree_skb net/core/skbuff.c:1196 [inline] consume_skb net/core/skbuff.c:1428 [inline] consume_skb+0xc4/0x110 net/core/skbuff.c:1422 netlink_recvmsg+0x51b/0x9c0 net/netlink/af_netlink.c:1972 sock_recvmsg_nosec net/socket.c:1078 [inline] sock_recvmsg+0x1f9/0x250 net/socket.c:1100 ____sys_recvmsg+0x218/0x6b0 net/socket.c:2812 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2854 __sys_recvmsg+0x16d/0x220 net/socket.c:2887 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88812ea3fa80 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 [ffff88812ea3fa80, ffff88812ea3fd40) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12ea3c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff8881026bcc80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 0200000000000040 ffff8881026bcc80 0000000000000000 dead000000000001 head: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 0200000000000002 ffffea0004ba8f01 00000000ffffffff 00000000ffffffff head: ffff888100000000 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 22052, tgid 22042 (syz.5.4004), ts 2111965389855, free_ts 2105001313132 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xd57/0x3b20 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x269/0x2230 mm/page_alloc.c:5240 alloc_pages_mpol+0xe8/0x410 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c4/0x440 mm/slub.c:3302 ___slab_alloc+0xda3/0x1ca0 mm/slub.c:4656 __slab_alloc.isra.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_node_noprof+0x4a9/0x7d0 mm/slub.c:5315 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:586 __alloc_skb+0x186/0x410 net/core/skbuff.c:690 alloc_skb include/linux/skbuff.h:1383 [inline] alloc_uevent_skb+0x7d/0x210 lib/kobject_uevent.c:289 uevent_net_broadcast_untagged lib/kobject_uevent.c:326 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:410 [inline] kobject_uevent_env+0xd2d/0x18b0 lib/kobject_uevent.c:608 driver_register+0x29c/0x360 drivers/base/driver.c:257 usb_gadget_register_driver_owner+0x132/0x210 drivers/usb/gadget/udc/core.c:1719 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:596 [inline] raw_ioctl+0x1a85/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1307 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 page last free pid 15994 tgid 15994 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7d1/0x1010 mm/page_alloc.c:2973 usb_free_stream_buffers drivers/media/usb/dvb-usb-v2/usb_urb.c:212 [inline] usb_urb_exitv2+0xee/0x1b0 drivers/media/usb/dvb-usb-v2/usb_urb.c:350 dvb_usbv2_adapter_stream_exit drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:238 [inline] dvb_usbv2_adapter_exit drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:828 [inline] dvb_usbv2_exit.isra.0+0x1b3/0xb40 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:843 dvb_usbv2_probe+0x669/0x970 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:993 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x340 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1031 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x160 drivers/base/bus.c:574 device_add+0x11d9/0x1950 drivers/base/core.c:3689 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250 Memory state around the buggy address: ffff88812ea3fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812ea3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88812ea3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88812ea40000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812ea40080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================