================================================================== BUG: KASAN: slab-use-after-free in read_report_descriptor+0xb4/0x100 drivers/hid/hid-core.c:2244 Read of size 24 at addr ffff888116a11100 by task fido_id/1701 CPU: 0 UID: 0 PID: 1701 Comm: fido_id Not tainted syzkaller #0 4c7c6fabea823c7a50d4a31162f440126d0e7a76 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x25a/0x2b0 mm/kasan/generic.c:189 __asan_memcpy+0x31/0x80 mm/kasan/shadow.c:105 read_report_descriptor+0xb4/0x100 drivers/hid/hid-core.c:2244 sysfs_kf_bin_read+0x1c6/0x200 fs/sysfs/file.c:97 kernfs_file_read_iter fs/kernfs/file.c:269 [inline] kernfs_fop_read_iter+0x2fa/0x570 fs/kernfs/file.c:298 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x60b/0xc70 fs/read_write.c:570 ksys_read+0x145/0x260 fs/read_write.c:713 __do_sys_read fs/read_write.c:723 [inline] __se_sys_read fs/read_write.c:721 [inline] __x64_sys_read+0x7f/0x90 fs/read_write.c:721 x64_sys_call+0x2638/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:1 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:0x7fd1798a7407 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:00007fff46539900 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fd179f43880 RCX: 00007fd1798a7407 RDX: 0000000000001000 RSI: 00007fff46539950 RDI: 0000000000000004 RBP: 0000557b0a8772c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000557b0a8764c0 R13: 00007fff46539950 R14: 0000000000000004 R15: 0000557aea35a4d8 Allocated by task 420: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/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] __do_kmalloc_node mm/slub.c:4395 [inline] __kmalloc_node_track_caller_noprof+0x24e/0x4f0 mm/slub.c:4414 kmemdup_noprof+0x31/0x80 mm/util.c:139 kmemdup_noprof include/linux/fortify-string.h:753 [inline] hid_open_report+0x200/0x1120 drivers/hid/hid-core.c:1276 hid_parse include/linux/hid.h:1139 [inline] sony_probe+0x18a/0x5f0 drivers/hid/hid-sony.c:2082 __hid_device_probe drivers/hid/hid-core.c:2760 [inline] hid_device_probe+0x2ce/0x5f0 drivers/hid/hid-core.c:2797 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 hid_add_device+0x3c4/0x5a0 drivers/hid/hid-core.c:2943 usbhid_probe+0xdca/0x1310 drivers/hid/usbhid/hid-core.c:1451 usb_probe_interface+0x6ab/0xbf0 drivers/usb/core/driver.c:400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 usb_set_configuration+0x1aad/0x2080 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0x95/0x160 drivers/usb/core/generic.c:254 usb_probe_device+0x1ef/0x3b0 drivers/usb/core/driver.c:295 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 usb_new_device+0x98d/0x1500 drivers/usb/core/hub.c:2703 hub_port_connect drivers/usb/core/hub.c:5574 [inline] hub_port_connect_change drivers/usb/core/hub.c:5714 [inline] port_event drivers/usb/core/hub.c:5878 [inline] hub_event+0x2dbd/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 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 420: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:249 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2445 [inline] slab_free mm/slub.c:4714 [inline] kfree+0x158/0x440 mm/slub.c:4875 hid_close_report+0x628/0x6f0 drivers/hid/hid-core.c:723 __hid_device_probe drivers/hid/hid-core.c:2777 [inline] hid_device_probe+0x538/0x5f0 drivers/hid/hid-core.c:2797 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 hid_add_device+0x3c4/0x5a0 drivers/hid/hid-core.c:2943 usbhid_probe+0xdca/0x1310 drivers/hid/usbhid/hid-core.c:1451 usb_probe_interface+0x6ab/0xbf0 drivers/usb/core/driver.c:400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 usb_set_configuration+0x1aad/0x2080 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0x95/0x160 drivers/usb/core/generic.c:254 usb_probe_device+0x1ef/0x3b0 drivers/usb/core/driver.c:295 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2e4/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+0x267/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 device_add+0x7fd/0xbf0 drivers/base/core.c:3692 usb_new_device+0x98d/0x1500 drivers/usb/core/hub.c:2703 hub_port_connect drivers/usb/core/hub.c:5574 [inline] hub_port_connect_change drivers/usb/core/hub.c:5714 [inline] port_event drivers/usb/core/hub.c:5878 [inline] hub_event+0x2dbd/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 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff888116a11100 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of freed 32-byte region [ffff888116a11100, ffff888116a11120) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116a11 anon flags: 0x4000000000000000(zone=1) page_type: f5(slab) raw: 4000000000000000 ffff888100041780 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000400040 00000001f5000000 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 0x152cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 295, tgid 295 (syz-executor), ts 46472275152, free_ts 46472264340 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_slab_page+0x6b/0x1e0 mm/slub.c:-1 allocate_slab+0x69/0x430 mm/slub.c:2687 new_slab mm/slub.c:2741 [inline] ___slab_alloc+0x591/0x8c0 mm/slub.c:3934 __slab_alloc mm/slub.c:4025 [inline] __slab_alloc_node mm/slub.c:4078 [inline] slab_alloc_node mm/slub.c:4239 [inline] __do_kmalloc_node mm/slub.c:4394 [inline] __kmalloc_noprof+0x2fc/0x510 mm/slub.c:4407 kmalloc_noprof include/linux/slab.h:886 [inline] kzalloc_noprof include/linux/slab.h:1117 [inline] ovl_alloc_entry+0x42/0x110 fs/overlayfs/util.c:147 ovl_lookup+0x1493/0x1d20 fs/overlayfs/namei.c:1280 __lookup_slow+0x2e5/0x420 fs/namei.c:1740 lookup_slow+0x57/0x80 fs/namei.c:1757 walk_component+0x308/0x450 fs/namei.c:2061 lookup_last fs/namei.c:2564 [inline] path_lookupat+0x155/0x440 fs/namei.c:2588 filename_lookup+0x22d/0x5a0 fs/namei.c:2617 user_path_at+0x42/0x60 fs/namei.c:3024 page last free pid 295 tgid 295 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 selinux_genfs_get_sid+0x209/0x2d0 security/selinux/hooks.c:1362 inode_doinit_with_dentry+0x8f8/0xde0 security/selinux/hooks.c:1560 selinux_d_instantiate+0x2b/0x40 security/selinux/hooks.c:6361 security_d_instantiate+0xb8/0xf0 security/security.c:4068 d_splice_alias+0x71/0x3a0 fs/dcache.c:2949 kernfs_iop_lookup+0x2c6/0x320 fs/kernfs/dir.c:1233 __lookup_slow+0x2e5/0x420 fs/namei.c:1740 lookup_slow fs/namei.c:1757 [inline] lookup_one_unlocked+0x188/0x2d0 fs/namei.c:2920 ovl_lookup_positive_unlocked fs/overlayfs/namei.c:210 [inline] ovl_lookup_single+0x1de/0xb20 fs/overlayfs/namei.c:240 ovl_lookup_layer+0x355/0x420 fs/overlayfs/namei.c:333 ovl_lookup+0x8c0/0x1d20 fs/overlayfs/namei.c:1124 __lookup_slow+0x2e5/0x420 fs/namei.c:1740 lookup_slow+0x57/0x80 fs/namei.c:1757 Memory state around the buggy address: ffff888116a11000: 00 00 00 00 fc fc fc fc 00 00 01 fc fc fc fc fc ffff888116a11080: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc >ffff888116a11100: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ^ ffff888116a11180: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ffff888116a11200: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc ==================================================================