================================================================== BUG: KASAN: slab-use-after-free in read_report_descriptor+0xb2/0xf0 drivers/hid/hid-core.c:2162 Read of size 7 at addr ffff888025e3ddc0 by task fido_id/27435 CPU: 0 PID: 27435 Comm: fido_id Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 read_report_descriptor+0xb2/0xf0 drivers/hid/hid-core.c:2162 kernfs_file_read_iter fs/kernfs/file.c:269 [inline] kernfs_fop_read_iter+0x42d/0x670 fs/kernfs/file.c:298 call_read_iter include/linux/fs.h:2012 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x46a/0x970 fs/read_write.c:470 ksys_read+0x150/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa4e10a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe7da4d850 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fa4e17ed880 RCX: 00007fa4e10a7407 RDX: 0000000000001000 RSI: 00007ffe7da4d8a0 RDI: 0000000000000004 RBP: 00005609366c6730 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00005609366c5930 R13: 00007ffe7da4d8a0 R14: 0000000000000004 R15: 000056092b5104d8 Allocated by task 28: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc_node_track_caller+0xb2/0x230 mm/slab_common.c:1027 kmemdup+0x2b/0x70 mm/util.c:131 kmemdup include/linux/fortify-string.h:779 [inline] hid_open_report+0x1cd/0xee0 drivers/hid/hid-core.c:1241 hid_parse include/linux/hid.h:1122 [inline] isku_probe+0x86/0x490 drivers/hid/hid-roccat-isku.c:333 __hid_device_probe drivers/hid/hid-core.c:2652 [inline] hid_device_probe+0x293/0x5b0 drivers/hid/hid-core.c:2689 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 hid_add_device+0x38d/0x530 drivers/hid/hid-core.c:2835 usbhid_probe+0xe02/0x1220 drivers/hid/usbhid/hid-core.c:1447 usb_probe_interface+0x5c9/0xb20 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 usb_set_configuration+0x1a79/0x20c0 drivers/usb/core/message.c:2265 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x13d/0x270 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb20 drivers/base/dd.c:718 __driver_probe_device+0x1ef/0x390 drivers/base/dd.c:880 driver_probe_device+0x4f/0x420 drivers/base/dd.c:910 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459 __device_attach+0x2c2/0x420 drivers/base/dd.c:1110 bus_probe_device+0x180/0x260 drivers/base/bus.c:573 device_add+0x88e/0xc50 drivers/base/core.c:3700 usb_new_device+0xa3c/0x1660 drivers/usb/core/hub.c:2660 hub_port_connect drivers/usb/core/hub.c:5529 [inline] hub_port_connect_change drivers/usb/core/hub.c:5669 [inline] port_event drivers/usb/core/hub.c:5833 [inline] hub_event+0x29bf/0x49f0 drivers/usb/core/hub.c:5915 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888025e3ddc0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff888025e3ddc0, ffff888025e3ddc8) The buggy address belongs to the physical page: page:ffffea0000978f40 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888025e3dd20 pfn:0x25e3d anon flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888017c41280 0000000000000000 dead000000000001 raw: ffff888025e3dd20 0000000080660061 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 14949593686, free_ts 13558450006 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2118 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] usb_control_msg+0x74/0x3e0 drivers/usb/core/message.c:157 set_port_feature drivers/usb/core/hub.c:468 [inline] hub_suspend+0x76d/0x980 drivers/usb/core/hub.c:3959 usb_suspend_interface drivers/usb/core/driver.c:1308 [inline] usb_suspend_both+0x28e/0x1060 drivers/usb/core/driver.c:1413 usb_runtime_suspend+0x58/0x100 drivers/usb/core/driver.c:1952 __rpm_callback+0x2eb/0x7e0 drivers/base/power/runtime.c:392 rpm_callback drivers/base/power/runtime.c:446 [inline] rpm_suspend+0x947/0x1af0 drivers/base/power/runtime.c:670 __pm_runtime_suspend+0x12f/0x1a0 drivers/base/power/runtime.c:1140 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 vfree+0x1a6/0x320 mm/vmalloc.c:2868 delayed_vfree_work+0x55/0x80 mm/vmalloc.c:2788 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff888025e3dc80: fa fc fc fc fc fa fc fc fc fc 05 fc fc fc fc fa ffff888025e3dd00: fc fc fc fc fb fc fc fc fc 00 fc fc fc fc 06 fc >ffff888025e3dd80: fc fc fc 06 fc fc fc fc fb fc fc fc fc 05 fc fc ^ ffff888025e3de00: fc fc 05 fc fc fc fc 05 fc fc fc fc 05 fc fc fc ffff888025e3de80: fc 07 fc fc fc fc 05 fc fc fc fc 00 fc fc fc fc ==================================================================