================================================================== BUG: KASAN: use-after-free in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff88810b6a7fff by task klogd/2854 CPU: 1 UID: 0 PID: 2854 Comm: klogd 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:0x7fe8c60b94e0 Code: 84 99 fe ff ff f3 0f bc c0 31 c9 40 3a 34 02 75 c4 48 01 d0 e9 15 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 f9 6e c6 89 f8 25 ff 0f 00 00 c4 e2 7d 78 c0 c5 f1 ef c9 3d e0 RSP: 002b:00007fff782a6a38 EFLAGS: 00000206 RAX: 00000000000000e7 RBX: 00007fe8c6201490 RCX: 00007fe8c6061a37 RDX: 00000000000003ff RSI: 000000000000000a RDI: 00007fe8c6201490 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000206 R12: 00007fe8c6201490 R13: 00007fe8c61dedfe R14: 00007fe8c6201490 R15: 00007fe8c62014e9 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810b6a7000 pfn:0x10b6a7 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000 raw: ffff88810b6a7000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3706, tgid 3706 (modprobe), ts 64080143829, free_ts 104699818035 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 __kmem_cache_alloc_bulk+0x20f/0x700 mm/slub.c:7431 refill_sheaf mm/slub.c:2650 [inline] alloc_full_sheaf mm/slub.c:2671 [inline] __pcs_replace_empty_main+0x347/0x4f0 mm/slub.c:5033 alloc_from_pcs mm/slub.c:5121 [inline] slab_alloc_node mm/slub.c:5248 [inline] kmem_cache_alloc_noprof+0x5ca/0x760 mm/slub.c:5270 vm_area_alloc+0x1f/0x160 mm/vma_init.c:32 __mmap_new_vma mm/vma.c:2506 [inline] __mmap_region+0xf19/0x2430 mm/vma.c:2745 mmap_region+0x180/0x3e0 mm/vma.c:2823 do_mmap+0xc53/0x12d0 mm/mmap.c:558 vm_mmap_pgoff+0x201/0x390 mm/util.c:581 vm_mmap+0x8e/0xc0 mm/util.c:617 elf_map fs/binfmt_elf.c:399 [inline] elf_load+0x29a/0x700 fs/binfmt_elf.c:422 page last free pid 2979 tgid 2979 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 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 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+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Memory state around the buggy address: ffff88810b6a7e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810b6a7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88810b6a7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88810b6a8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810b6a8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================