KASAN: slab-out-of-bounds Read in __ext4_iget (2)

Status: upstream: reported on 2026/12/03 22:29
Reported-by: syzbot+b0118df173be45e9932f@syzkaller.appspotmail.com
First crash: 1d00h, last: 1d00h
▶ ▼ Similar bugs (12)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 KASAN: use-after-free Read in __ext4_iget (3) 19 syz, C 58 558d 631d 0/2 upstream: reported C repro on 2025/03/13 17:21
linux-6.6 KASAN: slab-use-after-free Read in __ext4_iget 19 27 147d 476d 0/2 auto-obsoleted due to no activity on 2026/10/18 00:36
linux-5.15 KASAN: use-after-free Read in __ext4_iget 19 58 119d 1038d 0/3 auto-obsoleted due to no activity on 2026/11/15 10:03
linux-6.1 KASAN: slab-out-of-bounds Read in __ext4_iget (2) 19 57 9d22h 671d 0/3 upstream: reported on 2025/02/01 20:39
upstream KASAN: slab-use-after-free Read in __ext4_iget fs reiserfs 19 278 1039d 1276d 0/30 auto-obsoleted due to no activity on 2024/04/09 13:42
android-5-15 KASAN: use-after-free Read in __ext4_iget origin:lts 19 syz, C 792 14h11m 612d 0/2 upstream: reported C repro on 2025/04/01 19:00
linux-5.15 KASAN: slab-out-of-bounds Read in __ext4_iget 19 6 1144d 1187d 0/3 auto-obsoleted due to no activity on 2024/01/25 22:09
android-54 KASAN: use-after-free Read in __ext4_iget 19 13 1016d 1223d 0/2 auto-obsoleted due to no activity on 2024/05/22 19:07
android-5-10 KASAN: use-after-free Read in __ext4_iget 19 syz, C 597 3d01h 636d 0/2 upstream: reported C repro on 2025/03/08 14:28
linux-6.1 KASAN: slab-out-of-bounds Read in __ext4_iget 19 14 978d 1234d 0/3 auto-obsoleted due to no activity on 2024/07/09 19:10
linux-6.1 KASAN: use-after-free Read in __ext4_iget 19 2 813d 855d 0/3 auto-obsoleted due to no activity on 2024/12/21 07:26
android-54 KASAN: use-after-free Read in __ext4_iget (2) 19 4 898d 916d 0/2 auto-obsoleted due to no activity on 2024/09/17 10:19

Sample crash report:
EXT4-fs (loop2): encrypted files will use data=ordered instead of data journaling mode
==================================================================
BUG: KASAN: slab-out-of-bounds in check_igot_inode fs/ext4/inode.c:-1 [inline]
BUG: KASAN: slab-out-of-bounds in __ext4_iget+0x2bb/0x3e90 fs/ext4/inode.c:4694
Read of size 8 at addr ffff8880411fff40 by task syz.2.1953/13830

CPU: 1 PID: 13830 Comm: syz.2.1953 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 print_address_description+0x60/0x2d0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xdf/0x130 mm/kasan/report.c:451
 check_igot_inode fs/ext4/inode.c:-1 [inline]
 __ext4_iget+0x2bb/0x3e90 fs/ext4/inode.c:4694
 ext4_fill_super+0x72e8/0x93f0 fs/ext4/super.c:4872
 mount_bdev+0x28a/0x3c0 fs/super.c:1411
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1541
 do_new_mount+0x247/0xa50 fs/namespace.c:3060
 do_mount fs/namespace.c:3431 [inline]
 __do_sys_mount fs/namespace.c:3639 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3616
 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:0x7fd5cc7cdf3a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fd5caa18e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd5caa18ee0 RCX: 00007fd5cc7cdf3a
RDX: 0000200000000180 RSI: 00002000000002c0 RDI: 00007fd5caa18ea0
RBP: 0000200000000180 R08: 00007fd5caa18ee0 R09: 000000000000090e
R10: 000000000000090e R11: 0000000000000246 R12: 00002000000002c0
R13: 00007fd5caa18ea0 R14: 0000000000000473 R15: 00002000000003c0
 </TASK>

