KASAN: use-after-free Read in roccat_disconnect

Status: premoderation: reported on 2026/09/22 18:49
Reported-by: syzbot+e9c05bc775f17c88d9e6@syzkaller.appspotmail.com
First crash: 15d, last: 15d
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 KASAN: use-after-free Read in roccat_disconnect 19 syz, C 4 4d03h 19d 0/2 upstream: reported C repro on 2026/09/18 05:49
android-5-15 KASAN: use-after-free Read in roccat_disconnect 19 syz, C 5 7d01h 26d 0/2 upstream: reported C repro on 2026/09/11 19:13
android-6-12 KASAN: slab-use-after-free Read in roccat_disconnect 19 syz, C 21 9d07h 24d 0/1 premoderation: reported C repro on 2026/09/13 11:34
upstream KASAN: slab-use-after-free Read in roccat_disconnect prio:high input usb 19 syz, C error 20 15d 35d 0/29 upstream: reported C repro on 2026/09/02 18:57

Sample crash report:
usb 2-1: USB disconnect, device number 2
==================================================================
BUG: KASAN: use-after-free in roccat_disconnect+0x22d/0x240 drivers/hid/hid-roccat.c:373
Read of size 4 at addr ffff888134a2c008 by task kworker/0:1/19

CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event

Call Trace:
 <TASK>
 __dump_stack+0x21/0x24 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x71/0x200 mm/kasan/report.c:316
 print_report+0x4a/0x60 mm/kasan/report.c:420
 kasan_report+0x122/0x150 mm/kasan/report.c:524
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350
 roccat_disconnect+0x22d/0x240 drivers/hid/hid-roccat.c:373
 savu_remove_specials drivers/hid/hid-roccat-savu.c:107 [inline]
 savu_remove+0xec/0x170 drivers/hid/hid-roccat-savu.c:147
 hid_device_remove+0x292/0x3c0 drivers/hid/hid-core.c:-1
 device_remove drivers/base/dd.c:548 [inline]
 __device_release_driver drivers/base/dd.c:1283 [inline]
 device_release_driver_internal+0x486/0x7e0 drivers/base/dd.c:1309
 device_release_driver+0x19/0x20 drivers/base/dd.c:1332
 bus_remove_device+0x2f0/0x350 drivers/base/bus.c:531
 device_del+0x63c/0xe50 drivers/base/core.c:3886
 hid_remove_device drivers/hid/hid-core.c:2872 [inline]
 hid_destroy_device+0x6a/0x110 drivers/hid/hid-core.c:2891
 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1469
 usb_unbind_interface+0x223/0x8b0 drivers/usb/core/driver.c:459
 device_remove drivers/base/dd.c:550 [inline]
 __device_release_driver drivers/base/dd.c:1283 [inline]
 device_release_driver_internal+0x4e4/0x7e0 drivers/base/dd.c:1309
 device_release_driver+0x19/0x20 drivers/base/dd.c:1332
 bus_remove_device+0x2f0/0x350 drivers/base/bus.c:531
 device_del+0x63c/0xe50 drivers/base/core.c:3886
 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1472
 usb_disconnect+0x32d/0x880 drivers/usb/core/hub.c:2339
 hub_port_connect drivers/usb/core/hub.c:5433 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
 port_event drivers/usb/core/hub.c:5898 [inline]
 hub_event+0x1a66/0x4310 drivers/usb/core/hub.c:5980
 process_one_work+0x717/0xc30 kernel/workqueue.c:2302
 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
 kthread+0x281/0x320 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Allocated by task 295:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
 ____kasan_kmalloc mm/kasan/common.c:380 [inline]
 __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389
 kasan_kmalloc include/linux/kasan.h:212 [inline]
 kmalloc_trace+0x40/0xb0 mm/slab_common.c:1033
 kmalloc include/linux/slab.h:563 [inline]
 kzalloc include/linux/slab.h:699 [inline]
 roccat_connect+0x5c/0x4b0 drivers/hid/hid-roccat.c:306
 savu_init_specials drivers/hid/hid-roccat-savu.c:81 [inline]
 savu_probe+0x1ba/0x360 drivers/hid/hid-roccat-savu.c:131
 hid_device_probe+0x267/0x3a0 drivers/hid/hid-core.c:2672
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb0b/0xec0 drivers/base/core.c:3698
 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2824
 usbhid_probe+0xc12/0xff0 drivers/hid/usbhid/hid-core.c:1442
 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb0b/0xec0 drivers/base/core.c:3698
 usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
 usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
 __driver_probe_device+0x193/0x270 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb0b/0xec0 drivers/base/core.c:3698
 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684
 hub_port_connect drivers/usb/core/hub.c:5594 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
 port_event drivers/usb/core/hub.c:5898 [inline]
 hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980
 process_one_work+0x717/0xc30 kernel/workqueue.c:2302
 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
 kthread+0x281/0x320 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Freed by task 359:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250
 kasan_slab_free include/linux/kasan.h:178 [inline]
 slab_free_hook mm/slub.c:1750 [inline]
 slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776
 slab_free mm/slub.c:3712 [inline]
 __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728
 kfree+0x6f/0xf0 mm/slab_common.c:990
 roccat_release+0x2bc/0x380 drivers/hid/hid-roccat.c:229
 __fput+0x1fd/0x8f0 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x1e1/0x250 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff888134a2c000
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
 512-byte region [ffff888134a2c000, ffff888134a2c200)

