KASAN: use-after-free Read in hpfs_get_ea

Status: upstream: reported C repro on 2025/07/27 17:28
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+98d90f982e59bdb12f21@syzkaller.appspotmail.com
First crash: 464d, last: 2d10h
▶ ▼ Bug presence (1)
Date Name Commit Repro Result
2025/07/28 upstream (ToT) 038d61fd6422 C [report] KASAN: use-after-free Read in hpfs_get_ea
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: use-after-free Read in hpfs_get_ea origin:upstream 19 syz, C 653 1d09h 465d 0/3 upstream: reported C repro on 2025/07/26 19:47
upstream KASAN: use-after-free Read in hpfs_get_ea prio:high fs 19 syz, C error 11852 7h40m 474d 0/29 upstream: reported C repro on 2025/07/17 19:14
linux-6.6 KASAN: use-after-free Read in hpfs_get_ea origin:upstream 19 syz, C error 461 2d00h 464d 0/2 upstream: reported C repro on 2025/07/27 17:30

Sample crash report:
hpfs: You really don't want any checks? You are crazy...
hpfs: hpfs_map_sector(): read error
hpfs: code page support is disabled
==================================================================
BUG: KASAN: use-after-free in strcmp+0xbc/0xf0 lib/string.c:361
Read of size 1 at addr ffff0000e8f2c8a6 by task syz.0.17/4506

CPU: 1 PID: 4506 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
 __dump_stack+0x30/0x40 lib/dump_stack.c:88
 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
 print_address_description+0x88/0x218 mm/kasan/report.c:316
 print_report+0x50/0x68 mm/kasan/report.c:420
 kasan_report+0xa8/0xfc mm/kasan/report.c:524
 __asan_report_load1_noabort+0x2c/0x38 mm/kasan/report_generic.c:348
 strcmp+0xbc/0xf0 lib/string.c:361
 hpfs_get_ea+0x100/0xa24 fs/hpfs/ea.c:139
 hpfs_read_inode+0x164/0xd18 fs/hpfs/inode.c:63
 hpfs_fill_super+0xe8c/0x18b0 fs/hpfs/super.c:713
 mount_bdev+0x264/0x35c fs/super.c:1454
 hpfs_mount+0x44/0x58 fs/hpfs/super.c:759
 legacy_get_tree+0xd8/0x174 fs/fs_context.c:632
 vfs_get_tree+0x90/0x278 fs/super.c:1584
 do_new_mount+0x228/0x804 fs/namespace.c:3078
 path_mount+0x5ac/0xe6c fs/namespace.c:3408
 do_mount fs/namespace.c:3421 [inline]
 __do_sys_mount fs/namespace.c:3629 [inline]
 __se_sys_mount fs/namespace.c:3606 [inline]
 __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3606
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

The buggy address belongs to the physical page:
page:000000009d65a85f refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x128f2c
flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000000 fffffc00037c0cc8 fffffc0003a5a408 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000e8f2c780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff0000e8f2c800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff0000e8f2c880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                               ^
 ffff0000e8f2c900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff0000e8f2c980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
hpfs: hpfs_map_sector(): read error
hpfs: hpfs_map_sector(): read error
hpfs: hpfs_map_sector(): read error
hpfs: hpfs_map_sector(): read error
hpfs: hpfs_map_4sectors(): unaligned read
hpfs: hpfs_map_4sectors(): unaligned read
hpfs: filesystem error: unable to find root dir

Crashes (1292):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/29 00:45 linux-6.1.y 79807e970724 858db2ec .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/07/20 20:30 linux-6.1.y 090666d3cc90 de6a700d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/04/10 03:23 linux-6.1.y 1989cd3d56e2 38c8e246 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2025/12/30 09:32 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2025/11/05 19:02 linux-6.1.y f6e38ae624cf a6c9c731 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2025/07/27 18:15 linux-6.1.y 3594f306da12 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2025/07/27 17:46 linux-6.1.y 3594f306da12 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/11/01 15:10 linux-6.1.y 08889840163e 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/22 09:36 linux-6.1.y 79807e970724 4ba27f85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/21 11:57 linux-6.1.y 79807e970724 61c200c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/20 10:57 linux-6.1.y 79807e970724 df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/19 14:39 linux-6.1.y 79807e970724 72cdc28d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/14 19:20 linux-6.1.y a500ba24937a 1a71827b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/12 13:20 linux-6.1.y a500ba24937a 745a967f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/26 02:17 linux-6.1.y 1a8763b93150 f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/22 04:27 linux-6.1.y 1a8763b93150 e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/22 02:50 linux-6.1.y 1a8763b93150 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/12 00:28 linux-6.1.y cf82dcca9634 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/08 06:50 linux-6.1.y cf82dcca9634 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 22:39 linux-6.1.y cf82dcca9634 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/22 17:46 linux-6.1.y 7e6e67054721 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/11/01 12:14 linux-6.1.y 08889840163e 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/29 17:43 linux-6.1.y 79807e970724 b498adee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/29 03:16 linux-6.1.y 79807e970724 b1d00f76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/29 00:32 linux-6.1.y 79807e970724 858db2ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/26 09:50 linux-6.1.y 79807e970724 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/25 07:53 linux-6.1.y 79807e970724 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/22 10:41 linux-6.1.y 79807e970724 b55fad29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/22 05:02 linux-6.1.y 79807e970724 4ba27f85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/21 01:47 linux-6.1.y 79807e970724 df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/12 20:08 linux-6.1.y a500ba24937a 745a967f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/12 09:39 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/10 19:58 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/10 09:35 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/10 08:01 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/10 06:14 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/06 11:40 linux-6.1.y a500ba24937a f7710056 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/10/05 01:18 linux-6.1.y a500ba24937a 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/25 13:07 linux-6.1.y 1a8763b93150 f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/21 18:46 linux-6.1.y 1a8763b93150 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/11 18:49 linux-6.1.y cf82dcca9634 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/08 20:54 linux-6.1.y cf82dcca9634 243b72f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/08 15:24 linux-6.1.y cf82dcca9634 243b72f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/08 05:18 linux-6.1.y cf82dcca9634 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 17:47 linux-6.1.y cf82dcca9634 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 08:10 linux-6.1.y cf82dcca9634 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 07:53 linux-6.1.y cf82dcca9634 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/08/23 03:17 linux-6.1.y 7e6e67054721 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/08/20 17:10 linux-6.1.y 7e6e67054721 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/08/19 04:33 linux-6.1.y e4f7d8be268e 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2025/07/27 17:27 linux-6.1.y 3594f306da12 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: use-after-free Read in hpfs_get_ea
2026/07/10 08:39 linux-6.1.y 090666d3cc90 4167ee25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: slab-out-of-bounds Read in hpfs_get_ea
2025/10/31 23:01 linux-6.1.y f6e38ae624cf 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Read in hpfs_get_ea
* Struck through repros no longer work on HEAD.