KASAN: slab-use-after-free Read in dummy_timer

Status: upstream: reported on 2026/08/22 02:22
Subsystems: usb
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+ba7702afee9d7d1375f0@syzkaller.appspotmail.com
First crash: 104d, last: 2d21h
▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
6f4822ba repro-c 💥 KASAN: slab-use-after-free Read in dummy_timer 2026/09/14 21:05 2026/09/14 21:05 2026/09/15 01:54 81a27d1a
f96ea831 repro-c 💥 KASAN: slab-use-after-free Read in dummy_timer 2026/09/04 08:27 2026/09/04 09:41 2026/09/04 11:41 801f0966
7b4f7c87 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-use-after-free Read in dummy_timer 2026/08/20 00:01 2026/08/20 00:01 2026/08/20 01:08 1e72964b
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [usb?] KASAN: slab-use-after-free Read in dummy_timer 0 (1) 2026/08/22 02:22
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dummy_timer (2) prio:high usb 19 syz, C 97 105d 736d 29/30 fixed on 2026/08/17 15:57
linux-6.6 KASAN: slab-use-after-free Read in dummy_timer origin:upstream 19 syz, C error 18 11d 516d 0/2 upstream: reported C repro on 2025/07/02 21:23
linux-5.15 KASAN: use-after-free Read in dummy_timer 19 2 463d 553d 0/3 auto-obsoleted due to no activity on 2025/12/02 15:39
upstream general protection fault in dummy_timer usb 2 2 1110d 1156d 0/30 auto-obsoleted due to no activity on 2024/02/14 16:35
linux-5.15 KASAN: use-after-free Read in dummy_timer (2) 19 2 297d 301d 0/3 auto-obsoleted due to no activity on 2026/05/16 23:24

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1650 [inline]
BUG: KASAN: slab-use-after-free in dummy_timer+0xcf6/0x4d50 drivers/usb/gadget/udc/dummy_hcd.c:1922
Read of size 1 at addr ffff888064b1c0e8 by task ktimers/1/29

CPU: 1 UID: 0 PID: 29 Comm: ktimers/1 Tainted: G             L      syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 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
 find_endpoint drivers/usb/gadget/udc/dummy_hcd.c:1650 [inline]
 dummy_timer+0xcf6/0x4d50 drivers/usb/gadget/udc/dummy_hcd.c:1922
 __run_hrtimer kernel/time/hrtimer.c:2079 [inline]
 __hrtimer_run_queues+0x3eb/0xaf0 kernel/time/hrtimer.c:2136
 hrtimer_run_softirq+0x1e1/0x2e0 kernel/time/hrtimer.c:2153
 handle_softirqs+0x1d4/0x6c0 kernel/softirq.c:669
 __do_softirq kernel/softirq.c:703 [inline]
 run_ktimerd+0x6a/0x100 kernel/softirq.c:1208
 smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162
 kthread+0x38b/0x470 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
 </TASK>

