KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3)

Status: upstream: reported C repro on 2026/08/16 14:48
Subsystems: fbdev
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+bf4020519fbd94b2355d@syzkaller.appspotmail.com
Fix commit: fbdev: fbcon: Fix KASAN slab-out-of-bounds read in rotated font buffer
Patched on: [ci-upstream-linux-next-kasan-gce-root ci-upstream-rust-kasan-gce], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 103d, last: 54d
▶ ▼ ✨ AI Patch Versions (1)
Version Stage Reported Report Link Job
1 moderation 2026/08/17 01:57 Discussion 59f0d7d9-607c-4497-b2e2-0b16693f9502
▶ ▼ ✨ AI Jobs (6)
ID Workflow Result Correct Bug Created Started Finished Revision
2eaeb9b3 patching 💥 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/10/20 10:39 2026/10/20 10:39 2026/10/20 11:16 21286ae2
f37d103e patching 💥 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/09/21 12:13 2026/09/21 12:13 2026/09/21 12:33 853b104b
e6ab1a47 patching 💥 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/09/20 20:58 2026/09/20 20:58 2026/09/20 21:00 853b104b
044217e6 patching 💥 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/09/19 11:33 2026/09/19 11:33 2026/09/19 11:58 853b104b
59f0d7d9 patching ❓ KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/08/16 20:07 2026/08/17 00:14 2026/08/17 01:57 746171ee
b817b4d4 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 2026/08/12 15:21 2026/08/12 15:21 2026/08/12 15:55 a56bc0a5
▶ ▼ Discussions (3)
Title Replies (including bot) Last reply
[PATCH] fbdev: fbcon: Fix KASAN slab-out-of-bounds read in rotated font buffer 3 (3) 2026/11/18 21:33
[syzbot] KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (3) 0 (2) 2026/09/22 11:17
[syzbot] Monthly fbdev report (Sep 2026) 0 (1) 2026/09/22 04:33
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer (2) fbdev 17 1 467d 461d 0/29 auto-obsoleted due to no activity on 2025/11/21 12:26
upstream KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer fbdev 17 7 2353d 2499d 0/29 auto-closed as invalid on 2020/10/12 11:59
linux-4.19 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer 17 3 2414d 2492d 0/1 auto-closed as invalid on 2020/08/12 11:53
linux-5.15 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer 17 1 29d 29d 0/3 upstream: reported on 2026/10/26 02:46
▶ ▼ Last patch testing requests (3)
Created Duration User Patch Repo Result
2026/11/21 18:32 17m retest repro upstream no crash job log log
2026/09/22 11:17 13m syedtayyabfarooq08@gmail.com patch upstream OK job log log
2026/09/12 14:01 19m retest repro upstream report job log log

Sample crash report:
RDS: rds_bind could not find a transport for ::ffff:100.1.1.1, load rds_tcp or rds_rdma?
==================================================================
BUG: KASAN: slab-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:646 [inline]
BUG: KASAN: slab-out-of-bounds in fb_pad_aligned_buffer+0x133/0x160 drivers/video/fbdev/core/fbmem.c:96
Read of size 1 at addr ffff888063951c50 by task syz.0.3392/18370

CPU: 1 UID: 0 PID: 18370 Comm: syz.0.3392 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 __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
 __fb_pad_aligned_buffer include/linux/fb.h:646 [inline]
 fb_pad_aligned_buffer+0x133/0x160 drivers/video/fbdev/core/fbmem.c:96
 cw_putcs_aligned drivers/video/fbdev/core/fbcon_cw.c:105 [inline]
 cw_putcs+0x99c/0xbb0 drivers/video/fbdev/core/fbcon_cw.c:159
 fbcon_putcs+0x3b2/0x480 drivers/video/fbdev/core/fbcon.c:1392
 do_update_region+0x2cf/0x3f0 drivers/tty/vt/vt.c:656
 do_con_trol drivers/tty/vt/vt.c:2863 [inline]
 do_con_write+0x240f/0x4a30 drivers/tty/vt/vt.c:3325
 con_write+0x23/0xb0 drivers/tty/vt/vt.c:3661
 process_output_block drivers/tty/n_tty.c:557 [inline]
 n_tty_write+0x431/0x1160 drivers/tty/n_tty.c:2366
 iterate_tty_write drivers/tty/tty_io.c:1006 [inline]
 file_tty_write.isra.0+0x4d2/0x890 drivers/tty/tty_io.c:1081
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x6ac/0x1050 fs/read_write.c:687
 ksys_write+0x12a/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe07019e0d9
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:00007fe071009028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe070425fa0 RCX: 00007fe07019e0d9
RDX: 0000000000001006 RSI: 0000200000001040 RDI: 0000000000000008
RBP: 00007fe070235024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe070426038 R14: 00007fe070425fa0 R15: 00007ffc97a71f98
 </TASK>

