================================================================== BUG: KASAN: null-ptr-deref in mcp2221_raw_event+0xc1f/0x1030 drivers/hid/hid-mcp2221.c:910 Write of size 231 at addr 0000000000000000 by task modprobe/12764 CPU: 1 UID: 0 PID: 12764 Comm: modprobe Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 __asan_memcpy+0x3c/0x60 mm/kasan/shadow.c:106 mcp2221_raw_event+0xc1f/0x1030 drivers/hid/hid-mcp2221.c:910 __hid_input_report.constprop.0+0x314/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+0x1ff/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x208/0x8d0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xfa/0x160 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+0x90/0xb0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:fput_close_sync+0x0/0x210 fs/file_table.c:571 Code: e8 55 9c f5 ff eb d6 e8 5e 9b f5 ff eb b0 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 41 56 41 55 41 54 55 48 bd 00 00 00 00 00 fc ff df 53 RSP: 0018:ffffc90015757f08 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88811d64ba00 RSI: ffffffff81e474c8 RDI: ffff888119b8cfc0 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000004000 R10: 0000000000008000 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 __do_sys_close fs/open.c:1587 [inline] __se_sys_close fs/open.c:1572 [inline] __x64_sys_close+0x8b/0x120 fs/open.c:1572 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb0cfbacfa7 Code: 00 00 00 48 89 f2 31 c9 48 89 fe bf 9c ff ff ff e9 0e ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 f7 d8 89 05 e8 42 01 00 b8 ff ff ff ff RSP: 002b:00007ffe61e2e938 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 00007fb0cf886040 RCX: 00007fb0cfbacfa7 RDX: 000000000002b890 RSI: 00007fb0cfb82ab0 RDI: 0000000000000000 RBP: 00007ffe61e2ea90 R08: 00007fb0cf8b18a8 R09: 0000000000000030 R10: 00000000c0010001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb0cfb82ab0 R14: 00007ffe61e2eb30 R15: 00007fb0cf8b4000 ================================================================== ---------------- Code disassembly (best guess): 0: e8 55 9c f5 ff call 0xfff59c5a 5: eb d6 jmp 0xffffffdd 7: e8 5e 9b f5 ff call 0xfff59b6a c: eb b0 jmp 0xffffffbe e: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 15: 00 00 00 00 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop 29: 90 nop * 2a: f3 0f 1e fa endbr64 <-- trapping instruction 2e: 41 56 push %r14 30: 41 55 push %r13 32: 41 54 push %r12 34: 55 push %rbp 35: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp 3c: fc ff df 3f: 53 push %rbx