================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck+0xd8/0x140 lib/vsprintf.c:648 Read of size 1 at addr ffff0000ccea97ab by task syz.5.194/5904 CPU: 0 UID: 0 PID: 5904 Comm: syz.5.194 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 string_nocheck+0xd8/0x140 lib/vsprintf.c:648 string+0x8c/0xc8 lib/vsprintf.c:730 vsnprintf+0x880/0xd10 lib/vsprintf.c:2949 va_format lib/vsprintf.c:1725 [inline] pointer+0x5e8/0x6b4 lib/vsprintf.c:2577 vsnprintf+0x618/0xd10 lib/vsprintf.c:2953 vprintk_store+0x344/0xb94 kernel/printk/printk.c:2307 vprintk_emit+0x1bc/0x514 kernel/printk/printk.c:2455 vprintk_default+0x54/0x80 kernel/printk/printk.c:2494 vprintk+0x9c/0x13c kernel/printk/printk_safe.c:82 _printk+0xe0/0x130 kernel/printk/printk.c:2504 __dynamic_pr_debug+0x148/0x1e4 lib/dynamic_debug.c:879 nfc_llcp_wks_sap net/nfc/llcp_core.c:344 [inline] nfc_llcp_get_sdp_ssap+0x350/0x3fc net/nfc/llcp_core.c:420 llcp_sock_bind+0x2e0/0x58c net/nfc/llcp_sock.c:114 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x1c4/0x268 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __arm64_sys_bind+0x84/0x9c net/socket.c:1979 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Allocated by task 5904: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 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+0x440/0x6e0 mm/slub.c:5545 kmemdup_noprof+0x44/0x8c mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:715 [inline] llcp_sock_bind+0x2b0/0x58c net/nfc/llcp_sock.c:107 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x1c4/0x268 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __arm64_sys_bind+0x84/0x9c net/socket.c:1979 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 The buggy address belongs to the object at ffff0000ccea97a0 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 0 bytes to the right of allocated 11-byte region [ffff0000ccea97a0, ffff0000ccea97ab) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000ccea9dc0 pfn:0x10cea9 flags: 0x5ffc00000000200(workingset|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000200 ffff0000c0001640 fffffdffc33442d0 fffffdffc31f12d0 raw: ffff0000ccea9dc0 0000000000800069 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ccea9680: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc ffff0000ccea9700: fa fb fc fc fa fb fc fc 00 00 fc fc 00 00 fc fc >ffff0000ccea9780: 00 01 fc fc 00 03 fc fc 00 01 fc fc 00 01 fc fc ^ ffff0000ccea9800: 00 01 fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff0000ccea9880: fa fb fc fc fa fb fc fc 00 00 fc fc 00 00 fc fc ================================================================== llcp: llcp_sock_recvmsg: Recv datagram failed state 4 -512 0