Allocated by task 18189:
 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:5334 [inline]
 __kmalloc_noprof+0x322/0x820 mm/slub.c:5359
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 _kmalloc_array_noprof include/linux/slab.h:1208 [inline]
 font_data_rotate+0x353/0x3b0 lib/fonts/font_rotate.c:231
 fbcon_rotate_font+0x2bf/0x510 drivers/video/fbdev/core/fbcon_rotate.c:33
 fbcon_modechanged+0x218/0x7f0 drivers/video/fbdev/core/fbcon.c:2664
 fbcon_rotate drivers/video/fbdev/core/fbcon.c:230 [inline]
 rotate_store+0x261/0x300 drivers/video/fbdev/core/fbcon.c:3196
 dev_attr_store+0x58/0x80 drivers/base/core.c:2505
 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145
 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x6ac/0x1050 fs/read_write.c:687
 ksys_write+0x12a/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888063951800
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 80 bytes to the right of
 allocated 1024-byte region [ffff888063951800, ffff888063951c00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888063952800 pfn:0x63950
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801c042dc0 ffffea00015d1a10 ffffea00016d3c10
raw: ffff888063952800 0000000800100009 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801c042dc0 ffffea00015d1a10 ffffea00016d3c10
head: ffff888063952800 0000000800100009 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 92, tgid 92 (kworker/u33:4), ts 84591921018, free_ts 84335917569
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859
 prep_new_page mm/page_alloc.c:1867 [inline]
 get_page_from_freelist+0xf48/0x3530 mm/page_alloc.c:3946
 __alloc_frozen_pages_noprof+0x299/0x2dc0 mm/page_alloc.c:5304
 alloc_slab_page mm/slub.c:3266 [inline]
 allocate_slab mm/slub.c:3380 [inline]
 new_slab+0xa2/0x640 mm/slub.c:3426
 refill_objects+0xe3/0x410 mm/slub.c:7310
 refill_sheaf mm/slub.c:2804 [inline]
 __pcs_replace_empty_main+0x376/0x680 mm/slub.c:4675
 alloc_from_pcs mm/slub.c:4773 [inline]
 slab_alloc_node mm/slub.c:4905 [inline]
 __do_kmalloc_node mm/slub.c:5333 [inline]
 __kmalloc_noprof+0x66d/0x820 mm/slub.c:5359
 _kmalloc_noprof include/linux/slab.h:992 [inline]
 _kzalloc_noprof include/linux/slab.h:1309 [inline]
 ieee802_11_parse_elems_full+0x17c/0x3bc0 net/mac80211/parse.c:1073
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2551 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1540 [inline]
 ieee80211_ibss_rx_queued_mgmt+0xc96/0x1c70 net/mac80211/ibss.c:1571
 ieee80211_iface_process_skb net/mac80211/iface.c:1769 [inline]
 ieee80211_iface_work+0xa9a/0x1070 net/mac80211/iface.c:1823
 cfg80211_wiphy_work+0x2b7/0x550 net/wireless/core.c:538
 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322
 process_scheduled_works kernel/workqueue.c:3405 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486
 kthread+0x370/0x450 kernel/kthread.c:436
 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
page last free pid 7284 tgid 7284 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 __free_pages_prepare mm/page_alloc.c:1406 [inline]
 __free_frozen_pages+0x79f/0x1090 mm/page_alloc.c:2950
 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:4584 [inline]
 slab_alloc_node mm/slub.c:4917 [inline]
 kmem_cache_alloc_noprof+0x26b/0x6a0 mm/slub.c:4931
 vm_area_alloc+0x1f/0x160 mm/vma_init.c:32
 __mmap_new_vma mm/vma.c:2547 [inline]
 __mmap_region+0x1033/0x2db0 mm/vma.c:2774
 mmap_region+0x35d/0x620 mm/vma.c:2860
 do_mmap+0xc63/0x12f0 mm/mmap.c:560
 vm_mmap_pgoff+0x29e/0x470 mm/util.c:581
 ksys_mmap_pgoff+0x3cb/0x610 mm/mmap.c:606
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline]
 __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888063951b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888063951b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888063951c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                 ^
 ffff888063951c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888063951d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/18 10:08 upstream ff68e5f557f6 1e72964b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
2026/08/12 14:43 upstream f5bbbfec59b4 c38879ea .config console log report C ci-qemu-upstream KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
2026/10/01 04:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e8e60d3ddd25 38f7f0d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
2026/09/29 17:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e8e60d3ddd25 7bf4ea23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
2026/08/29 12:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1b8fa82cab7 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
2026/08/17 21:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 21d6ac051080 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in fb_pad_aligned_buffer
* Struck through repros no longer work on HEAD.