================================================================== BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265 Read of size 40 at addr ffff8880557a5700 by task fido_id/8745 CPU: 1 UID: 0 PID: 8745 Comm: fido_id Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2265 kernfs_file_read_iter fs/kernfs/file.c:269 [inline] kernfs_fop_read_iter+0x434/0x6a0 fs/kernfs/file.c:298 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x595/0xa80 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:717 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3b87ea7407 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:00007ffe45972f50 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f3b88608880 RCX: 00007f3b87ea7407 RDX: 0000000000001000 RSI: 00007ffe45972fa0 RDI: 0000000000000004 RBP: 0000565239f57730 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000565239f56930 R13: 00007ffe45972fa0 R14: 0000000000000004 R15: 000056521ed274d8 Allocated by task 5698: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5296 [inline] __kmalloc_node_track_caller_noprof+0x4d7/0x7b0 mm/slub.c:5408 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:763 [inline] hid_open_report+0x1fa/0xf00 drivers/hid/hid-core.c:1376 hid_parse include/linux/hid.h:1206 [inline] lg_probe+0x29c/0x890 drivers/hid/hid-lg.c:783 __hid_device_probe drivers/hid/hid-core.c:2822 [inline] hid_device_probe+0x42c/0x7c0 drivers/hid/hid-core.c:2859 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:709 __driver_probe_device+0x1f5/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c4/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12a/0x220 drivers/base/bus.c:613 device_add+0x7d4/0xb90 drivers/base/core.c:3706 hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3003 usbhid_probe+0xba5/0x10a0 drivers/hid/usbhid/hid-core.c:1449 usb_probe_interface+0x653/0xc60 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:709 __driver_probe_device+0x1f5/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c4/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12a/0x220 drivers/base/bus.c:613 device_add+0x7d4/0xb90 drivers/base/core.c:3706 usb_set_configuration+0x1ad8/0x2180 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:709 __driver_probe_device+0x1f5/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __device_attach_driver+0x279/0x430 drivers/base/dd.c:1029 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c4/0x450 drivers/base/dd.c:1101 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1156 bus_probe_device+0x12a/0x220 drivers/base/bus.c:613 device_add+0x7d4/0xb90 drivers/base/core.c:3706 usb_new_device+0x99d/0x1620 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+0x28e8/0x4d30 drivers/usb/core/hub.c:5953 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880557a5700 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of freed 64-byte region [ffff8880557a5700, ffff8880557a5740) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x557a5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813fe188c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800200020 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5898, tgid 5897 (syz.1.39), ts 113690422504, free_ts 113383271847 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x24ae/0x2530 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x336/0x3d0 mm/slub.c:7272 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x320/0x720 mm/slub.c:4652 alloc_from_pcs mm/slub.c:4750 [inline] slab_alloc_node mm/slub.c:4884 [inline] __do_kmalloc_node mm/slub.c:5295 [inline] __kmalloc_noprof+0x464/0x750 mm/slub.c:5308 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] hash_netportnet4_resize+0xa59/0x1b80 net/netfilter/ipset/ip_set_hash_gen.h:710 call_ad+0x439/0xb50 net/netfilter/ipset/ip_set_core.c:1758 ip_set_ad+0x824/0x9d0 net/netfilter/ipset/ip_set_core.c:1842 nfnetlink_rcv_msg+0xcc2/0x12b0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2555 nfnetlink_rcv+0x2b9/0x28c0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1899 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] ____sys_sendmsg+0x9b9/0xa20 net/socket.c:2699 page last free pid 5941 tgid 5938 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1397 [inline] free_unref_folios+0xdb2/0x14d0 mm/page_alloc.c:2999 folios_put_refs+0xa59/0xba0 mm/swap.c:1008 folio_batch_release include/linux/folio_batch.h:101 [inline] truncate_inode_pages_range+0x3ca/0xd80 mm/truncate.c:408 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0x109/0x2f0 block/bdev.c:720 blkdev_put_whole block/bdev.c:727 [inline] bdev_release+0x443/0x690 block/bdev.c:1152 blkdev_release+0x15/0x20 block/fops.c:705 __fput+0x418/0xa50 fs/file_table.c:510 task_work_run+0x1d9/0x270 kernel/task_work.c:233 get_signal+0x1181/0x12c0 kernel/signal.c:2810 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0xa9/0x6b0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] __do_fast_syscall_32+0x45b/0x6f0 arch/x86/entry/syscall_32.c:310 do_fast_syscall_32+0x33/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Memory state around the buggy address: ffff8880557a5600: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880557a5680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880557a5700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8880557a5780: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880557a5800: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================