The buggy address belongs to the physical page:
page:ffffea0004d28b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x134a2c
head:ffffea0004d28b00 order:2 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100042f00
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 369, tgid 369 (kworker/0:4), ts 27753968613, free_ts 27723076209
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680
 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587
 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931
 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1
 allocate_slab mm/slub.c:1967 [inline]
 new_slab+0x98/0x3e0 mm/slub.c:2020
 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177
 __slab_alloc+0x5e/0xa0 mm/slub.c:3263
 slab_alloc_node mm/slub.c:3348 [inline]
 __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423
 __do_kmalloc_node mm/slab_common.c:937 [inline]
 __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958
 kmalloc_reserve net/core/skbuff.c:449 [inline]
 __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518
 alloc_skb include/linux/skbuff.h:1322 [inline]
 nlmsg_new include/net/netlink.h:987 [inline]
 inet6_ifa_notify net/ipv6/addrconf.c:5569 [inline]
 __ipv6_ifa_notify+0x200/0xe80 net/ipv6/addrconf.c:6227
 ipv6_ifa_notify net/ipv6/addrconf.c:6279 [inline]
 addrconf_dad_completed+0x192/0xe80 net/ipv6/addrconf.c:4283
 addrconf_dad_work+0xc1b/0x14a0 net/ipv6/addrconf.c:-1
 process_one_work+0x717/0xc30 kernel/workqueue.c:2302
 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1581 [inline]
 free_pcp_prepare mm/page_alloc.c:1655 [inline]
 free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622
 free_unref_page+0x93/0x530 mm/page_alloc.c:3720
 free_the_page mm/page_alloc.c:863 [inline]
 __free_pages+0x67/0x100 mm/page_alloc.c:6021
 free_pages+0x82/0x90 mm/page_alloc.c:6032
 __stack_depot_save+0x45f/0x490 lib/stackdepot.c:506
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_set_track+0x60/0x70 mm/kasan/common.c:53
 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334
 kasan_slab_alloc include/linux/kasan.h:202 [inline]
 slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768
 slab_alloc_node mm/slub.c:3382 [inline]
 slab_alloc mm/slub.c:3392 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3399 [inline]
 kmem_cache_alloc+0x166/0x320 mm/slub.c:3408
 skb_clone+0x1e8/0x380 net/core/skbuff.c:1663
 do_one_broadcast net/netlink/af_netlink.c:1454 [inline]
 netlink_broadcast+0x698/0x11c0 net/netlink/af_netlink.c:1525
 uevent_net_broadcast_untagged lib/kobject_uevent.c:331 [inline]
 kobject_uevent_net_broadcast+0x3cb/0x5b0 lib/kobject_uevent.c:409
 kobject_uevent_env+0x541/0x720 lib/kobject_uevent.c:608
 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657
 device_del+0xcda/0xe50 drivers/base/core.c:3906

Memory state around the buggy address:
 ffff888134a2bf00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff888134a2bf80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
>ffff888134a2c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff888134a2c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888134a2c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
delayedwork_callback: delayedwork queued before hidpp interface was enumerated

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/22 18:49 android14-6.1 c5f3d472ff4d e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in roccat_disconnect
2026/09/22 18:48 android14-6.1 c5f3d472ff4d e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in roccat_disconnect
* Struck through repros no longer work on HEAD.