================================================================== 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 ffff88802c458758 by task syz.0.679/8104 CPU: 0 UID: 0 PID: 8104 Comm: syz.0.679 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 input_devices_seq_show+0x1bf/0x1130 drivers/input/input.c:1178 traverse.part.0.constprop.0+0x107/0x650 fs/seq_file.c:112 traverse fs/seq_file.c:99 [inline] seq_read_iter+0x93f/0x1270 fs/seq_file.c:196 seq_read+0x344/0x4d0 fs/seq_file.c:163 pde_read fs/proc/inode.c:308 [inline] proc_reg_read+0x240/0x330 fs/proc/inode.c:320 do_loop_readv_writev fs/read_write.c:848 [inline] do_loop_readv_writev fs/read_write.c:836 [inline] vfs_readv+0x5d8/0x8d0 fs/read_write.c:1021 do_preadv+0x1ac/0x270 fs/read_write.c:1133 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:0x7f6ab3d9e159 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:00007f6ab4bb5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f6ab4025fa0 RCX: 00007f6ab3d9e159 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f6ab3e3503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6ab4026038 R14: 00007f6ab4025fa0 R15: 00007ffe2ba71e18 Allocated by task 7926: 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_node_track_caller_noprof+0x33d/0x870 mm/slub.c:5545 kmalloc_reserve+0xe8/0x350 net/core/skbuff.c:637 __alloc_skb+0x185/0x710 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] _sctp_make_chunk+0x51/0x270 net/sctp/sm_make_chunk.c:1435 sctp_make_data net/sctp/sm_make_chunk.c:1467 [inline] sctp_make_datafrag_empty+0x14e/0x230 net/sctp/sm_make_chunk.c:732 sctp_datamsg_from_user+0x5ea/0x1360 net/sctp/chunk.c:263 sctp_sendmsg_to_asoc+0xb1c/0x1c50 net/sctp/socket.c:1858 sctp_sendmsg+0x1144/0x22e0 net/sctp/socket.c:2039 inet_sendmsg+0x11c/0x140 net/ipv4/af_inet.c:865 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x453/0x4e0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2284 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 7929: 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 skb_kfree_head net/core/skbuff.c:1083 [inline] skb_free_head+0xb9/0x160 net/core/skbuff.c:1095 skb_release_data+0x6c5/0x8e0 net/core/skbuff.c:1122 skb_release_all net/core/skbuff.c:1197 [inline] __kfree_skb net/core/skbuff.c:1211 [inline] consume_skb net/core/skbuff.c:1448 [inline] consume_skb+0xc4/0x110 net/core/skbuff.c:1442 sctp_chunk_destroy net/sctp/sm_make_chunk.c:1495 [inline] sctp_chunk_put+0x1b2/0x2d0 net/sctp/sm_make_chunk.c:1522 sctp_datamsg_destroy net/sctp/chunk.c:111 [inline] sctp_datamsg_put+0x129/0x5f0 net/sctp/chunk.c:128 sctp_chunk_free+0x45/0x60 net/sctp/sm_make_chunk.c:1507 __sctp_outq_teardown+0x70a/0xc40 net/sctp/outqueue.c:257 sctp_association_free+0x210/0x7d0 net/sctp/associola.c:340 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:950 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1340 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1204 [inline] sctp_do_sm+0x15b5/0x5c30 net/sctp/sm_sideeffect.c:1175 sctp_primitive_SHUTDOWN+0x9f/0xd0 net/sctp/primitive.c:89 sctp_shutdown+0x137/0x180 net/sctp/socket.c:5223 inet_shutdown+0x1a5/0x410 net/ipv4/af_inet.c:931 __sys_shutdown_sock net/socket.c:2554 [inline] __sys_shutdown_sock net/socket.c:2548 [inline] __sys_shutdown+0x116/0x1b0 net/socket.c:2570 __do_sys_shutdown net/socket.c:2575 [inline] __se_sys_shutdown net/socket.c:2573 [inline] __x64_sys_shutdown+0x53/0x80 net/socket.c:2573 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 The buggy address belongs to the object at ffff88802c458000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1880 bytes inside of freed 2048-byte region [ffff88802c458000, ffff88802c458800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2c458 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801c034000 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801c034000 dead000000000100 dead000000000122 head: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5715, tgid 5715 (kworker/1:6), ts 65124109362 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 kmalloc_reserve+0xe8/0x350 net/core/skbuff.c:637 __alloc_skb+0x185/0x710 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] mld_newpack.isra.0+0x18e/0xa20 net/ipv6/mcast.c:1810 add_grhead+0x299/0x340 net/ipv6/mcast.c:1921 add_grec+0x1389/0x1930 net/ipv6/mcast.c:2060 mld_send_cr net/ipv6/mcast.c:2185 [inline] mld_ifc_work+0x3c5/0xc10 net/ipv6/mcast.c:2739 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 page last free pid 5285 tgid 5285 ts 34971958242 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 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x269/0x6a0 mm/slub.c:5010 anon_vma_chain_alloc mm/rmap.c:142 [inline] __anon_vma_prepare+0xae/0x5e0 mm/rmap.c:194 __vmf_anon_prepare+0x11f/0x250 mm/memory.c:3961 vmf_anon_prepare mm/internal.h:569 [inline] do_anonymous_page+0x47d/0x2050 mm/memory.c:5478 do_pte_missing mm/memory.c:4698 [inline] handle_pte_fault mm/memory.c:6558 [inline] __handle_mm_fault+0x1ff3/0x2f60 mm/memory.c:6707 handle_mm_fault+0x363/0xa20 mm/memory.c:6876 do_user_addr_fault+0x59c/0x12f0 arch/x86/mm/fault.c:1343 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 Memory state around the buggy address: ffff88802c458600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802c458680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802c458700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802c458780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802c458800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================