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

Status: upstream: reported on 2026/07/24 21:58
Reported-by: syzbot+b64626956b36064cb03c@syzkaller.appspotmail.com
First crash: 14d, last: 6h40m
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 12 9h59m 14d 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 143 5h06m 10d 0/29 upstream: reported on 2026/07/29 00:19
linux-6.6 KASAN: slab-out-of-bounds Read in dummy_free_request 17 2 4d22h 7d06h 0/2 upstream: reported on 2026/07/31 17:51

Sample crash report:
configfs-gadget gadget: uvc: uvc_function_bind()
configfs-gadget gadget: uvc: Unable to allocate streaming EP
==================================================================
BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:290 [inline]
BUG: KASAN: slab-out-of-bounds in dummy_free_request+0x3b/0x70 drivers/usb/gadget/udc/dummy_hcd.c:687
Read of size 8 at addr ffff88802a3725f0 by task syz.2.495/5969

CPU: 1 PID: 5969 Comm: syz.2.495 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 print_address_description+0x60/0x2d0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xdf/0x130 mm/kasan/report.c:451
 list_empty include/linux/list.h:290 [inline]
 dummy_free_request+0x3b/0x70 drivers/usb/gadget/udc/dummy_hcd.c:687
 uvc_function_bind+0xe24/0x12d0 drivers/usb/gadget/function/f_uvc.c:785
 usb_add_function+0x2d9/0x980 drivers/usb/gadget/composite.c:324
 configfs_composite_bind+0xa02/0xf60 drivers/usb/gadget/configfs.c:1417
 udc_bind_to_driver+0x203/0x5f0 drivers/usb/gadget/udc/core.c:1574
 usb_gadget_probe_driver+0x1fb/0x380 drivers/usb/gadget/udc/core.c:1637
 gadget_dev_desc_UDC_store+0x1ba/0x2e0 drivers/usb/gadget/configfs.c:289
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x30b/0x400 fs/configfs/file.c:229
 call_write_iter include/linux/fs.h:2173 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x748/0xd70 fs/read_write.c:594
 ksys_write+0x153/0x260 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fdfba8f20d9
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:00007fdfb8b4a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fdfbab79fa0 RCX: 00007fdfba8f20d9
RDX: 000000000000000c RSI: 00002000000003c0 RDI: 0000000000000007
RBP: 00007fdfba989024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdfbab7a038 R14: 00007fdfbab79fa0 R15: 00007ffc78901268
 </TASK>

Allocated by task 4545:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc mm/kasan/common.c:513 [inline]
 __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522
 kmalloc_array_node include/linux/slab.h:700 [inline]
 kcalloc_node include/linux/slab.h:705 [inline]
 memcg_alloc_page_obj_cgroups+0x7d/0x120 mm/memcontrol.c:2839
 memcg_slab_post_alloc_hook mm/slab.h:313 [inline]
 slab_post_alloc_hook+0xba/0x380 mm/slab.h:526
 slab_alloc_node mm/slub.c:3225 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238
 vm_area_dup kernel/fork.c:359 [inline]
 dup_mmap kernel/fork.c:558 [inline]
 dup_mm kernel/fork.c:1467 [inline]
 copy_mm+0x8b6/0x13d0 kernel/fork.c:1519
 copy_process+0x17fb/0x3ec0 kernel/fork.c:2291
 kernel_clone+0x23f/0x990 kernel/fork.c:2681
 __do_sys_clone kernel/fork.c:2798 [inline]
 __se_sys_clone kernel/fork.c:2782 [inline]
 __x64_sys_clone+0x19a/0x210 kernel/fork.c:2782
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Last potentially related work creation:
 kasan_save_stack+0x35/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348
 insert_work+0x54/0x3d0 kernel/workqueue.c:1366
 __queue_work+0x90b/0xc80 kernel/workqueue.c:1532
 queue_work_on+0x124/0x1f0 kernel/workqueue.c:1559
 queue_work include/linux/workqueue.h:512 [inline]
 schedule_work include/linux/workqueue.h:573 [inline]
 nf_nat_masq_schedule+0x435/0x540 net/netfilter/nf_nat_masquerade.c:125
 masq_inet_event+0x13e/0x1c0 net/netfilter/nf_nat_masquerade.c:203
 notifier_call_chain kernel/notifier.c:83 [inline]
 blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:318
 __inet_del_ifa+0xaac/0x1090 net/ipv4/devinet.c:442
 inet_del_ifa net/ipv4/devinet.c:479 [inline]
 devinet_ioctl+0x913/0x1ba0 net/ipv4/devinet.c:1176
 inet_ioctl+0x2fa/0x460 net/ipv4/af_inet.c:987
 sock_do_ioctl+0xfb/0x320 net/socket.c:1148
 sock_ioctl+0x48a/0x700 net/socket.c:1267
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff88802a372500
 which belongs to the cache kmalloc-128 of size 128
