KASAN: use-after-free Read in seq_printf (2)

Status: upstream: reported C repro on 2026/10/12 05:38
Reported-by: syzbot+36e8eafa46be129796a8@syzkaller.appspotmail.com
First crash: 99d, last: 21d
▶ ▼ Similar bugs (15)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: use-after-free Read in seq_printf 19 3 41d 41d 0/3 upstream: reported on 2026/10/23 08:35
linux-5.15 KASAN: use-after-free Read in seq_printf 19 4 32d 71d 0/3 upstream: reported on 2026/09/23 14:29
android-5-10 KASAN: use-after-free Read in seq_printf (3) 19 syz, C 64 22d 52d 0/2 upstream: reported C repro on 2026/10/12 19:47
android-5-10 KASAN: use-after-free Read in seq_printf 19 15 435d 543d 0/2 auto-obsoleted due to no activity on 2025/12/23 06:43
upstream KASAN: slab-out-of-bounds Read in seq_printf fs 19 5 571d 676d 0/30 auto-obsoleted due to no activity on 2025/08/09 17:54
android-6-1 KASAN: slab-out-of-bounds Read in seq_printf 19 2 440d 444d 0/2 auto-obsoleted due to no activity on 2025/12/19 00:57
android-5-10 KASAN: use-after-free Read in seq_printf (2) 19 1 323d 323d 0/2 auto-obsoleted due to no activity on 2026/04/14 16:00
android-6-1 KASAN: use-after-free Read in seq_printf origin:lts 19 syz, C 26 25d 70d 0/2 upstream: reported C repro on 2026/09/24 21:21
android-5-15 KASAN: use-after-free Read in seq_printf 19 1 441d 441d 0/2 auto-obsoleted due to no activity on 2025/12/17 23:30
upstream KMSAN: uninit-value in seq_printf (2) fs 7 syz, C 99 1632d 1898d 0/30 auto-closed as invalid on 2022/09/30 02:43
android-6-1 KASAN: slab-out-of-bounds Read in seq_printf (2) 17 1 243d 243d 0/2 auto-obsoleted due to no activity on 2026/07/03 17:29
android-6-12 KASAN: slab-use-after-free Read in seq_printf origin:lts 19 syz, C 24 22d 71d 0/1 premoderation: reported C repro on 2026/09/23 06:02
upstream KMSAN: kernel-infoleak in __skb_datagram_iter net 9 68 1164d 1269d 23/30 fixed on 2023/09/28 17:51
upstream KASAN: slab-use-after-free Read in seq_printf prio:high fs 19 C error 91 20d 75d 0/30 upstream: reported C repro on 2026/09/19 02:15
linux-6.6 KASAN: slab-use-after-free Read in seq_printf 19 2 51d 100d 0/2 upstream: reported on 2026/08/25 13:48
▶ ▼ Last patch testing requests (2)
Created Duration User Patch Repo Result
2026/11/29 19:19 19m retest repro android13-5.15-lts no crash job log log
2026/11/29 19:19 14m retest repro android13-5.15-lts no crash job log log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:642 [inline]
BUG: KASAN: use-after-free in string+0x20f/0x2a0 lib/vsprintf.c:724
Read of size 1 at addr ffff888101ba0b18 by task syz.4.8412/23649

CPU: 1 PID: 23649 Comm: syz.4.8412 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0x10f/0x150 mm/kasan/report.c:444
 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306
 string_nocheck lib/vsprintf.c:642 [inline]
 string+0x20f/0x2a0 lib/vsprintf.c:724
 vsnprintf+0xec5/0x1990 lib/vsprintf.c:2811
 seq_vprintf fs/seq_file.c:407 [inline]
 seq_printf+0x185/0x280 fs/seq_file.c:422
 show_interrupts+0x91d/0xa90 kernel/irq/proc.c:527
 traverse+0x1f2/0x590 fs/seq_file.c:111
 seq_read_iter+0xbcd/0xce0 fs/seq_file.c:195
 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:300
 do_iter_readv_writev+0x477/0x5f0 fs/read_write.c:-1
 do_iter_read+0x1fa/0x780 fs/read_write.c:790
 vfs_readv fs/read_write.c:910 [inline]
 do_preadv+0x233/0x390 fs/read_write.c:1002
 __do_sys_preadv fs/read_write.c:1052 [inline]
 __se_sys_preadv fs/read_write.c:1047 [inline]
 __x64_sys_preadv+0x9e/0xb0 fs/read_write.c:1047
 x64_sys_call+0x4f8/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f795027a4d9
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:00007f794eca7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007f79504f7090 RCX: 00007f795027a4d9
RDX: 0000000000000001 RSI: 0000200000001700 RDI: 0000000000000008
RBP: 00007f795030904e R08: 0000000080000002 R09: 0000000000000000
R10: 00000000000406d7 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f79504f7128 R14: 00007f79504f7090 R15: 00007ffcac2991a8
 </TASK>

