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

Status: upstream: reported on 2026/07/31 17:51
Reported-by: syzbot+a236d4685e1899dec24c@syzkaller.appspotmail.com
First crash: 2d10h, last: 1h58m
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: slab-out-of-bounds Read in dummy_free_request 17 9 2d22h 9d06h 0/3 upstream: reported on 2026/07/24 22:09
upstream KASAN: slab-out-of-bounds Read in dummy_free_request usb prio:normal 17 95 14h07m 5d04h 0/29 upstream: reported on 2026/07/29 00:19
linux-5.15 KASAN: slab-out-of-bounds Read in dummy_free_request 17 4 2d12h 9d06h 0/3 upstream: reported on 2026/07/24 21:58

Sample crash report:
configfs-gadget.g1 gadget.0: uvc: uvc_function_bind()
configfs-gadget.g1 gadget.0: uvc: Unable to allocate streaming EP
==================================================================
BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:373 [inline]
BUG: KASAN: slab-out-of-bounds in dummy_free_request+0x3f/0x70 drivers/usb/gadget/udc/dummy_hcd.c:690
Read of size 8 at addr ffff88805b492bf0 by task syz.8.3337/20958

CPU: 0 PID: 20958 Comm: syz.8.3337 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
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
 list_empty include/linux/list.h:373 [inline]
 dummy_free_request+0x3f/0x70 drivers/usb/gadget/udc/dummy_hcd.c:690
 uvc_function_bind+0xd5f/0x1530 drivers/usb/gadget/function/f_uvc.c:880
 usb_add_function+0x2dd/0x980 drivers/usb/gadget/composite.c:333
 configfs_composite_bind+0xde4/0x13f0 drivers/usb/gadget/configfs.c:1800
 gadget_bind_driver+0x2b3/0x770 drivers/usb/gadget/udc/core.c:1651
 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
 __driver_attach+0x444/0x6d0 drivers/base/dd.c:1295
 bus_for_each_dev+0x235/0x2b0 drivers/base/bus.c:370
 bus_add_driver+0x340/0x630 drivers/base/bus.c:723
 driver_register+0x23a/0x310 drivers/base/driver.c:246
 usb_gadget_register_driver_owner+0xf9/0x270 drivers/usb/gadget/udc/core.c:1730
 gadget_dev_desc_UDC_store+0x1c7/0x2e0 drivers/usb/gadget/configfs.c:300
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x312/0x400 fs/configfs/file.c:229
 call_write_iter include/linux/fs.h:2018 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_write+0x151/0x260 fs/read_write.c:637
 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
RIP: 0033:0x7fd444f9e019
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd445dd2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd445226270 RCX: 00007fd444f9e019
RDX: 000000000000000b RSI: 0000200000000380 RDI: 0000000000000007
RBP: 00007fd44503500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd445226308 R14: 00007fd445226270 R15: 00007ffe33ed5968
 </TASK>

Allocated by task 5777:
 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
 kasan_kmalloc include/linux/kasan.h:198 [inline]
 __do_kmalloc_node mm/slab_common.c:1007 [inline]
 __kmalloc_node+0xb6/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
 memcg_slab_post_alloc_hook mm/slab.h:535 [inline]
 slab_post_alloc_hook+0xec/0x4d0 mm/slab.h:778
 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
 prepare_creds+0x30/0x5d0 kernel/cred.c:207
 copy_creds+0x105/0xa70 kernel/cred.c:308
 copy_process+0x973/0x3da0 kernel/fork.c:2373
 kernel_clone+0x24b/0x8a0 kernel/fork.c:2919
 __do_sys_clone kernel/fork.c:3062 [inline]
 __se_sys_clone kernel/fork.c:3046 [inline]
 __x64_sys_clone+0x1b7/0x230 kernel/fork.c:3046
 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

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
 kvfree_call_rcu+0xee/0x780 kernel/rcu/tree.c:3452
 kernfs_unlink_open_file+0x457/0x500 fs/kernfs/file.c:653
 kernfs_fop_release+0x12e/0x190 fs/kernfs/file.c:825
 __fput+0x221/0x940 fs/file_table.c:418
 __do_sys_close fs/open.c:1574 [inline]
 __se_sys_close+0x15c/0x1e0 fs/open.c:1559
 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

Second to last potentially related work creation:
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
 kvfree_call_rcu+0xee/0x780 kernel/rcu/tree.c:3452
 kernfs_unlink_open_file+0x457/0x500 fs/kernfs/file.c:653
 kernfs_fop_release+0x12e/0x190 fs/kernfs/file.c:825
 __fput+0x221/0x940 fs/file_table.c:418
 __do_sys_close fs/open.c:1574 [inline]
 __se_sys_close+0x15c/0x1e0 fs/open.c:1559
 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

The buggy address belongs to the object at ffff88805b492b00
 which belongs to the cache kmalloc-128 of size 128
The buggy address is located 112 bytes to the right of
 allocated 128-byte region [ffff88805b492b00, ffff88805b492b80)

The buggy address belongs to the physical page:
page:ffffea00016d2480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5b492
flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000800 ffff888017c418c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 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 0x112820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 5777, tgid 5777 (syz-executor), ts 82387469952, free_ts 26794903495
 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_slab_page+0x5d/0x180 mm/slub.c:1881
 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
 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098
 kmalloc include/linux/slab.h:600 [inline]
 __hw_addr_create net/core/dev_addr_lists.c:60 [inline]
 __hw_addr_add_ex+0x1f4/0x700 net/core/dev_addr_lists.c:118
 __hw_addr_sync_one net/core/dev_addr_lists.c:216 [inline]
 __hw_addr_sync+0x126/0x270 net/core/dev_addr_lists.c:278
 ieee80211_set_multicast_list+0x145/0x200 net/mac80211/iface.c:831
 __dev_mc_add net/core/dev_addr_lists.c:871 [inline]
 dev_mc_add+0xc8/0x120 net/core/dev_addr_lists.c:885
 ip_mc_filter_add net/ipv4/igmp.c:1159 [inline]
 igmp_group_added+0x1e0/0x910 net/ipv4/igmp.c:1348
 ____ip_mc_inc_group+0x882/0xac0 net/ipv4/igmp.c:1482
 __ip_mc_inc_group net/ipv4/igmp.c:1491 [inline]
 ip_mc_inc_group net/ipv4/igmp.c:1497 [inline]
 ip_mc_up+0x125/0x300 net/ipv4/igmp.c:1796
 inetdev_event+0x104b/0x1610 net/ipv4/devinet.c:1611
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
 free_contig_range+0xa1/0x150 mm/page_alloc.c:6421
 destroy_args+0x7d/0x840 mm/debug_vm_pgtable.c:1015
 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400
 do_one_initcall+0x242/0x790 init/main.c:1249
 do_initcall_level+0x13d/0x1f0 init/main.c:1311
 do_initcalls+0x69/0xd0 init/main.c:1327
 kernel_init_freeable+0x3d9/0x560 init/main.c:1564
 kernel_init+0x1d/0x1c0 init/main.c:1454
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293

Memory state around the buggy address:
 ffff88805b492a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88805b492b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805b492b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                             ^
 ffff88805b492c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805b492c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/03 02:34 linux-6.6.y a1153c0deb44 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
2026/07/31 17:51 linux-6.6.y a1153c0deb44 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
* Struck through repros no longer work on HEAD.