syzbot


KASAN: slab-use-after-free Read in ntfs_test_inode

Status: upstream: reported on 2026/01/20 09:45
Reported-by: syzbot+88b54d8003ee0ada5989@syzkaller.appspotmail.com
First crash: 107d, last: 1d05h
Similar bugs (9)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in ntfs_test_inode fs 19 5 848d 848d 0/29 auto-obsoleted due to no activity on 2024/04/18 20:01
upstream KASAN: use-after-free Read in ntfs_test_inode ntfs3 19 C done 402 882d 1816d 25/29 fixed on 2023/12/21 01:43
linux-5.15 KASAN: use-after-free Read in ntfs_test_inode (3) 19 3 35d 44d 0/3 upstream: reported on 2026/03/24 00:25
linux-5.15 KASAN: use-after-free Read in ntfs_test_inode (2) 19 20 183d 619d 0/3 auto-obsoleted due to no activity on 2026/02/13 06:39
linux-6.1 KASAN: use-after-free Read in ntfs_test_inode (2) 19 16 2d07h 483d 0/3 upstream: reported on 2025/01/09 09:49
linux-4.19 KASAN: use-after-free Read in ntfs_test_inode 19 1 1255d 1255d 0/1 auto-obsoleted due to no activity on 2023/03/28 18:25
linux-6.1 KASAN: use-after-free Read in ntfs_test_inode 19 2 773d 775d 0/3 auto-obsoleted due to no activity on 2024/07/03 10:22
linux-5.15 KASAN: use-after-free Read in ntfs_test_inode 19 6 939d 1139d 0/3 auto-obsoleted due to no activity on 2024/01/19 06:00
linux-4.14 KASAN: slab-out-of-bounds Read in ntfs_test_inode 17 1 1540d 1540d 0/1 auto-closed as invalid on 2022/06/16 22:11

Sample crash report:
ntfs: (device loop0): ntfs_end_buffer_async_read(): Buffer I/O error, logical block 0x1e3f.
syz.0.7153: attempt to access beyond end of device
loop0: rw=0, sector=7744, nr_sectors = 1 limit=4096
syz.0.7153: attempt to access beyond end of device
loop0: rw=0, sector=7745, nr_sectors = 1 limit=4096
ntfs: volume version 3.1.
==================================================================
BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline]
BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
BUG: KASAN: slab-use-after-free in NInoAttr fs/ntfs/inode.h:200 [inline]
BUG: KASAN: slab-use-after-free in ntfs_test_inode+0x7d/0x2d0 fs/ntfs/inode.c:55
Read of size 8 at addr ffff88805ea4a680 by task syz.0.7153/21836

CPU: 0 PID: 21836 Comm: syz.0.7153 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xa8/0x210 mm/kasan/report.c:468
 kasan_report+0x117/0x150 mm/kasan/report.c:581
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x241/0x290 mm/kasan/generic.c:187
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 NInoAttr fs/ntfs/inode.h:200 [inline]
 ntfs_test_inode+0x7d/0x2d0 fs/ntfs/inode.c:55
 find_inode+0x19e/0x400 fs/inode.c:946
 ilookup5_nowait fs/inode.c:1501 [inline]
 ilookup5+0xab/0x1e0 fs/inode.c:1530
 iget5_locked+0x34/0x260 fs/inode.c:1311
 ntfs_iget+0xbd/0x1a0 fs/ntfs/inode.c:168
 load_and_check_logfile+0x3f/0xd0 fs/ntfs/super.c:1216
 load_system_files+0x2f1b/0x4550 fs/ntfs/super.c:1949
 ntfs_fill_super+0x1818/0x2a50 fs/ntfs/super.c:2900
 mount_bdev+0x221/0x2d0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f8a9779e04a
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:00007f8a98626e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f8a98626ee0 RCX: 00007f8a9779e04a
RDX: 000020000001ec80 RSI: 000020000001ecc0 RDI: 00007f8a98626ea0
RBP: 000020000001ec80 R08: 00007f8a98626ee0 R09: 0000000002818808
R10: 0000000002818808 R11: 0000000000000246 R12: 000020000001ecc0
R13: 00007f8a98626ea0 R14: 000000000001ecb3 R15: 0000200000000280
 </TASK>

