================================================================== BUG: KASAN: slab-use-after-free in report_descriptor_read+0xbb/0x100 drivers/hid/hid-core.c:2218 Read of size 6 at addr ffff8880202d8820 by task fido_id/8806 CPU: 0 UID: 0 PID: 8806 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:194 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:200 __asan_memcpy+0x23/0x60 mm/kasan/shadow.c:105 report_descriptor_read+0xbb/0x100 drivers/hid/hid-core.c:2218 sysfs_kf_bin_read+0x156/0x210 fs/sysfs/file.c:103 kernfs_file_read_iter fs/kernfs/file.c:269 [inline] kernfs_fop_read_iter+0x32b/0x610 fs/kernfs/file.c:298 new_sync_read fs/read_write.c:491 [inline] vfs_read+0x8bf/0xcf0 fs/read_write.c:572 ksys_read+0x12a/0x250 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f27ef6a7407 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:00007fff8d858fb0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f27efdac880 RCX: 00007f27ef6a7407 RDX: 0000000000001000 RSI: 00007fff8d859000 RDI: 0000000000000004 RBP: 0000563ca7ea42c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000563ca7ea34c0 R13: 00007fff8d859000 R14: 0000000000000004 R15: 0000563c6a1324d8 Allocated by task 6858: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:397 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:414 kasan_kmalloc include/linux/kasan.h:262 [inline] __do_kmalloc_node mm/slub.c:5652 [inline] __kmalloc_node_track_caller_noprof+0x353/0x930 mm/slub.c:5759 kmemdup_noprof+0x29/0x60 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:765 [inline] hid_open_report+0x223/0x830 drivers/hid/hid-core.c:1303 hid_parse include/linux/hid.h:1165 [inline] lg_probe+0x244/0x850 drivers/hid/hid-lg.c:783 __hid_device_probe drivers/hid/hid-core.c:2775 [inline] hid_device_probe+0x5ba/0x8d0 drivers/hid/hid-core.c:2812 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xb20 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x470 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x350 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4e0 drivers/base/dd.c:1031 device_initial_probe+0xaa/0xc0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x150 drivers/base/bus.c:574 device_add+0x116e/0x1980 drivers/base/core.c:3689 hid_add_device+0x31b/0x5c0 drivers/hid/hid-core.c:2951 usbhid_probe+0xd5d/0x1410 drivers/hid/usbhid/hid-core.c:1435 usb_probe_interface+0x303/0xa80 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xb20 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x470 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x350 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4e0 drivers/base/dd.c:1031 device_initial_probe+0xaa/0xc0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x150 drivers/base/bus.c:574 device_add+0x116e/0x1980 drivers/base/core.c:3689 usb_set_configuration+0x1187/0x1e50 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0xb1/0x110 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xb20 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x470 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __device_attach_driver+0x1df/0x350 drivers/base/dd.c:959 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4e0 drivers/base/dd.c:1031 device_initial_probe+0xaa/0xc0 drivers/base/dd.c:1086 bus_probe_device+0x64/0x150 drivers/base/bus.c:574 device_add+0x116e/0x1980 drivers/base/core.c:3689 usb_new_device+0xd07/0x1a90 drivers/usb/core/hub.c:2695 hub_port_connect drivers/usb/core/hub.c:5567 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x313a/0x52f0 drivers/usb/core/hub.c:5953 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the object at ffff8880202d8820 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff8880202d8820, ffff8880202d8828) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x202d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff26500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000800080 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 2524022426, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] __do_kmalloc_node mm/slub.c:5651 [inline] __kmalloc_noprof+0x4fc/0x910 mm/slub.c:5664 kmalloc_noprof include/linux/slab.h:961 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] acpi_ns_internalize_name+0x161/0x2e0 drivers/acpi/acpica/nsutils.c:331 acpi_ns_get_node_unlocked+0x180/0x4f0 drivers/acpi/acpica/nsutils.c:666 acpi_ns_get_node+0x6c/0xf0 drivers/acpi/acpica/nsutils.c:726 acpi_get_handle+0x10a/0x280 drivers/acpi/acpica/nsxfname.c:98 acpi_has_method+0x7a/0xc0 drivers/acpi/utils.c:672 acpi_show_attr drivers/acpi/device_sysfs.c:563 [inline] acpi_attr_is_visible+0x476/0x540 drivers/acpi/device_sysfs.c:588 create_files fs/sysfs/group.c:69 [inline] internal_create_group+0x523/0xf70 fs/sysfs/group.c:189 internal_create_groups+0x9d/0x150 fs/sysfs/group.c:229 page_owner free stack trace missing Memory state around the buggy address: ffff8880202d8700: 05 fc fc fc 04 fc fc fc 00 fc fc fc fa fc fc fc ffff8880202d8780: 06 fc fc fc 06 fc fc fc 06 fc fc fc 05 fc fc fc >ffff8880202d8800: 05 fc fc fc fb fc fc fc 00 fc fc fc 05 fc fc fc ^ ffff8880202d8880: 05 fc fc fc fa fc fc fc fa fc fc fc 05 fc fc fc ffff8880202d8900: 05 fc fc fc 06 fc fc fc 05 fc fc fc 05 fc fc fc ==================================================================