KASAN: slab-out-of-bounds Read in steelseries_remove

Status: upstream: reported C repro on 2026/09/02 23:17
Reported-by: syzbot+1e2f6b6e6ee282c53cd0@syzkaller.appspotmail.com
First crash: 15d, last: 3d18h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-12 UBSAN: array-index-out-of-bounds in steelseries_remove 15 syz, C 7 8h25m 102d 0/1 premoderation: reported C repro on 2026/06/08 15:56

Sample crash report:
usb 1-1: USB disconnect, device number 2
==================================================================
BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x10c/0x7d80 kernel/locking/lockdep.c:5005
Read of size 8 at addr ffff888026d722d0 by task kworker/0:2/174

CPU: 0 PID: 174 Comm: kworker/0:2 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_lvl+0x18c/0x250 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xa8/0x210 mm/kasan/report.c:468
 kasan_report+0x117/0x150 mm/kasan/report.c:581
 __lock_acquire+0x10c/0x7d80 kernel/locking/lockdep.c:5005
 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xb4/0x100 kernel/locking/spinlock.c:162
 steelseries_remove+0x84/0x180 drivers/hid/hid-steelseries.c:564
 hid_device_remove+0x222/0x360 drivers/hid/hid-core.c:-1
 device_remove drivers/base/dd.c:626 [inline]
 __device_release_driver drivers/base/dd.c:1351 [inline]
 device_release_driver_internal+0x408/0x6f0 drivers/base/dd.c:1374
 bus_remove_device+0x43b/0x520 drivers/base/bus.c:624
 device_del+0x51f/0x910 drivers/base/core.c:3889
 hid_remove_device drivers/hid/hid-core.c:2915 [inline]
 hid_destroy_device+0x6a/0x100 drivers/hid/hid-core.c:2935
 usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1474
 usb_unbind_interface+0x207/0x870 drivers/usb/core/driver.c:458
 device_remove drivers/base/dd.c:628 [inline]
 __device_release_driver drivers/base/dd.c:1351 [inline]
 device_release_driver_internal+0x458/0x6f0 drivers/base/dd.c:1374
 bus_remove_device+0x43b/0x520 drivers/base/bus.c:624
 device_del+0x51f/0x910 drivers/base/core.c:3889
 usb_disable_device+0x3ee/0x8a0 drivers/usb/core/message.c:1474
 usb_disconnect+0x340/0x8a0 drivers/usb/core/hub.c:2320
 hub_port_connect drivers/usb/core/hub.c:5374 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5674 [inline]
 port_event drivers/usb/core/hub.c:5838 [inline]
 hub_event+0x1d69/0x4a80 drivers/usb/core/hub.c:5920
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Allocated by task 5854:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 ____kasan_kmalloc mm/kasan/common.c:375 [inline]
 __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384
 kmalloc include/linux/slab.h:600 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 steelseries_srws1_probe drivers/hid/hid-steelseries.c:253 [inline]
 steelseries_probe+0x1e1/0xe00 drivers/hid/hid-steelseries.c:528
 __hid_device_probe drivers/hid/hid-core.c:2681 [inline]
 hid_device_probe+0x290/0x5a0 drivers/hid/hid-core.c:2718
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x247/0xae0 drivers/base/dd.c:717
 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879
 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909
 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037
 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
 __device_attach+0x2c1/0x420 drivers/base/dd.c:1109
 bus_probe_device+0x180/0x260 drivers/base/bus.c:580
 device_add+0x87c/0xc40 drivers/base/core.c:3700
 hid_add_device+0x365/0x500 drivers/hid/hid-core.c:2864
 usbhid_probe+0xe43/0x1260 drivers/hid/usbhid/hid-core.c:1447
 usb_probe_interface+0x5c2/0xaf0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x247/0xae0 drivers/base/dd.c:717
 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879
 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909
 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037
 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
 __device_attach+0x2c1/0x420 drivers/base/dd.c:1109
 bus_probe_device+0x180/0x260 drivers/base/bus.c:580
 device_add+0x87c/0xc40 drivers/base/core.c:3700
 usb_set_configuration+0x1ad0/0x2150 drivers/usb/core/message.c:2265
 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238
 usb_probe_device+0x12a/0x260 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x247/0xae0 drivers/base/dd.c:717
 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:879
 driver_probe_device+0x4f/0x420 drivers/base/dd.c:909
 __device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1037
 bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
 __device_attach+0x2c1/0x420 drivers/base/dd.c:1109
 bus_probe_device+0x180/0x260 drivers/base/bus.c:580
 device_add+0x87c/0xc40 drivers/base/core.c:3700
 usb_new_device+0x995/0x1550 drivers/usb/core/hub.c:2665
 hub_port_connect drivers/usb/core/hub.c:5534 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5674 [inline]
 port_event drivers/usb/core/hub.c:5838 [inline]
 hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5920
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293