Allocated by task 6932:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 poison_kmalloc_redzone mm/kasan/common.c:409 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __do_kmalloc_node mm/slub.c:5531 [inline]
 __kmalloc_noprof+0x418/0x790 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 usb_copy_descriptors+0xf7/0x320 drivers/usb/gadget/config.c:82
 f_midi2_bind+0x276e/0x2c90 drivers/usb/gadget/function/f_midi2.c:2025
 usb_add_function+0x290/0x930 drivers/usb/gadget/composite.c:333
 configfs_composite_bind+0xde0/0x1410 drivers/usb/gadget/configfs.c:1802
 gadget_bind_driver+0x2ca/0x9e0 drivers/usb/gadget/udc/core.c:1663
 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
 __driver_attach+0x34e/0x630 drivers/base/dd.c:1300
 bus_for_each_dev+0x23e/0x2c0 drivers/base/bus.c:383
 bus_add_driver+0x392/0x6e0 drivers/base/bus.c:782
 driver_register+0x23a/0x320 drivers/base/driver.c:174
 usb_gadget_register_driver_owner+0xf9/0x270 drivers/usb/gadget/udc/core.c:1753
 gadget_dev_desc_UDC_store+0x1c9/0x2f0 drivers/usb/gadget/configfs.c:300
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x33a/0x430 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:575 [inline]
 vfs_write+0x61e/0xbb0 fs/read_write.c:667
 ksys_write+0x156/0x270 fs/read_write.c:719
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 14953:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:264 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6630 [inline]
 kfree+0x1c5/0x6d0 mm/slub.c:6923
 usb_free_descriptors include/linux/usb/gadget.h:903 [inline]
 usb_free_all_descriptors+0x78/0x110 drivers/usb/gadget/config.c:151
 purge_configs_funcs+0x248/0x3d0 drivers/usb/gadget/configfs.c:1600
 configfs_composite_unbind+0xa0/0x1b0 drivers/usb/gadget/configfs.c:1846
 gadget_unbind_driver+0x1cb/0x410 drivers/usb/gadget/udc/core.c:1725
 device_remove drivers/base/dd.c:617 [inline]
 __device_release_driver drivers/base/dd.c:1357 [inline]
 device_release_driver_internal+0x42b/0x7d0 drivers/base/dd.c:1380
 driver_detach+0x1f3/0x2d0 drivers/base/dd.c:1443
 bus_remove_driver+0x229/0x320 drivers/base/bus.c:851
 usb_gadget_unregister_driver+0x4e/0x70 drivers/usb/gadget/udc/core.c:1785
 unregister_gadget drivers/usb/gadget/configfs.c:263 [inline]
 gadget_dev_desc_UDC_store+0x17a/0x2f0 drivers/usb/gadget/configfs.c:290
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x33a/0x430 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:575 [inline]
 vfs_write+0x61e/0xbb0 fs/read_write.c:667
 ksys_write+0x156/0x270 fs/read_write.c:719
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888064b1c000
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 232 bytes inside of
 freed 512-byte region [ffff888064b1c000, ffff888064b1c200)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x64b1c
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813ff18c80 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813ff18c80 dead000000000100 dead000000000122
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 0080000000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5607, tgid 5607 (syz-executor), ts 119926082177
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1860
 prep_new_page mm/page_alloc.c:1868 [inline]
 get_page_from_freelist+0x25d4/0x2650 mm/page_alloc.c:3950
 __alloc_frozen_pages_noprof+0x230/0x470 mm/page_alloc.c:5492
 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+0x2d8/0x350 mm/slub.c:7539
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x339/0x690 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+0x546/0x790 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x30/0xf0 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x149/0x890 net/ipv6/route.c:3827
 ip6_route_add+0x49/0x1d0 net/ipv6/route.c:3956
 addrconf_prefix_route+0x3a2/0x480 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x504/0xba0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0xa0a/0xe10 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x90c/0xac0 net/netlink/af_netlink.c:1361
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888064b1bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888064b1c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888064b1c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                          ^
 ffff888064b1c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888064b1c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (45):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/11 00:59 upstream 067c5c24cef2 d3056657 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/11/09 02:35 upstream fa4ad798f6f6 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/11/05 22:11 upstream 05441d697f7f 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/11/05 20:45 upstream 05441d697f7f 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/10/06 09:41 upstream 2c3418fffa9d f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/10/06 09:41 upstream 2c3418fffa9d f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/19 00:21 upstream c3d85c669d09 8d7d05f1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/15 17:27 upstream 587858367581 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/12 10:00 upstream 5225b8eec4c9 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/09 06:10 upstream 893e11787f78 8387c273 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/02 14:26 upstream 89a312991dc6 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/01 22:49 upstream 786262be6048 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 14:16 upstream cee9395acd80 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 13:42 upstream cee9395acd80 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/30 20:04 upstream 08dbfad3f504 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/28 09:20 upstream 1b78070aaef6 e2fa417d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/28 08:58 upstream 1b78070aaef6 e2fa417d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/27 12:34 upstream 73e3f0710014 a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/11/28 00:12 linux-next a9c48428cbd8 55735c54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/11/21 14:53 linux-next 909ef7a9a30f b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/10/05 04:29 linux-next f0406245cb98 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/10/05 04:26 linux-next f0406245cb98 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/10/05 04:21 linux-next f0406245cb98 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/26 09:49 linux-next f5f84daefcd9 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/19 18:20 linux-next 9d80aa4617b3 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/09/14 14:23 linux-next 9d80aa4617b3 924033e8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/09/09 20:45 linux-next 9d80aa4617b3 4e8b1cc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/09/05 23:35 linux-next 9d80aa4617b3 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 10:29 linux-next e30626823a40 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 10:28 linux-next e30626823a40 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 02:30 linux-next e30626823a40 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/31 00:06 linux-next e30626823a40 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/08/21 14:22 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 23:56 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 21:05 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 18:28 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 17:53 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 17:47 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 17:38 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 17:37 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/20 17:37 linux-next 7079a12d7506 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in dummy_timer
2026/08/18 02:14 linux-next e6664f2b33db 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in dummy_timer
2026/09/12 10:10 upstream 5225b8eec4c9 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-out-of-bounds Read in dummy_timer
2026/08/25 13:23 upstream 66498c75b4f8 614e416a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: use-after-free Read in dummy_timer
2026/08/23 09:39 linux-next 903c1cf6dff9 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in dummy_timer
* Struck through repros no longer work on HEAD.