================================================================== BUG: KASAN: slab-use-after-free in report_descriptor_read+0xb5/0x100 drivers/hid/hid-core.c:2279 Read of size 39 at addr ffff888038096e80 by task fido_id/8172 CPU: 0 UID: 0 PID: 8172 Comm: fido_id Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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:2279 kernfs_file_read_iter fs/kernfs/file.c:262 [inline] kernfs_fop_read_iter+0x434/0x6a0 fs/kernfs/file.c:291 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:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa8d2ea7407 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:00007ffd2deba620 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fa8d3580880 RCX: 00007fa8d2ea7407 RDX: 0000000000001000 RSI: 00007ffd2deba670 RDI: 0000000000000004 RBP: 000056366911a730 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000563669119930 R13: 00007ffd2deba670 R14: 0000000000000004 R15: 0000563657f5f4d8 Allocated by task 5751: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_node_track_caller_noprof+0x4af/0x720 mm/slub.c:5662 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:713 [inline] hid_open_report+0x1fa/0xf00 drivers/hid/hid-core.c:1382 hid_parse include/linux/hid.h:1208 [inline] kye_probe+0x21/0x5c0 drivers/hid/hid-kye.c:579 __hid_device_probe drivers/hid/hid-core.c:2839 [inline] hid_device_probe+0x46a/0x870 drivers/hid/hid-core.c:2878 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 device_initial_probe+0x9c/0x100 drivers/base/dd.c:1190 __bus_probe_device+0x126/0x220 drivers/base/bus.c:614 device_add+0x7d7/0xb80 drivers/base/core.c:3778 hid_add_device+0x272/0x3e0 drivers/hid/hid-core.c:3065 usbhid_probe+0x9d4/0xde0 drivers/hid/usbhid/hid-core.c:1459 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 device_initial_probe+0x9c/0x100 drivers/base/dd.c:1190 __bus_probe_device+0x126/0x220 drivers/base/bus.c:614 device_add+0x7d7/0xb80 drivers/base/core.c:3778 usb_set_configuration+0x1bb5/0x2260 drivers/usb/core/message.c:2280 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250 usb_probe_device+0x1c3/0x3b0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 device_initial_probe+0x9c/0x100 drivers/base/dd.c:1190 __bus_probe_device+0x126/0x220 drivers/base/bus.c:614 device_add+0x7d7/0xb80 drivers/base/core.c:3778 usb_new_device+0x9aa/0x1690 drivers/usb/core/hub.c:2713 hub_port_connect drivers/usb/core/hub.c:5585 [inline] hub_port_connect_change drivers/usb/core/hub.c:5725 [inline] port_event drivers/usb/core/hub.c:5889 [inline] hub_event+0x28e8/0x4d30 drivers/usb/core/hub.c:5971 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 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 ffff888038096e80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of freed 64-byte region [ffff888038096e80, ffff888038096ec0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888038096000 pfn:0x38096 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88813ff398c0 ffffea0000d98990 ffffea0001e43090 raw: ffff888038096000 000000000020001a 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 6285, tgid 6284 (syz.3.132), ts 113022774770 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1875 prep_new_page+0x22/0xb0 mm/page_alloc.c:1883 get_page_from_freelist+0x22a1/0x22e0 mm/page_alloc.c:3965 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5507 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7546 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] hash_ipport4_resize+0x9f9/0x1bb0 net/netfilter/ipset/ip_set_hash_gen.h:841 call_ad+0x43a/0xb50 net/netfilter/ipset/ip_set_core.c:1777 ip_set_ad+0x82a/0x9d0 net/netfilter/ipset/ip_set_core.c:1861 nfnetlink_rcv_msg+0xcc2/0x12b0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584 nfnetlink_rcv+0x2b9/0x28c0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 page last free pid 5635 tgid 5635 ts 82294950121 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1419 [inline] __free_frozen_pages+0xc97/0xd90 mm/page_alloc.c:2973 __slab_free+0x269/0x2c0 mm/slub.c:5926 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:364 kasan_slab_alloc include/linux/kasan.h:257 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] __kmalloc_cache_noprof+0x29a/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ____ip_mc_inc_group+0x518/0xdb0 net/ipv4/igmp.c:1601 __ip_mc_inc_group net/ipv4/igmp.c:1639 [inline] ip_mc_inc_group net/ipv4/igmp.c:1645 [inline] ip_mc_up+0x115/0x2e0 net/ipv4/igmp.c:1950 inetdev_event+0xe8a/0x1610 net/ipv4/devinet.c:1620 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2351 [inline] call_netdevice_notifiers net/core/dev.c:2365 [inline] __dev_notify_flags+0x31e/0x510 net/core/dev.c:10043 netif_change_flags+0xde/0x1b0 net/core/dev.c:10072 do_setlink+0xdd6/0x47a0 net/core/rtnetlink.c:3294 rtnl_changelink net/core/rtnetlink.c:3942 [inline] __rtnl_newlink net/core/rtnetlink.c:4113 [inline] rtnl_newlink+0x15b0/0x1c30 net/core/rtnetlink.c:4252 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584 Memory state around the buggy address: ffff888038096d80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff888038096e00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff888038096e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888038096f00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff888038096f80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================