================================================================== BUG: KASAN: use-after-free in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:957 Read of size 1 at addr ffff8881170e7fff by task udevd/6577 CPU: 1 UID: 0 PID: 6577 Comm: udevd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1d0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:957 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2147 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+0xda1/0x36c0 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:1930 [inline] __hrtimer_run_queues+0x470/0xa00 kernel/time/hrtimer.c:1994 hrtimer_run_softirq+0x17d/0x2c0 kernel/time/hrtimer.c:2011 handle_softirqs+0x1dd/0x9e0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x160/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:lock_acquire+0x5e/0x370 kernel/locking/lockdep.c:5872 Code: 05 fb 7b 68 0b 83 f8 07 0f 87 d9 02 00 00 48 0f a3 05 86 61 61 09 0f 82 a4 02 00 00 8b 35 0e 71 61 09 85 f6 0f 85 bf 00 00 00 <48> 8b 44 24 30 65 48 2b 05 9d 7b 68 0b 0f 85 ed 02 00 00 48 83 c4 RSP: 0018:ffffc900148075a0 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff890a7745 RDI: ffffffff87b08de0 RBP: ffffffff896de8e0 R08: 0000000086db7919 R09: 0000000000000007 R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:300 [inline] rcu_read_lock include/linux/rcupdate.h:838 [inline] class_rcu_constructor include/linux/rcupdate.h:1181 [inline] is_module_text_address+0x33/0x220 kernel/module/main.c:3921 kernel_text_address kernel/extable.c:119 [inline] kernel_text_address+0x81/0x100 kernel/extable.c:94 __kernel_text_address+0xd/0x30 kernel/extable.c:79 unwind_get_return_address+0x59/0xa0 arch/x86/kernel/unwind_orc.c:385 arch_stack_walk+0xa6/0xf0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 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:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x2e7/0x6a0 mm/slub.c:4905 alloc_empty_file+0x5b/0x1c0 fs/file_table.c:262 path_openat+0xe8/0x31a0 fs/namei.c:4844 do_file_open+0x20e/0x430 fs/namei.c:4887 do_open_execat+0xd1/0x2f0 fs/exec.c:781 alloc_bprm+0x2d/0x6a0 fs/exec.c:1401 class_bprm_constructor fs/exec.c:1466 [inline] do_execveat_common.isra.0+0x19c/0x580 fs/exec.c:1799 __do_sys_execve fs/exec.c:1930 [inline] __se_sys_execve fs/exec.c:1924 [inline] __x64_sys_execve+0x93/0xd0 fs/exec.c:1924 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0x7f0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f00fb9d6107 Code: 0f 00 64 c7 00 07 00 00 00 b8 ff ff ff ff c9 c3 0f 1f 00 48 8b 05 a9 ee 0f 00 48 8b 10 e9 01 00 00 00 90 b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c1 ec 0f 00 f7 d8 64 89 01 48 RSP: 002b:00007ffe88d4b3e8 EFLAGS: 00000206 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 0000556fd53d6140 RCX: 00007f00fb9d6107 RDX: 0000556fd7080940 RSI: 00007ffe88d4b500 RDI: 00007ffe88d4bd00 RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000206 R12: 0000556fd7080940 R13: 00007ffe88d4b500 R14: 000000000000000d R15: 0000000000000009 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1170e7 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 dead000000000100 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 0, migratetype Unmovable, gfp_mask 0x440dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_COMP), pid 2972, tgid 2972 (syz-executor), ts 249795194047, free_ts 252210263936 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0xf34/0x3a90 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x273/0x28a0 mm/page_alloc.c:5226 alloc_pages_mpol+0xe8/0x410 mm/mempolicy.c:2490 alloc_pages_noprof+0x1a/0x160 mm/mempolicy.c:2581 pagetable_alloc_noprof include/linux/mm.h:3651 [inline] __pte_alloc_one_noprof include/asm-generic/pgalloc.h:76 [inline] pte_alloc_one+0x1c/0x3d0 arch/x86/mm/pgtable.c:18 __pte_alloc+0x6d/0x380 mm/memory.c:453 copy_pte_range mm/memory.c:1237 [inline] copy_pmd_range mm/memory.c:1392 [inline] copy_pud_range mm/memory.c:1429 [inline] copy_p4d_range mm/memory.c:1453 [inline] copy_page_range+0x2d02/0x5740 mm/memory.c:1539 dup_mmap+0xcb9/0x1f30 mm/mmap.c:1840 dup_mm kernel/fork.c:1534 [inline] copy_mm kernel/fork.c:1586 [inline] copy_process+0x4928/0x7c70 kernel/fork.c:2264 kernel_clone+0x12e/0x9c0 kernel/fork.c:2721 __do_sys_clone+0xd9/0x120 kernel/fork.c:2862 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0x7f0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 0 tgid 0 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x692/0xf10 mm/page_alloc.c:2943 __pagetable_free include/linux/mm.h:3661 [inline] pagetable_free include/linux/mm.h:3685 [inline] pagetable_dtor_free include/linux/mm.h:3784 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1dd/0x9e0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x160/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Memory state around the buggy address: ffff8881170e7e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881170e7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881170e7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881170e8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881170e8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 05 fb 7b 68 0b add $0xb687bfb,%eax 5: 83 f8 07 cmp $0x7,%eax 8: 0f 87 d9 02 00 00 ja 0x2e7 e: 48 0f a3 05 86 61 61 bt %rax,0x9616186(%rip) # 0x961619c 15: 09 16: 0f 82 a4 02 00 00 jb 0x2c0 1c: 8b 35 0e 71 61 09 mov 0x961710e(%rip),%esi # 0x9617130 22: 85 f6 test %esi,%esi 24: 0f 85 bf 00 00 00 jne 0xe9 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 9d 7b 68 sub %gs:0xb687b9d(%rip),%rax # 0xb687bd4 36: 0b 37: 0f 85 ed 02 00 00 jne 0x32a 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4