The buggy address belongs to the object at ffff888026d72200
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 72 bytes to the right of
 allocated 136-byte region [ffff888026d72200, ffff888026d72288)

The buggy address belongs to the physical page:
page:ffffea00009b5c80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26d72
flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000800 ffff888017c41a00 dead000000000122 0000000000000000
raw: 0000000000000000 0000000080100010 00000001ffffffff 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 5141, tgid 5141 (udevd), ts 93309926442, free_ts 93102885541
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582
 prep_new_page mm/page_alloc.c:1589 [inline]
 get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221
 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501
 __alloc_pages_node include/linux/gfp.h:237 [inline]
 alloc_slab_page+0x4f/0x180 mm/slub.c:1883
 allocate_slab mm/slub.c:2028 [inline]
 new_slab+0x87/0x2d0 mm/slub.c:2081
 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253
 __slab_alloc mm/slub.c:3339 [inline]
 __slab_alloc_node mm/slub.c:3392 [inline]
 slab_alloc_node mm/slub.c:3485 [inline]
 __kmem_cache_alloc_node+0x11f/0x250 mm/slub.c:3534
 __do_kmalloc_node mm/slab_common.c:1006 [inline]
 __kmalloc_node+0xa6/0x240 mm/slab_common.c:1014
 kmalloc_array_node include/linux/slab.h:698 [inline]
 kcalloc_node include/linux/slab.h:703 [inline]
 memcg_alloc_slab_cgroups+0x85/0x120 mm/memcontrol.c:2928
 account_slab mm/slab.h:641 [inline]
 allocate_slab mm/slub.c:2046 [inline]
 new_slab+0xc3/0x2d0 mm/slub.c:2081
 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253
 __slab_alloc mm/slub.c:3339 [inline]
 __slab_alloc_node mm/slub.c:3392 [inline]
 slab_alloc_node mm/slub.c:3485 [inline]
 slab_alloc mm/slub.c:3503 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3510 [inline]
 kmem_cache_alloc_lru+0xfc/0x2b0 mm/slub.c:3526
 alloc_inode_sb include/linux/fs.h:2976 [inline]
 shmem_alloc_inode+0x28/0x40 mm/shmem.c:4419
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x63/0x1d0 fs/inode.c:1049
 new_inode+0x22/0x1d0 fs/inode.c:1075
 __shmem_get_inode mm/shmem.c:2467 [inline]
 shmem_get_inode+0x34d/0xcd0 mm/shmem.c:2539
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1182 [inline]
 free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366
 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459
 discard_slab mm/slub.c:2127 [inline]
 __unfreeze_partials+0x1cf/0x210 mm/slub.c:2667
 put_cpu_partial+0x17c/0x250 mm/slub.c:2743
 __slab_free+0x319/0x400 mm/slub.c:3700
 qlink_free mm/kasan/quarantine.c:166 [inline]
 qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185
 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770
 slab_alloc_node mm/slub.c:3495 [inline]
 slab_alloc mm/slub.c:3503 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3510 [inline]
 kmem_cache_alloc+0x17e/0x2c0 mm/slub.c:3519
 getname_flags+0xbb/0x500 fs/namei.c:140
 do_sys_openat2+0xda/0x1d0 fs/open.c:1416
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1448
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
 ffff888026d72180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888026d72200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888026d72280: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                 ^
 ffff888026d72300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888026d72380: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/05 21:32 linux-6.6.y 8b73de7da85f 4f7b22a0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/14 23:34 linux-6.6.y 79643295eba1 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/14 23:33 linux-6.6.y 79643295eba1 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/10 18:08 linux-6.6.y 8b73de7da85f 1fe56c0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/10 18:08 linux-6.6.y 8b73de7da85f 1fe56c0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/02 23:17 linux-6.6.y 8b73de7da85f 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
2026/09/02 23:16 linux-6.6.y 8b73de7da85f 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in steelseries_remove
* Struck through repros no longer work on HEAD.