Allocated by task 8701:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x92/0xc0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3225 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238
 bdev_alloc_inode+0x17/0x50 block/bdev.c:392
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x5f/0x210 fs/inode.c:1009
 new_inode+0x25/0x1d0 fs/inode.c:1038
 bdev_alloc+0x20/0x230 block/bdev.c:479
 add_partition+0x23a/0x950 block/partitions/core.c:356
 blk_add_partition block/partitions/core.c:586 [inline]
 blk_add_partitions block/partitions/core.c:655 [inline]
 bdev_disk_changed+0xd98/0x1690 block/partitions/core.c:697
 loop_reread_partitions drivers/block/loop.c:681 [inline]
 loop_set_status+0x767/0x9b0 drivers/block/loop.c:1590
 loop_set_status64 drivers/block/loop.c:1710 [inline]
 lo_ioctl+0xe1a/0x20e0 drivers/block/loop.c:1878
 blkdev_ioctl+0x347/0x6f0 block/ioctl.c:604
 block_ioctl+0xac/0xf0 block/fops.c:496
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
 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 ffff8880411fe9c0
 which belongs to the cache bdev_cache of size 2848
The buggy address is located 2656 bytes to the right of
 2848-byte region [ffff8880411fe9c0, ffff8880411ff4e0)
The buggy address belongs to the page:
page:ffffea0001047e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x411f8
head:ffffea0001047e00 order:3 compound_mapcount:0 compound_pincount:0
memcg:ffff88802af26481
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888018550000
raw: 0000000000000000 00000000000a000a 00000001ffffffff ffff88802af26481
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8701, ts 672383106340, free_ts 18789302211
 prep_new_page mm/page_alloc.c:2427 [inline]
 get_page_from_freelist+0x2510/0x2680 mm/page_alloc.c:4202
 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5511
 alloc_slab_page mm/slub.c:1780 [inline]
 allocate_slab mm/slub.c:1917 [inline]
 new_slab+0xc0/0x4b0 mm/slub.c:1980
 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013
 __slab_alloc mm/slub.c:3100 [inline]
 slab_alloc_node mm/slub.c:3191 [inline]
 slab_alloc mm/slub.c:3233 [inline]
 kmem_cache_alloc+0xf0/0x280 mm/slub.c:3238
 bdev_alloc_inode+0x17/0x50 block/bdev.c:392
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x5f/0x210 fs/inode.c:1009
 new_inode+0x25/0x1d0 fs/inode.c:1038
 bdev_alloc+0x20/0x230 block/bdev.c:479
 add_partition+0x23a/0x950 block/partitions/core.c:356
 blk_add_partition block/partitions/core.c:586 [inline]
 blk_add_partitions block/partitions/core.c:655 [inline]
 bdev_disk_changed+0xd98/0x1690 block/partitions/core.c:697
 loop_reread_partitions drivers/block/loop.c:681 [inline]
 loop_set_status+0x767/0x9b0 drivers/block/loop.c:1590
 loop_set_status64 drivers/block/loop.c:1710 [inline]
 lo_ioctl+0xe1a/0x20e0 drivers/block/loop.c:1878
 blkdev_ioctl+0x347/0x6f0 block/ioctl.c:604
 block_ioctl+0xac/0xf0 block/fops.c:496
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1341 [inline]
 free_pcp_prepare mm/page_alloc.c:1392 [inline]
 free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3325
 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3404
 free_contig_range+0x96/0xf0 mm/page_alloc.c:9438
 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018
 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336
 do_one_initcall+0x272/0x730 init/main.c:1276
 do_initcall_level+0x13d/0x1f0 init/main.c:1349
 do_initcalls+0x4b/0x90 init/main.c:1365
 kernel_init_freeable+0x3d5/0x560 init/main.c:1589
 kernel_init+0x19/0x1b0 init/main.c:1480
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Memory state around the buggy address:
 ffff8880411ffe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880411ffe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880411fff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff8880411fff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888041200000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/12/03 22:29 linux-5.15.y 9bdc23a21e3d 84897ebe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in __ext4_iget
* Struck through repros no longer work on HEAD.