Allocated by task 21463:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:433 [inline]
 ____kasan_kmalloc mm/kasan/common.c:512 [inline]
 __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521
 kasan_kmalloc include/linux/kasan.h:227 [inline]
 __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959
 kmemdup+0x26/0x60 mm/util.c:132
 bpf_migrate_filter net/core/filter.c:1269 [inline]
 bpf_prepare_filter+0xc33/0x11b0 net/core/filter.c:1355
 bpf_prog_create_from_user+0x2c5/0x420 net/core/filter.c:1449
 seccomp_prepare_filter kernel/seccomp.c:669 [inline]
 seccomp_prepare_user_filter kernel/seccomp.c:706 [inline]
 seccomp_set_mode_filter kernel/seccomp.c:1834 [inline]
 do_seccomp+0x803/0x1480 kernel/seccomp.c:1954
 __do_sys_seccomp kernel/seccomp.c:1973 [inline]
 __se_sys_seccomp kernel/seccomp.c:1970 [inline]
 __x64_sys_seccomp+0x7b/0x90 kernel/seccomp.c:1970
 x64_sys_call+0x22e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:318
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff888101ba0b18
 which belongs to the cache kmalloc-8 of size 8
The buggy address is located 0 bytes inside of
 8-byte region [ffff888101ba0b18, ffff888101ba0b20)
The buggy address belongs to the page:
page:ffffea000406e800 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888101ba0b18 pfn:0x101ba0
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 ffffea000418e008 ffffea0005374448 ffff888100042300
raw: ffff888101ba0b18 000000000066003f 00000001ffffffff 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 1984163013, free_ts 0
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616
 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492
 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1937 [inline]
 new_slab+0xa0/0x4d0 mm/slub.c:2000
 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033
 __slab_alloc+0x49/0x90 mm/slub.c:3120
 slab_alloc_node mm/slub.c:3211 [inline]
 slab_alloc mm/slub.c:3255 [inline]
 __kmalloc_track_caller+0x169/0x2c0 mm/slub.c:4954
 kstrdup mm/util.c:64 [inline]
 kstrdup_const+0x55/0x90 mm/util.c:87
 __kernfs_new_node+0xa6/0x670 fs/kernfs/dir.c:589
 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669
 kernfs_create_link+0xa4/0x200 fs/kernfs/symlink.c:39
 sysfs_do_create_link_sd+0x8a/0x110 fs/sysfs/symlink.c:44
 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
 sysfs_create_link+0x68/0x80 fs/sysfs/symlink.c:92
 bus_add_device+0x1b8/0x3f0 drivers/base/bus.c:453
 device_add+0x659/0xe90 drivers/base/core.c:3376
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888101ba0a00: 07 fc fc fc fc 00 fc fc fc fc fb fc fc fc fc 03
 ffff888101ba0a80: fc fc fc fc fb fc fc fc fc 03 fc fc fc fc 07 fc
>ffff888101ba0b00: fc fc fc fb fc fc fc fc 00 fc fc fc fc 03 fc fc
                            ^
 ffff888101ba0b80: fc fc fb fc fc fc fc fb fc fc fc fc 03 fc fc fc
 ffff888101ba0c00: fc fb fc fc fc fc 06 fc fc fc fc 06 fc fc fc fc
==================================================================

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/12 18:19 android13-5.15-lts f181319b13ed c0087d7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/11/10 12:46 android13-5.15-lts 2316d138a3c3 70ec0380 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/11/08 08:26 android13-5.15-lts 2316d138a3c3 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/11/01 13:51 android13-5.15-lts 2316d138a3c3 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/31 01:32 android13-5.15-lts 2316d138a3c3 0ec395f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/31 01:29 android13-5.15-lts 2316d138a3c3 0ec395f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/30 14:38 android13-5.15-lts 2316d138a3c3 b498adee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/28 20:59 android13-5.15-lts 2316d138a3c3 858db2ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/20 15:27 android13-5.15-lts 86eefba284ca df8746fb .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/12 11:33 android13-5.15-lts d6c8aee048e0 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/12 05:29 android13-5.15-lts d6c8aee048e0 4f92358f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/12 03:26 android13-5.15-lts d6c8aee048e0 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/11 18:43 android13-5.15-lts d6c8aee048e0 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/10 18:36 android13-5.15-lts d6c8aee048e0 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/10/08 18:15 android13-5.15-lts d6c8aee048e0 b2734a59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/27 10:02 android13-5.15-lts 776976664f31 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/27 03:18 android13-5.15-lts 776976664f31 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/26 22:40 android13-5.15-lts 776976664f31 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/26 22:14 android13-5.15-lts 776976664f31 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/26 01:03 android13-5.15-lts 81cf8006a12f f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/25 14:24 android13-5.15-lts 81cf8006a12f f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/24 12:31 android13-5.15-lts 5bfe2b8c1439 0281b448 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/09/18 15:42 android13-5.15-lts 5bfe2b8c1439 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/08/26 02:29 android13-5.15-lts 771777348d20 6a91adb4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
2026/08/26 02:29 android13-5.15-lts 771777348d20 6a91adb4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in seq_printf
* Struck through repros no longer work on HEAD.