The buggy address is located 112 bytes to the right of
 128-byte region [ffff88802a372500, ffff88802a372580)
The buggy address belongs to the page:
page:ffffea0000a8dc80 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802a372a00 pfn:0x2a372
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea0000aa6d48 ffffea00008a3908 ffff888016c418c0
raw: ffff88802a372a00 0000000000100008 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 4179, ts 68714429053, free_ts 68710953434
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
 alloc_slab_page mm/slub.c:1780 [inline]
 allocate_slab mm/slub.c:1917 [inline]
 new_slab+0xc0/0x4b0 mm/slub.c:1980
 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013
 __slab_alloc mm/slub.c:3100 [inline]
 slab_alloc_node mm/slub.c:3191 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250
 kmalloc include/linux/slab.h:607 [inline]
 kernfs_get_open_node fs/kernfs/file.c:552 [inline]
 kernfs_fop_open+0x887/0xba0 fs/kernfs/file.c:698
 do_dentry_open+0x7f7/0xf90 fs/open.c:826
 do_open fs/namei.c:3616 [inline]
 path_openat+0x2718/0x2fb0 fs/namei.c:3750
 do_filp_open+0x1df/0x400 fs/namei.c:3777
 do_sys_openat2+0x14b/0x500 fs/open.c:1255
 do_sys_open fs/open.c:1271 [inline]
 __do_sys_openat fs/open.c:1287 [inline]
 __se_sys_openat fs/open.c:1282 [inline]
 __x64_sys_openat+0x135/0x160 fs/open.c:1282
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
 free_slab mm/slub.c:2020 [inline]
 discard_slab mm/slub.c:2026 [inline]
 __unfreeze_partials+0x188/0x1e0 mm/slub.c:2512
 put_cpu_partial+0x12d/0x190 mm/slub.c:2592
 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283
 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3225 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 __kmalloc+0x189/0x340 mm/slub.c:4408
 kmalloc include/linux/slab.h:612 [inline]
 tomoyo_realpath_from_path+0xed/0x5e0 security/tomoyo/realpath.c:254
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x23f/0x5d0 security/tomoyo/file.c:822
 security_inode_getattr+0xcf/0x120 security/security.c:1349
 vfs_getattr+0x26/0x3a0 fs/stat.c:157
 vfs_fstat fs/stat.c:182 [inline]
 __do_sys_newfstat fs/stat.c:421 [inline]
 __se_sys_newfstat fs/stat.c:418 [inline]
 __x64_sys_newfstat+0x137/0x210 fs/stat.c:418
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Memory state around the buggy address:
 ffff88802a372480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88802a372500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
>ffff88802a372580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                             ^
 ffff88802a372600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802a372680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/07 17:55 linux-5.15.y aabd761612db e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
2026/07/31 16:31 linux-5.15.y 6e2fd6534337 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
2026/07/24 22:02 linux-5.15.y 674f684f7c61 dd737a83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
2026/07/24 21:58 linux-5.15.y 674f684f7c61 dd737a83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
2026/07/24 21:57 linux-5.15.y 674f684f7c61 dd737a83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in dummy_free_request
* Struck through repros no longer work on HEAD.