================================================================== BUG: KASAN: use-after-free in usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284 Read of size 8 at addr ffff888120010008 by task syz.3.854/3384 CPU: 1 UID: 0 PID: 3384 Comm: syz.3.854 Not tainted syzkaller #0 f2f9be0cb5819eb91f3cdfab905957d5e4b40d7b 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+0x257/0x960 drivers/hid/hidraw.c:302 chrdev_open+0x4e8/0x610 fs/char_dev.c:414 do_dentry_open+0x97f/0x1510 fs/open.c:960 vfs_open+0x86/0x240 fs/open.c:1092 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:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x13a/0x170 fs/open.c:1466 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:0x7f924d75e90e 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:00007f924e5edb28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f924e5ee6c0 RCX: 00007f924d75e90e RDX: 0000000000000800 RSI: 00007f924e5edc00 RDI: ffffffffffffff9c RBP: 00007f924e5edc00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f924da26128 R14: 00007f924da26090 R15: 00007ffcfd688b28 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888120013100 pfn:0x120010 flags: 0x4000000000000000(zone=1) page_type: f0(buddy) raw: 4000000000000000 ffffea000415f208 ffffea0004eb4d08 0000000000000000 raw: ffff888120013100 0000000000000002 00000000f0000000 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 0x140dc0(GFP_USER|__GFP_COMP|__GFP_ZERO), pid 1108, tgid 1108 (kworker/1:6), ts 197423232566, free_ts 198075286080 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 ___kmalloc_large_node+0x81/0x220 mm/slub.c:-1 __kmalloc_large_noprof+0x1e/0xe0 mm/slub.c:4357 kmalloc_noprof include/linux/slab.h:879 [inline] kzalloc_noprof include/linux/slab.h:1117 [inline] usbhid_probe+0xc19/0x1310 drivers/hid/usbhid/hid-core.c:1434 usb_probe_interface+0x6ab/0xbf0 drivers/usb/core/driver.c:400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e1/0x8b0 drivers/base/dd.c:657 __driver_probe_device+0x193/0x280 drivers/base/dd.c:799 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:829 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:957 bus_for_each_drv+0x264/0x300 drivers/base/bus.c:459 __device_attach+0x2c4/0x3c0 drivers/base/dd.c:1029 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1078 bus_probe_device+0x18b/0x270 drivers/base/bus.c:534 page last free pid 45 tgid 45 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 __folio_put+0x272/0x2c0 mm/swap.c:115 folio_put include/linux/mm.h:1589 [inline] free_large_kmalloc+0xb7/0x110 mm/slub.c:4842 kfree+0x209/0x440 mm/slub.c:4869 usbhid_disconnect+0xab/0xc0 drivers/hid/usbhid/hid-core.c:1479 usb_unbind_interface+0x2ad/0xa40 drivers/usb/core/driver.c:462 device_remove drivers/base/dd.c:569 [inline] __device_release_driver drivers/base/dd.c:1272 [inline] device_release_driver_internal+0x525/0x830 drivers/base/dd.c:1295 device_release_driver+0x1d/0x30 drivers/base/dd.c:1318 bus_remove_device+0x34f/0x370 drivers/base/bus.c:576 device_del+0x583/0xcf0 drivers/base/core.c:3881 usb_disable_device+0x3af/0x770 drivers/usb/core/message.c:1476 usb_disconnect+0x331/0x950 drivers/usb/core/hub.c:2353 hub_port_connect drivers/usb/core/hub.c:5414 [inline] hub_port_connect_change drivers/usb/core/hub.c:5714 [inline] port_event drivers/usb/core/hub.c:5878 [inline] hub_event+0x1ad5/0x4360 drivers/usb/core/hub.c:5960 process_one_work kernel/workqueue.c:3273 [inline] process_scheduled_works+0x7f7/0x1060 kernel/workqueue.c:3354 worker_thread+0xc99/0x13f0 kernel/workqueue.c:3435 kthread+0x2c7/0x360 kernel/kthread.c:389 Memory state around the buggy address: ffff88812000ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812000ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888120010000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888120010080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888120010100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================