================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:646 [inline] BUG: KASAN: slab-use-after-free in string+0x20f/0x2b0 lib/vsprintf.c:728 Read of size 1 at addr ffff888102a940e0 by task syz.3.759/3074 CPU: 0 UID: 0 PID: 3074 Comm: syz.3.759 Not tainted syzkaller #0 bcd0852b9269e5a174a9e289c8567167f3c3d1d7 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120 print_address_description+0x71/0x210 mm/kasan/report.c:377 print_report+0x4a/0x70 mm/kasan/report.c:481 kasan_report+0x162/0x1a0 mm/kasan/report.c:594 __asan_report_load1_noabort+0x18/0x20 mm/kasan/report_generic.c:378 string_nocheck lib/vsprintf.c:646 [inline] string+0x20f/0x2b0 lib/vsprintf.c:728 vsnprintf+0xe65/0x1ad0 lib/vsprintf.c:2803 seq_vprintf fs/seq_file.c:391 [inline] seq_printf+0x189/0x290 fs/seq_file.c:406 show_interrupts+0x6d2/0x7f0 kernel/irq/proc.c:524 seq_read_iter+0xa80/0xf30 fs/seq_file.c:272 proc_reg_read_iter+0x1e7/0x2c0 fs/proc/inode.c:299 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x60e/0xc70 fs/read_write.c:570 ksys_read+0x145/0x260 fs/read_write.c:713 __do_sys_read fs/read_write.c:723 [inline] __se_sys_read fs/read_write.c:721 [inline] __x64_sys_read+0x7f/0x90 fs/read_write.c:721 x64_sys_call+0x2638/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fc1c659e559 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:00007fc1c750e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fc1c6825fa0 RCX: 00007fc1c659e559 RDX: 0000000000002020 RSI: 0000200000000500 RDI: 0000000000000006 RBP: 00007fc1c6635ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc1c6826038 R14: 00007fc1c6825fa0 R15: 00007ffded1e9778 Allocated by task 698: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x96/0xb0 mm/kasan/common.c:396 kasan_kmalloc include/linux/kasan.h:261 [inline] __do_kmalloc_node mm/slub.c:4395 [inline] __kmalloc_node_noprof+0x252/0x500 mm/slub.c:4401 kmalloc_node_noprof include/linux/slab.h:1008 [inline] __vmalloc_area_node mm/vmalloc.c:3674 [inline] __vmalloc_node_range_noprof+0x529/0x1300 mm/vmalloc.c:3878 __vmalloc_node_noprof mm/vmalloc.c:3949 [inline] vzalloc_noprof+0x103/0x1d0 mm/vmalloc.c:4022 xt_counters_alloc+0x6c/0xe0 net/netfilter/x_tables.c:1403 __do_replace+0xb3/0x9b0 net/ipv6/netfilter/ip6_tables.c:1063 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0xa7f/0xd70 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x28d/0x2b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x130/0x170 net/ipv6/ipv6_sockglue.c:998 tcp_setsockopt+0xf2/0x110 net/ipv4/tcp.c:4064 sock_common_setsockopt+0xb8/0xd0 net/core/sock.c:3869 do_sock_setsockopt+0x27c/0x410 net/socket.c:2313 __sys_setsockopt net/socket.c:2338 [inline] __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0x18c/0x220 net/socket.c:2341 x64_sys_call+0x2adc/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e Freed by task 698: kasan_save_stack mm/kasan/common.c:49 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:70 kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:249 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2445 [inline] slab_free mm/slub.c:4714 [inline] kfree+0x158/0x440 mm/slub.c:4875 kvfree+0x39/0x50 mm/util.c:716 vfree+0x4de/0x5b0 mm/vmalloc.c:3415 __do_replace+0x86a/0x9b0 net/ipv6/netfilter/ip6_tables.c:1107 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0xa7f/0xd70 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x28d/0x2b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x130/0x170 net/ipv6/ipv6_sockglue.c:998 tcp_setsockopt+0xf2/0x110 net/ipv4/tcp.c:4064 sock_common_setsockopt+0xb8/0xd0 net/core/sock.c:3869 do_sock_setsockopt+0x27c/0x410 net/socket.c:2313 __sys_setsockopt net/socket.c:2338 [inline] __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0x18c/0x220 net/socket.c:2341 x64_sys_call+0x2adc/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:47 [inline] do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff888102a940e0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff888102a940e0, ffff888102a940e8) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888102a941a0 pfn:0x102a94 flags: 0x4000000000000200(workingset|zone=1) page_type: f5(slab) raw: 4000000000000200 ffff888100041500 ffffea0004139410 ffffea000484b910 raw: ffff888102a941a0 0000000000800035 00000001f5000000 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 26, tgid 26 (cpuhp/0), ts 3195274297, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1864 prep_new_page+0x2d/0x180 mm/page_alloc.c:1872 get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3949 __alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5316 alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1 allocate_slab+0x69/0x430 mm/slub.c:2687 new_slab mm/slub.c:2741 [inline] ___slab_alloc+0x591/0x8c0 mm/slub.c:3934 __slab_alloc mm/slub.c:4025 [inline] __slab_alloc_node mm/slub.c:4078 [inline] slab_alloc_node mm/slub.c:4239 [inline] __do_kmalloc_node mm/slub.c:4394 [inline] __kmalloc_node_track_caller_noprof+0x2e3/0x4f0 mm/slub.c:4414 kstrdup+0x4d/0x130 mm/util.c:70 kstrdup_const+0x45/0x60 mm/util.c:93 __kernfs_new_node+0xaa/0x740 fs/kernfs/dir.c:624 kernfs_new_node+0x154/0x280 fs/kernfs/dir.c:704 kernfs_create_dir_ns+0x4b/0x130 fs/kernfs/dir.c:1065 sysfs_create_dir_ns+0x127/0x210 fs/sysfs/dir.c:59 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x71f/0xc20 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_add+0x169/0x240 lib/kobject.c:426 page_owner free stack trace missing Memory state around the buggy address: ffff888102a93f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888102a94000: fa fc fc fc fa fc fc fc 00 fc fc fc fa fc fc fc >ffff888102a94080: 06 fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff888102a94100: 06 fc fc fc fa fc fc fc 00 fc fc fc 00 fc fc fc ffff888102a94180: fa fc fc fc fa fc fc fc 07 fc fc fc 00 fc fc fc ==================================================================