================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-use-after-free in string+0x471/0x4d0 lib/vsprintf.c:730 Read of size 1 at addr ffff888026f01420 by task syz.1.4173/17682 CPU: 1 UID: 0 PID: 17682 Comm: syz.1.4173 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 string_nocheck lib/vsprintf.c:648 [inline] string+0x471/0x4d0 lib/vsprintf.c:730 vsnprintf+0x422/0x1300 lib/vsprintf.c:2949 seq_vprintf fs/seq_file.c:392 [inline] seq_printf+0x1a4/0x250 fs/seq_file.c:407 irq_seq_show+0x390/0x8b0 kernel/irq/proc.c:601 seq_read_iter+0xbce/0x1270 fs/seq_file.c:273 proc_reg_read_iter+0x220/0x310 fs/proc/inode.c:299 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x82e/0xb40 fs/read_write.c:574 ksys_read+0x12a/0x250 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff55eb9e159 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:00007ff55f9bc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007ff55ee25fa0 RCX: 00007ff55eb9e159 RDX: 0000000000002020 RSI: 00002000000043c0 RDI: 0000000000000004 RBP: 00007ff55ec3506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff55ee26038 R14: 00007ff55ee25fa0 R15: 00007ffc05f9f928 Allocated by task 17549: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x32f/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] nsim_fib6_event_init drivers/net/netdevsim/fib.c:810 [inline] nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] nsim_fib_event_nb+0x661/0xe50 drivers/net/netdevsim/fib.c:1043 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 atomic_notifier_call_chain+0x71/0x1c0 kernel/notifier.c:223 call_fib_notifiers+0x33/0x70 net/core/fib_notifier.c:36 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:412 [inline] fib6_del_route net/ipv6/ip6_fib.c:2054 [inline] fib6_del+0xec3/0x1790 net/ipv6/ip6_fib.c:2096 fib6_clean_node+0x426/0x5d0 net/ipv6/ip6_fib.c:2258 fib6_walk_continue+0x451/0x8d0 net/ipv6/ip6_fib.c:2180 fib6_walk+0x182/0x350 net/ipv6/ip6_fib.c:2228 fib6_clean_tree+0xdc/0x120 net/ipv6/ip6_fib.c:2308 __fib6_clean_all+0x107/0x2d0 net/ipv6/ip6_fib.c:2324 rt6_sync_down_dev net/ipv6/route.c:5049 [inline] rt6_disable_ip+0x2a6/0x980 net/ipv6/route.c:5054 addrconf_ifdown.isra.0+0x11d/0x1b70 net/ipv6/addrconf.c:3889 addrconf_notify+0x4a3/0x1ba0 net/ipv6/addrconf.c:3812 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2275 call_netdevice_notifiers_extack net/core/dev.c:2313 [inline] call_netdevice_notifiers net/core/dev.c:2327 [inline] __dev_notify_flags+0x2fc/0x4b0 net/core/dev.c:9866 netif_change_flags+0x108/0x160 net/core/dev.c:9893 do_setlink.isra.0+0x1ac4/0x3e60 net/core/rtnetlink.c:3271 rtnl_group_changelink net/core/rtnetlink.c:3924 [inline] __rtnl_newlink net/core/rtnetlink.c:4090 [inline] rtnl_newlink+0x1dc4/0x2620 net/core/rtnetlink.c:4220 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7137 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2575 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2713 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2767 __sys_sendmsg+0x160/0x210 net/socket.c:2799 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5700: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/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:6508 [inline] kfree+0x22b/0x6d0 mm/slub.c:6801 nsim_fib_event drivers/net/netdevsim/fib.c:891 [inline] nsim_fib_event_work+0x352/0x6330 drivers/net/netdevsim/fib.c:1493 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888026f01420 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff888026f01420, ffff888026f01428) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888026f010a0 pfn:0x26f01 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801c034500 ffffea000085a650 ffffea0000701c50 raw: ffff888026f010a0 0000000000800076 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 3824400429 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7417 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 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_node_track_caller_noprof+0x6a8/0x870 mm/slub.c:5545 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x51/0xe0 mm/util.c:84 kstrdup_const+0x63/0x80 mm/util.c:104 kvasprintf_const+0x10f/0x1a0 lib/kasprintf.c:48 kobject_set_name_vargs+0x5a/0x140 lib/kobject.c:274 dev_set_name+0xc7/0x100 drivers/base/core.c:3564 tty_register_device_attr+0x2fb/0x7f0 drivers/tty/tty_io.c:3230 tty_register_device drivers/tty/tty_io.c:3171 [inline] tty_register_driver+0x769/0xb50 drivers/tty/tty_io.c:3449 legacy_pty_init drivers/tty/pty.c:579 [inline] pty_init+0x65d/0xdc0 drivers/tty/pty.c:919 do_one_initcall+0x11c/0x6f0 init/main.c:1362 page last free pid 183 tgid 183 ts 3824199954 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962 __kasan_populate_vmalloc_do mm/kasan/shadow.c:393 [inline] __kasan_populate_vmalloc+0x1ea/0x210 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:580 [inline] alloc_vmap_area+0x95d/0x2bb0 mm/vmalloc.c:2145 __get_vm_area_node+0x1ed/0x350 mm/vmalloc.c:3248 __vmalloc_node_range_noprof+0x268/0x1420 mm/vmalloc.c:4064 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4165 alloc_thread_stack_node kernel/fork.c:359 [inline] dup_task_struct kernel/fork.c:930 [inline] copy_process+0x803/0x8370 kernel/fork.c:2133 kernel_clone+0x176/0x9d0 kernel/fork.c:2769 user_mode_thread+0xd1/0x120 kernel/fork.c:2846 call_usermodehelper_exec_work kernel/umh.c:169 [inline] call_usermodehelper_exec_work+0xcb/0x180 kernel/umh.c:155 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888026f01300: 05 fc fc fc 05 fc fc fc fa fc fc fc 05 fc fc fc ffff888026f01380: fa fc fc fc 05 fc fc fc 05 fc fc fc fa fc fc fc >ffff888026f01400: 05 fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff888026f01480: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff888026f01500: 05 fc fc fc 04 fc fc fc 00 fc fc fc 00 fc fc fc ==================================================================