syzbot


KASAN: use-after-free Read in udf_statfs

Status: upstream: reported on 2025/12/22 06:27
Reported-by: syzbot+4e513203a3c364262171@syzkaller.appspotmail.com
First crash: 7d05h, last: 2d15h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: array-index-out-of-bounds in udf_statfs udf 15 C error error 3 1617d 1703d 20/29 fixed on 2021/11/10 00:50

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in udf_statfs+0xe52/0x1040 fs/udf/super.c:2396
Read of size 4 at addr ffff8880a01ea7d0 by task syz.6.795/9544

CPU: 0 PID: 9544 Comm: syz.6.795 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xac/0x220 mm/kasan/report.c:468
 kasan_report+0x117/0x150 mm/kasan/report.c:581
 udf_statfs+0xe52/0x1040 fs/udf/super.c:2396
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_statfs+0x141/0x2c0 fs/statfs.c:90
 user_statfs+0xbb/0x170 fs/statfs.c:105
 __do_sys_statfs fs/statfs.c:195 [inline]
 __se_sys_statfs fs/statfs.c:192 [inline]
 __x64_sys_statfs+0xe1/0x1b0 fs/statfs.c:192
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5a78b8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5a7994f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000089
RAX: ffffffffffffffda RBX: 00007f5a78de6270 RCX: 00007f5a78b8f749
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000040
RBP: 00007f5a78c13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5a78de6308 R14: 00007f5a78de6270 R15: 00007ffef9402518
 </TASK>

The buggy address belongs to the physical page:
page:ffffea0002807a80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa01ea
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0002807a88 ffffea0002807a88 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)

Memory state around the buggy address:
 ffff8880a01ea680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff8880a01ea700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8880a01ea780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                                 ^
 ffff8880a01ea800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff8880a01ea880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/22 06:27 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in udf_statfs
2025/12/26 20:10 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: unable to handle kernel paging request in udf_statfs
* Struck through repros no longer work on HEAD.