================================================================== BUG: KASAN: use-after-free in usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284 Read of size 8 at addr ffff888106274008 by task syz.5.20/413 CPU: 1 UID: 0 PID: 413 Comm: syz.5.20 Not tainted syzkaller #0 1f46b48b3a0ef7537d643c2c4b1d5e30032b8167 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120 print_address_description+0x71/0x210 mm/kasan/report.c:377 print_report+0x4a/0x70 mm/kasan/report.c:481 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 __asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381 usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284 hid_hw_power include/linux/hid.h:1174 [inline] hidraw_open+0x254/0x960 drivers/hid/hidraw.c:302 chrdev_open+0x4eb/0x610 fs/char_dev.c:414 do_dentry_open+0x97c/0x1510 fs/open.c:954 vfs_open+0x86/0x240 fs/open.c:1086 do_open fs/namei.c:3782 [inline] path_openat+0x2c49/0x35a0 fs/namei.c:3941 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1434 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1460 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fe2d575e98e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fe2d6743b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe2d67446c0 RCX: 00007fe2d575e98e RDX: 000000000000bb02 RSI: 00007fe2d6743c00 RDI: ffffffffffffff9c RBP: 00007fe2d6743c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007fe2d5a26038 R14: 00007fe2d5a25fa0 R15: 00007ffd66acbe58 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888106275c00 pfn:0x106274 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea000431f208 ffff8881f6f723a0 0000000000000000 raw: ffff888106275c00 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x192c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 384, tgid 384 (kworker/1:2), ts 36410484403, free_ts 36410504593 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863 prep_new_page+0x2d/0x180 mm/page_alloc.c:1871 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315 __alloc_pages_node_noprof include/linux/gfp.h:273 [inline] alloc_pages_node_noprof include/linux/gfp.h:300 [inline] alloc_pages_noprof include/linux/gfp.h:317 [inline] stack_depot_save_flags+0x672/0x800 lib/stackdepot.c:627 kasan_save_stack mm/kasan/common.c:50 [inline] kasan_save_track+0x4f/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __kmalloc_cache_noprof+0x23c/0x470 mm/slub.c:4426 kmalloc_noprof include/linux/slab.h:882 [inline] usb_control_msg+0x83/0x490 drivers/usb/core/message.c:157 get_port_status drivers/usb/core/hub.c:614 [inline] hub_ext_port_status+0x10d/0x830 drivers/usb/core/hub.c:631 usb_hub_port_status drivers/usb/core/hub.c:681 [inline] hub_port_debounce+0x1ca/0x260 drivers/usb/core/hub.c:4710 hub_port_debounce_be_stable drivers/usb/core/hub.h:184 [inline] hub_port_connect drivers/usb/core/hub.c:5426 [inline] hub_port_connect_change drivers/usb/core/hub.c:5714 [inline] port_event drivers/usb/core/hub.c:5878 [inline] hub_event+0x1b66/0x4360 drivers/usb/core/hub.c:5960 process_one_work kernel/workqueue.c:3273 [inline] process_scheduled_works+0x7f4/0x1060 kernel/workqueue.c:3354 worker_thread+0xc99/0x13f0 kernel/workqueue.c:3435 kthread+0x2c4/0x360 kernel/kthread.c:389 page last free pid 384 tgid 384 stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1390 [inline] free_unref_page+0xbb8/0xf70 mm/page_alloc.c:2876 __free_pages+0x6b/0x3b0 mm/page_alloc.c:5402 free_pages+0x86/0x90 mm/page_alloc.c:5415 stack_depot_save_flags+0x3ab/0x800 lib/stackdepot.c:674 kasan_save_stack mm/kasan/common.c:50 [inline] kasan_save_track+0x4f/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __kmalloc_cache_noprof+0x23c/0x470 mm/slub.c:4426 kmalloc_noprof include/linux/slab.h:882 [inline] usb_control_msg+0x83/0x490 drivers/usb/core/message.c:157 get_port_status drivers/usb/core/hub.c:614 [inline] hub_ext_port_status+0x10d/0x830 drivers/usb/core/hub.c:631 usb_hub_port_status drivers/usb/core/hub.c:681 [inline] hub_port_debounce+0x1ca/0x260 drivers/usb/core/hub.c:4710 hub_port_debounce_be_stable drivers/usb/core/hub.h:184 [inline] hub_port_connect drivers/usb/core/hub.c:5426 [inline] hub_port_connect_change drivers/usb/core/hub.c:5714 [inline] port_event drivers/usb/core/hub.c:5878 [inline] hub_event+0x1b66/0x4360 drivers/usb/core/hub.c:5960 process_one_work kernel/workqueue.c:3273 [inline] process_scheduled_works+0x7f4/0x1060 kernel/workqueue.c:3354 worker_thread+0xc99/0x13f0 kernel/workqueue.c:3435 kthread+0x2c4/0x360 kernel/kthread.c:389 ret_from_fork+0x64/0xa0 arch/x86/kernel/process.c:153 Memory state around the buggy address: ffff888106273f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888106273f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888106274000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888106274080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888106274100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000230 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 800000012f413067 P4D 800000012f413067 PUD 0 Oops: Oops: 0002 [#1] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 413 Comm: syz.5.20 Tainted: G B syzkaller #0 1f46b48b3a0ef7537d643c2c4b1d5e30032b8167 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline] RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline] RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 Code: ff e8 fb d4 3f fe 89 d8 83 e0 04 75 07 e8 af d0 3f fe eb 1e e8 a8 d0 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 07 ae 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 c0 67 5f RSP: 0018:ffffc900010af6a8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff8347a6c9 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000230 RBP: ffffc900010af6c8 R08: 0000000000000234 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1177129 R12: 0000000000000000 R13: ffffffff8680d1a0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007fe2d67446c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000011f73c000 CR4: 00000000003526b0 Call Trace: pm_runtime_resume_and_get include/linux/pm_runtime.h:436 [inline] usb_autopm_get_interface+0x25/0xf0 drivers/usb/core/driver.c:1888 usbhid_power+0x84/0xd0 drivers/hid/usbhid/hid-core.c:1284 hid_hw_power include/linux/hid.h:1174 [inline] hidraw_open+0x254/0x960 drivers/hid/hidraw.c:302 chrdev_open+0x4eb/0x610 fs/char_dev.c:414 do_dentry_open+0x97c/0x1510 fs/open.c:954 vfs_open+0x86/0x240 fs/open.c:1086 do_open fs/namei.c:3782 [inline] path_openat+0x2c49/0x35a0 fs/namei.c:3941 do_filp_open+0x1f2/0x440 fs/namei.c:3968 do_sys_openat2+0x134/0x1d0 fs/open.c:1434 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1460 x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fe2d575e98e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fe2d6743b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe2d67446c0 RCX: 00007fe2d575e98e RDX: 000000000000bb02 RSI: 00007fe2d6743c00 RDI: ffffffffffffff9c RBP: 00007fe2d6743c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007fe2d5a26038 R14: 00007fe2d5a25fa0 R15: 00007ffd66acbe58 Modules linked in: CR2: 0000000000000230 ---[ end trace 0000000000000000 ]--- RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline] RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline] RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline] RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177 Code: ff e8 fb d4 3f fe 89 d8 83 e0 04 75 07 e8 af d0 3f fe eb 1e e8 a8 d0 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 07 ae 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 c0 67 5f RSP: 0018:ffffc900010af6a8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff8347a6c9 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000230 RBP: ffffc900010af6c8 R08: 0000000000000234 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1177129 R12: 0000000000000000 R13: ffffffff8680d1a0 R14: 0000000000000050 R15: dffffc0000000000 FS: 00007fe2d67446c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000230 CR3: 000000011f73c000 CR4: 00000000003526b0 ---------------- Code disassembly (best guess): 0: ff ljmp (bad) 1: e8 fb d4 3f fe call 0xfe3fd501 6: 89 d8 mov %ebx,%eax 8: 83 e0 04 and $0x4,%eax b: 75 07 jne 0x14 d: e8 af d0 3f fe call 0xfe3fd0c1 12: eb 1e jmp 0x32 14: e8 a8 d0 3f fe call 0xfe3fd0c1 19: 49 8d be e0 01 00 00 lea 0x1e0(%r14),%rdi 20: be 04 00 00 00 mov $0x4,%esi 25: e8 07 ae 98 fe call 0xfe98ae31 * 2a: f0 41 ff 86 e0 01 00 lock incl 0x1e0(%r14) <-- trapping instruction 31: 00 32: 4d 8d be 14 01 00 00 lea 0x114(%r14),%r15 39: 4c 89 ff mov %r15,%rdi 3c: e8 .byte 0xe8 3d: c0 .byte 0xc0 3e: 67 5f addr32 pop %rdi