Allocated by task 12296:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767
 slab_alloc_node mm/slub.c:3495 [inline]
 slab_alloc mm/slub.c:3503 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3510 [inline]
 kmem_cache_alloc_lru+0x111/0x2d0 mm/slub.c:3526
 alloc_inode_sb include/linux/fs.h:2946 [inline]
 reiserfs_alloc_inode+0x2a/0xc0 fs/reiserfs/super.c:642
 alloc_inode fs/inode.c:261 [inline]
 iget5_locked+0xa2/0x260 fs/inode.c:1314
 reiserfs_fill_super+0x11d7/0x23b0 fs/reiserfs/super.c:2053
 mount_bdev+0x221/0x2d0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
 __call_rcu_common kernel/rcu/tree.c:2721 [inline]
 call_rcu+0x153/0x950 kernel/rcu/tree.c:2837
 destroy_inode fs/inode.c:316 [inline]
 evict+0x835/0x8d0 fs/inode.c:720
 __dentry_kill+0x431/0x650 fs/dcache.c:611
 dentry_kill+0xb8/0x290 fs/dcache.c:-1
 dput+0xfe/0x1e0 fs/dcache.c:918
 reiserfs_fill_super+0x14be/0x23b0 fs/reiserfs/super.c:2089
 mount_bdev+0x221/0x2d0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff88805ea4a120
 which belongs to the cache reiser_inode_cache of size 1568
The buggy address is located 1376 bytes inside of
 freed 1568-byte region [ffff88805ea4a120, ffff88805ea4a740)

The buggy address belongs to the physical page:
page:ffffea00017a9200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805ea4c240 pfn:0x5ea48
head:ffffea00017a9200 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888026355601
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888018b6d3c0 dead000000000122 0000000000000000
raw: ffff88805ea4c240 000000008013000b 00000001ffffffff ffff888026355601
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 6432, tgid 6431 (syz.2.275), ts 132592941195, free_ts 121326776508
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581
 prep_new_page mm/page_alloc.c:1588 [inline]
 get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220
 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500
 alloc_slab_page+0x5d/0x160 mm/slub.c:1881
 allocate_slab mm/slub.c:2028 [inline]
 new_slab+0x87/0x2d0 mm/slub.c:2081
 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253
 __slab_alloc mm/slub.c:3339 [inline]
 __slab_alloc_node mm/slub.c:3392 [inline]
 slab_alloc_node mm/slub.c:3485 [inline]
 slab_alloc mm/slub.c:3503 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3510 [inline]
 kmem_cache_alloc_lru+0x1aa/0x2d0 mm/slub.c:3526
 alloc_inode_sb include/linux/fs.h:2946 [inline]
 reiserfs_alloc_inode+0x2a/0xc0 fs/reiserfs/super.c:642
 alloc_inode fs/inode.c:261 [inline]
 iget5_locked+0xa2/0x260 fs/inode.c:1314
 reiserfs_fill_super+0x11d7/0x23b0 fs/reiserfs/super.c:2053
 mount_bdev+0x221/0x2d0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1181 [inline]
 free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365
 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458
 __slab_free+0x35a/0x400 mm/slub.c:3736
 qlink_free mm/kasan/quarantine.c:166 [inline]
 qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185
 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767
 slab_alloc_node mm/slub.c:3495 [inline]
 __kmem_cache_alloc_node+0x13a/0x250 mm/slub.c:3534
 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098
 kmalloc include/linux/slab.h:600 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 dev_new drivers/usb/gadget/legacy/raw_gadget.c:192 [inline]
 raw_open+0x8d/0x520 drivers/usb/gadget/legacy/raw_gadget.c:388
 misc_open+0x326/0x3a0 drivers/char/misc.c:163
 chrdev_open+0x5cc/0x6a0 fs/char_dev.c:414
 do_dentry_open+0x8c6/0x1500 fs/open.c:929
 do_open fs/namei.c:3640 [inline]
 path_openat+0x27f1/0x3230 fs/namei.c:3797
 do_filp_open+0x1f5/0x430 fs/namei.c:3824
 do_sys_openat2+0x134/0x1d0 fs/open.c:1421

Memory state around the buggy address:
 ffff88805ea4a580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805ea4a600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88805ea4a680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff88805ea4a700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88805ea4a780: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/06 11:28 linux-6.6.y 258cf62a6dfd 1dddfd3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in ntfs_test_inode
2026/05/02 07:28 linux-6.6.y 258cf62a6dfd a0d91488 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in ntfs_test_inode
2026/03/11 17:11 linux-6.6.y 4fc00fe35d46 2d88ab01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in ntfs_test_inode
2026/01/20 09:44 linux-6.6.y cbb31f77b879 06648d9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in ntfs_test_inode
2026/02/10 11:11 linux-6.6.y c56aaf1a85ae 91d776d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in ntfs_test_inode
2026/01/23 21:59 linux-6.6.y cbb31f77b879 4f25b9b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in ntfs_test_inode
* Struck through repros no longer work on HEAD.