UDC core: USB Raw Gadget: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_register_driver returned -16 input: syz0 as /devices/virtual/input/input269 ================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-use-after-free in string+0x216/0x2d0 lib/vsprintf.c:730 Read of size 1 at addr ffff888025809220 by task syz.5.5760/28299 CPU: 0 UID: 0 PID: 28299 Comm: syz.5.5760 Tainted: G CPU: 0 UID: 0 PID: 28299 Comm: syz.5.5760 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: 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 string_nocheck lib/vsprintf.c:648 [inline] string+0x216/0x2d0 lib/vsprintf.c:730 vsnprintf+0x74a/0xef0 lib/vsprintf.c:2949 seq_vprintf fs/seq_file.c:392 [inline] seq_printf+0x188/0x290 fs/seq_file.c:407 input_devices_seq_show+0x145/0x640 drivers/input/input.c:1179 seq_read_iter+0x8d5/0xca0 fs/seq_file.c:273 seq_read+0x367/0x480 fs/seq_file.c:163 pde_read fs/proc/inode.c:308 [inline] proc_reg_read+0x1e9/0x2e0 fs/proc/inode.c:320 vfs_read+0x213/0xa80 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff623d9e159 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:00007ff624cc1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007ff624025fa0 RCX: 00007ff623d9e159 RDX: 0000000000002020 RSI: 0000200000000300 RDI: 000000000000000b RBP: 00007ff623e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff624026038 R14: 00007ff624025fa0 R15: 00007ff62414fa48 Allocated by task 27901: 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:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kvmalloc_node_noprof+0x50f/0x820 mm/slub.c:7005 bucket_table_alloc lib/rhashtable.c:197 [inline] __rhashtable_init_noprof+0x545/0xaf0 lib/rhashtable.c:1214 ioam6_net_init+0xeb/0x150 net/ipv6/ioam6.c:996 ops_init+0x35d/0x5d0 net/core/net_namespace.c:137 setup_net+0x118/0x350 net/core/net_namespace.c:443 copy_net_ns+0x53b/0x780 net/core/net_namespace.c:582 create_new_namespaces+0x3f0/0x6b0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x149/0x190 kernel/nsproxy.c:234 ksys_unshare+0x5a7/0x950 kernel/fork.c:3292 __do_sys_unshare kernel/fork.c:3356 [inline] __se_sys_unshare kernel/fork.c:3354 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3354 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 27901: 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:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x1c5/0x650 mm/slub.c:6792 bucket_table_free lib/rhashtable.c:116 [inline] rhashtable_free_and_destroy+0x3b3/0x410 lib/rhashtable.c:1328 ioam6_net_exit+0x60/0x70 net/ipv6/ioam6.c:1015 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x43d/0x8d0 net/core/net_namespace.c:253 setup_net+0x2f6/0x350 net/core/net_namespace.c:459 copy_net_ns+0x53b/0x780 net/core/net_namespace.c:582 create_new_namespaces+0x3f0/0x6b0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x149/0x190 kernel/nsproxy.c:234 ksys_unshare+0x5a7/0x950 kernel/fork.c:3292 __do_sys_unshare kernel/fork.c:3356 [inline] __se_sys_unshare kernel/fork.c:3354 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3354 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888025809000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 544 bytes inside of freed 1024-byte region [ffff888025809000, ffff888025809400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802580f000 pfn:0x25808 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b041dc0 ffffea00015c0a10 ffffea0000ad6010 raw: ffff88802580f000 0000000000100006 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801b041dc0 ffffea00015c0a10 ffffea0000ad6010 head: ffff88802580f000 0000000000100006 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 59, tgid 59 (kworker/u8:4), ts 76562907317 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x47b/0x720 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] neigh_alloc net/core/neighbour.c:518 [inline] ___neigh_create+0x6d2/0x22b0 net/core/neighbour.c:652 ip6_finish_output2+0xe0f/0x1460 net/ipv6/ip6_output.c:130 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip6_output+0x337/0x540 net/ipv6/ip6_output.c:248 dst_output include/net/dst.h:471 [inline] NF_HOOK include/linux/netfilter.h:325 [inline] ndisc_send_skb+0xcb2/0x1650 net/ipv6/ndisc.c:513 ndisc_send_ns+0xd7/0x160 net/ipv6/ndisc.c:672 addrconf_dad_work+0xa8d/0x15c0 net/ipv6/addrconf.c:4318 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x480 kernel/kthread.c:436 page last free pid 5746 tgid 5742 ts 76550606652 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962 rh_call_control drivers/usb/core/hcd.c:700 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:817 [inline] usb_hcd_submit_urb+0x774/0x1b60 drivers/usb/core/hcd.c:1538 proc_do_submiturb+0x265c/0x3430 drivers/usb/core/devio.c:1970 proc_submiturb+0x134/0x1a0 drivers/usb/core/devio.c:2002 usbdev_do_ioctl drivers/usb/core/devio.c:2705 [inline] usbdev_ioctl+0x10fc/0x2120 drivers/usb/core/devio.c:2829 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888025809100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888025809180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888025809200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888025809280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888025809300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================