KASAN: slab-out-of-bounds Read in fbcon_prepare_logo

Status: upstream: reported on 2026/08/26 21:27
Reported-by: syzbot+b908120b9c31b888028e@syzkaller.appspotmail.com
First crash: 2d11h, last: 2d04h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: slab-out-of-bounds Read in fbcon_prepare_logo 17 1 28d 28d 0/3 upstream: reported on 2026/07/31 21:36
upstream KASAN: slab-out-of-bounds Read in fbcon_prepare_logo prio:high fbdev 19 syz, C 1756 2d11h 550d 2/29 upstream: reported C repro on 2025/02/25 07:06
linux-6.6 KASAN: slab-out-of-bounds Read in fbcon_prepare_logo 19 2 28d 28d 0/2 upstream: reported on 2026/07/31 22:44

Sample crash report:
Console: switching to colour VGA+ 80x25
==================================================================
BUG: KASAN: slab-out-of-bounds in scr_memcpyw include/linux/vt_buffer.h:49 [inline]
BUG: KASAN: slab-out-of-bounds in fbcon_prepare_logo+0x5a9/0xb50 drivers/video/fbdev/core/fbcon.c:600
Read of size 100 at addr ffff888019b8ffc4 by task syz.0.2409/12907

CPU: 1 PID: 12907 Comm: syz.0.2409 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:316 [inline]
 print_report+0xa8/0x210 mm/kasan/report.c:420
 kasan_report+0x10b/0x140 mm/kasan/report.c:524
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x235/0x290 mm/kasan/generic.c:189
 memcpy+0x25/0x60 mm/kasan/shadow.c:65
 scr_memcpyw include/linux/vt_buffer.h:49 [inline]
 fbcon_prepare_logo+0x5a9/0xb50 drivers/video/fbdev/core/fbcon.c:600
 fbcon_init+0x137c/0x2460 drivers/video/fbdev/core/fbcon.c:1135
 visual_init+0x2dd/0x650 drivers/tty/vt/vt.c:1074
 do_bind_con_driver+0x859/0x1030 drivers/tty/vt/vt.c:3704
 vt_bind drivers/tty/vt/vt.c:3860 [inline]
 store_bind+0x794/0xa20 drivers/tty/vt/vt.c:3932
 kernfs_fop_write_iter+0x3a0/0x520 fs/kernfs/file.c:352
 call_write_iter include/linux/fs.h:2271 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x482/0x9a0 fs/read_write.c:584
 ksys_write+0x14d/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb86279e0d9
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:00007fb863681028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fb862a25fa0 RCX: 00007fb86279e0d9
RDX: 0000000000000001 RSI: 0000200000000280 RDI: 0000000000000004
RBP: 00007fb862835024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb862a26038 R14: 00007fb862a25fa0 R15: 00007fff5891d878
 </TASK>

Allocated by task 2:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737
 slab_alloc_node mm/slub.c:3359 [inline]
 kmem_cache_alloc_node+0x1ad/0x310 mm/slub.c:3404
 alloc_task_struct_node kernel/fork.c:173 [inline]
 dup_task_struct+0x57/0x700 kernel/fork.c:987
 copy_process+0x621/0x4070 kernel/fork.c:2192
 kernel_clone+0x24b/0x900 kernel/fork.c:2765
 kernel_thread+0x118/0x180 kernel/fork.c:2825
 create_kthread kernel/kthread.c:399 [inline]
 kthreadd+0x54f/0x700 kernel/kthread.c:748
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

The buggy address belongs to the object at ffff888019b8da00
 which belongs to the cache task_struct of size 7424
The buggy address is located 2244 bytes to the right of
 7424-byte region [ffff888019b8da00, ffff888019b8f700)

The buggy address belongs to the physical page:
page:ffffea000066e200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19b88
head:ffffea000066e200 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888140008500
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
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 2, tgid 2 (kthreadd), ts 7399199757, free_ts 0
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560
 prep_new_page mm/page_alloc.c:2567 [inline]
 get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358
 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658
 alloc_slab_page+0x5d/0x180 mm/slub.c:1799
 allocate_slab mm/slub.c:1944 [inline]
 new_slab+0x87/0x2d0 mm/slub.c:1997
 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154
 __slab_alloc mm/slub.c:3240 [inline]
 slab_alloc_node mm/slub.c:3325 [inline]
 kmem_cache_alloc_node+0x134/0x310 mm/slub.c:3404
 alloc_task_struct_node kernel/fork.c:173 [inline]
 dup_task_struct+0x57/0x700 kernel/fork.c:987
 copy_process+0x621/0x4070 kernel/fork.c:2192
 kernel_clone+0x24b/0x900 kernel/fork.c:2765
 kernel_thread+0x118/0x180 kernel/fork.c:2825
 create_kthread kernel/kthread.c:399 [inline]
 kthreadd+0x54f/0x700 kernel/kthread.c:748
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888019b8fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888019b8ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888019b8ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff888019b90000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888019b90080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/27 04:19 linux-6.1.y 05208478041c a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in fbcon_prepare_logo
2026/08/26 21:26 linux-6.1.y 05208478041c a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in fbcon_prepare_logo
* Struck through repros no longer work on HEAD.