================================================================== BUG: KASAN: slab-use-after-free in report_descriptor_read+0xc2/0x110 drivers/hid/hid-core.c:2209 Read of size 8 at addr ffff8881096442a0 by task fido_id/3743 CPU: 0 UID: 0 PID: 3743 Comm: fido_id Not tainted syzkaller #0 PREEMPT 7b32342664761768bd4934e758236049799e697d Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x10b/0x180 lib/dump_stack.c:120 print_address_description+0x72/0x220 mm/kasan/report.c:378 print_report+0x67/0x90 mm/kasan/report.c:482 kasan_report+0x163/0x1a0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2bc/0x2d0 mm/kasan/generic.c:189 __asan_memcpy+0x31/0x80 mm/kasan/shadow.c:105 report_descriptor_read+0xc2/0x110 drivers/hid/hid-core.c:2209 sysfs_kf_bin_read+0x247/0x270 fs/sysfs/file.c:-1 kernfs_file_read_iter fs/kernfs/file.c:269 [inline] kernfs_fop_read_iter+0x305/0x5a0 fs/kernfs/file.c:298 new_sync_read fs/read_write.c:491 [inline] vfs_read+0x62d/0xc60 fs/read_write.c:572 ksys_read+0x142/0x250 fs/read_write.c:715 __do_sys_read fs/read_write.c:724 [inline] __se_sys_read fs/read_write.c:722 [inline] __x64_sys_read+0x7f/0x90 fs/read_write.c:722 x64_sys_call+0x270d/0x2fd0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x62/0x160 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f61234a7407 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:00007ffd3672d820 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f6123baa880 RCX: 00007f61234a7407 RDX: 0000000000001000 RSI: 00007ffd3672d870 RDI: 0000000000000004 RBP: 000055dd9af9b2c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055dd9af9a4c0 R13: 00007ffd3672d870 R14: 0000000000000004 R15: 000055dd653704d8 Allocated by task 29: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x9a/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4376 [inline] __kmalloc_node_track_caller_noprof+0x1f2/0x460 mm/slub.c:4395 kmemdup_noprof+0x31/0x80 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:765 [inline] hid_open_report+0x234/0x1140 drivers/hid/hid-core.c:1294 hid_parse include/linux/hid.h:1133 [inline] lg_probe+0x29a/0x920 drivers/hid/hid-lg.c:783 __hid_device_probe drivers/hid/hid-core.c:2740 [inline] hid_device_probe+0x3b3/0x750 drivers/hid/hid-core.c:2777 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 hid_add_device+0x39b/0x560 drivers/hid/hid-core.c:2923 usbhid_probe+0xdf0/0x12c0 drivers/hid/usbhid/hid-core.c:1435 usb_probe_interface+0x6ae/0xc70 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 usb_set_configuration+0x1ae2/0x20c0 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0x95/0x160 drivers/usb/core/generic.c:250 usb_probe_device+0x1ce/0x370 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 usb_new_device+0x9f0/0x15b0 drivers/usb/core/hub.c:2694 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x2c80/0x4270 drivers/usb/core/hub.c:5952 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0x7d5/0x1040 kernel/workqueue.c:3319 worker_thread+0xc4e/0x1270 kernel/workqueue.c:3400 kthread+0x6f4/0x880 kernel/kthread.c:463 ret_from_fork+0x184/0x250 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 29: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x4a/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x63/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2422 [inline] slab_free mm/slub.c:4695 [inline] kfree+0x156/0x3f0 mm/slub.c:4894 hid_close_report+0x67a/0x770 drivers/hid/hid-core.c:731 __hid_device_probe drivers/hid/hid-core.c:2757 [inline] hid_device_probe+0x633/0x750 drivers/hid/hid-core.c:2777 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 hid_add_device+0x39b/0x560 drivers/hid/hid-core.c:2923 usbhid_probe+0xdf0/0x12c0 drivers/hid/usbhid/hid-core.c:1435 usb_probe_interface+0x6ae/0xc70 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 usb_set_configuration+0x1ae2/0x20c0 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0x95/0x160 drivers/usb/core/generic.c:250 usb_probe_device+0x1ce/0x370 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cf/0x8c0 drivers/base/dd.c:659 __driver_probe_device+0x195/0x280 drivers/base/dd.c:801 driver_probe_device+0x54/0x3f0 drivers/base/dd.c:831 __device_attach_driver+0x2f1/0x4b0 drivers/base/dd.c:959 bus_for_each_drv+0x25b/0x2f0 drivers/base/bus.c:462 __device_attach+0x2b5/0x3a0 drivers/base/dd.c:1031 device_initial_probe+0x1e/0x30 drivers/base/dd.c:1080 bus_probe_device+0x188/0x270 drivers/base/bus.c:537 device_add+0x803/0xbf0 drivers/base/core.c:3689 usb_new_device+0x9f0/0x15b0 drivers/usb/core/hub.c:2694 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x2c80/0x4270 drivers/usb/core/hub.c:5952 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0x7d5/0x1040 kernel/workqueue.c:3319 worker_thread+0xc4e/0x1270 kernel/workqueue.c:3400 kthread+0x6f4/0x880 kernel/kthread.c:463 ret_from_fork+0x184/0x250 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8881096442a0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff8881096442a0, ffff8881096442a8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109644 anon flags: 0x4000000000000000(zone=1) page_type: f5(slab) raw: 4000000000000000 ffff888100041500 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080800080 00000000f5000000 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 2109960026, free_ts 2059986756 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x262/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x2056/0x2120 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x2bb/0x510 mm/page_alloc.c:5148 alloc_slab_page+0x26/0xc0 mm/slub.c:-1 allocate_slab+0x69/0x460 mm/slub.c:2660 new_slab mm/slub.c:2714 [inline] ___slab_alloc+0x5a5/0x930 mm/slub.c:3901 __slab_alloc mm/slub.c:3992 [inline] __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] __do_kmalloc_node mm/slub.c:4375 [inline] __kmalloc_noprof+0x267/0x440 mm/slub.c:4388 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] acpi_ns_internalize_name+0x2d0/0x470 drivers/acpi/acpica/nsutils.c:331 acpi_ns_get_node_unlocked drivers/acpi/acpica/nsutils.c:666 [inline] acpi_ns_get_node+0x1a3/0x350 drivers/acpi/acpica/nsutils.c:726 acpi_get_handle+0x181/0x2a0 drivers/acpi/acpica/nsxfname.c:98 acpi_has_method+0x86/0xd0 drivers/acpi/utils.c:672 acpi_show_attr drivers/acpi/device_sysfs.c:570 [inline] acpi_attr_is_visible+0x330/0x4f0 drivers/acpi/device_sysfs.c:588 create_files fs/sysfs/group.c:65 [inline] internal_create_group+0x65f/0x1070 fs/sysfs/group.c:183 internal_create_groups fs/sysfs/group.c:223 [inline] sysfs_create_groups+0x5c/0x130 fs/sysfs/group.c:249 device_add_groups drivers/base/core.c:2836 [inline] device_add_attrs+0x1b1/0x820 drivers/base/core.c:2911 device_add+0x4e5/0xbf0 drivers/base/core.c:3643 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xad5/0xbc0 mm/page_alloc.c:2895 free_frozen_pages+0xf/0x30 mm/page_alloc.c:2933 __free_slab+0xc5/0x120 mm/slub.c:2729 free_slab+0x16/0x120 mm/slub.c:2752 discard_slab+0x23/0x40 mm/slub.c:2758 __slab_free+0x201/0x2b0 mm/slub.c:4606 do_slab_free mm/slub.c:4647 [inline] ___cache_free+0xcb/0xe0 mm/slub.c:4753 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0xb7/0x130 mm/kasan/quarantine.c:179 kasan_quarantine_remove_cache+0x340/0x360 mm/kasan/quarantine.c:378 kasan_cache_shrink+0xd/0x20 mm/kasan/generic.c:206 kmem_cache_shrink+0x11/0x30 mm/slab_common.c:558 acpi_os_purge_cache+0x19/0x30 drivers/acpi/osl.c:1605 acpi_purge_cached_objects+0x93/0xd0 drivers/acpi/acpica/utxface.c:239 acpi_initialize_objects+0x14/0x70 drivers/acpi/acpica/utxfinit.c:250 acpi_bus_init+0xc2/0x540 drivers/acpi/bus.c:1367 acpi_init+0xa5/0x1fb drivers/acpi/bus.c:1456 Memory state around the buggy address: ffff888109644180: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff888109644200: 06 fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff888109644280: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff888109644300: fa fc fc fc fa fc fc fc 00 fc fc fc fa fc fc fc ffff888109644380: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ==================================================================