================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff8881169a3fff by task kworker/0:11/17326 CPU: 0 UID: 0 PID: 17326 Comm: kworker/0:11 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: events dvb_usb_read_remote_control 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+0x314/0x450 drivers/hid/hid-core.c:2139 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+0x1809/0x3a00 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1777 [inline] __hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x208/0x8d0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xfa/0x160 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline] sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:lock_release+0x183/0x2f0 kernel/locking/lockdep.c:5893 Code: 0f c1 05 98 97 3d 0b 83 f8 01 0f 85 1d 01 00 00 9c 58 f6 c4 02 0f 85 08 01 00 00 41 f7 c5 00 02 00 00 74 01 fb 48 8b 44 24 10 <65> 48 2b 05 ed 57 3d 0b 0f 85 58 01 00 00 48 83 c4 18 5b 41 5c 41 RSP: 0018:ffffc900035cfa78 EFLAGS: 00000206 RAX: 9277453cdcefc500 RBX: ffffffff8947dca0 RCX: ffffc900035cfa84 RDX: 0000000000000002 RSI: ffffffff88c684b8 RDI: ffffffff878979c0 RBP: ffffc900035cfb20 R08: 97b4c2657857341a R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff81d3f36e R13: 0000000000000283 R14: ffff88811af80000 R15: 0000000000000003 might_alloc include/linux/sched/mm.h:318 [inline] slab_pre_alloc_hook mm/slub.c:4921 [inline] slab_alloc_node mm/slub.c:5256 [inline] __kmalloc_cache_noprof+0x58/0x750 mm/slub.c:5758 kmalloc_noprof include/linux/slab.h:957 [inline] usb_control_msg+0xbc/0x4a0 drivers/usb/core/message.c:144 m920x_read drivers/media/usb/dvb-usb/m920x.c:36 [inline] m920x_rc_core_query+0xd5/0x500 drivers/media/usb/dvb-usb/m920x.c:226 dvb_usb_read_remote_control+0xdd/0x1c0 drivers/media/usb/dvb-usb/dvb-usb-remote.c:261 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x56d/0x700 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881169a6600 pfn:0x1169a0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f8(unknown) raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 raw: ffff8881169a6600 0000000000000000 00000000f8000000 0000000000000000 head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 head: ffff8881169a6600 0000000000000000 00000000f8000000 0000000000000000 head: 0200000000000002 ffffea00045a6801 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 1112, tgid 1112 (kworker/0:2), ts 1925985124843, free_ts 1925704967149 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x1003/0x2dc0 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x259/0x21f0 mm/page_alloc.c:5183 alloc_pages_mpol+0xe4/0x410 mm/mempolicy.c:2416 ___kmalloc_large_node+0xed/0x160 mm/slub.c:5583 __kmalloc_large_noprof+0x1c/0x70 mm/slub.c:5604 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] dvb_usbv2_probe+0x10d/0x3e50 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:907 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 page last free pid 9 tgid 9 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x78f/0x1000 mm/page_alloc.c:2906 usbhid_disconnect+0xa8/0xe0 drivers/hid/usbhid/hid-core.c:1463 usb_unbind_interface+0x1dd/0x9e0 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:571 [inline] device_remove+0x125/0x170 drivers/base/dd.c:563 __device_release_driver drivers/base/dd.c:1274 [inline] device_release_driver_internal+0x44b/0x620 drivers/base/dd.c:1297 bus_remove_device+0x22f/0x420 drivers/base/bus.c:579 device_del+0x396/0x9f0 drivers/base/core.c:3878 usb_disable_device+0x355/0x7d0 drivers/usb/core/message.c:1418 usb_disconnect+0x2e1/0x9c0 drivers/usb/core/hub.c:2345 hub_port_connect drivers/usb/core/hub.c:5407 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x1aa2/0x5060 drivers/usb/core/hub.c:5953 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x56d/0x700 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff8881169a3e80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8881169a3f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff8881169a3f80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff8881169a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881169a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 0f c1 05 98 97 3d 0b xadd %eax,0xb3d9798(%rip) # 0xb3d979f 7: 83 f8 01 cmp $0x1,%eax a: 0f 85 1d 01 00 00 jne 0x12d 10: 9c pushf 11: 58 pop %rax 12: f6 c4 02 test $0x2,%ah 15: 0f 85 08 01 00 00 jne 0x123 1b: 41 f7 c5 00 02 00 00 test $0x200,%r13d 22: 74 01 je 0x25 24: fb sti 25: 48 8b 44 24 10 mov 0x10(%rsp),%rax * 2a: 65 48 2b 05 ed 57 3d sub %gs:0xb3d57ed(%rip),%rax # 0xb3d581f <-- trapping instruction 31: 0b 32: 0f 85 58 01 00 00 jne 0x190 38: 48 83 c4 18 add $0x18,%rsp 3c: 5b pop %rbx 3d: 41 5c pop %r12 3f: 41 rex.B