KASAN: use-after-free Read in hpfs_get_ea

Status: upstream: reported C repro on 2025/07/27 17:30
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+91209a63bd6e8b2608e4@syzkaller.appspotmail.com
First crash: 441d, last: 1d07h
Fix bisection: failed (error log, bisect log)
  
▶ ▼ Bug presence (1)
Date Name Commit Repro Result
2025/07/30 upstream (ToT) beb6c8326eb4 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 641 4h42m 442d 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 11429 1h15m 451d 0/29 upstream: reported C repro on 2025/07/17 19:14
linux-6.1 KASAN: use-after-free Read in hpfs_get_ea origin:upstream 19 syz, C 1252 1d12h 441d 0/3 upstream: reported C repro on 2025/07/27 17:28
▶ ▼ Fix bisection attempts (2)
Created Duration User Patch Repo Result
2026/03/18 03:14 4m bisect fix linux-6.6.y error job log
2025/08/31 05:47 1h46m bisect fix linux-6.6.y OK (0) job log log

Sample crash report:
=======================================================
hpfs: filesystem error: invalid number of hotfixes: 2066844986, used: 2066844985; already mounted read-only
hpfs: filesystem error: improperly stopped
hpfs: filesystem error: warning: spare dnodes used, try chkdsk
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+0x6b/0xb0 lib/string.c:288
Read of size 1 at addr ffff88806dbfe8a6 by task syz.0.17/5933

CPU: 0 PID: 5933 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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
 strcmp+0x6b/0xb0 lib/string.c:288
 hpfs_get_ea+0x138/0xea0 fs/hpfs/ea.c:139
 hpfs_read_inode+0x1aa/0x1050 fs/hpfs/inode.c:63
 hpfs_fill_super+0x1346/0x1ef0 fs/hpfs/super.c:713
 mount_bdev+0x21c/0x2c0 fs/super.c:1651
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1772
 do_new_mount+0x24a/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/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f190e99f44a
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:00007ffeee613e38 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffeee613ec0 RCX: 00007f190e99f44a
RDX: 0000200000009e80 RSI: 0000200000009ec0 RDI: 00007ffeee613e80
RBP: 0000200000009e80 R08: 00007ffeee613ec0 R09: 0000000000000041
R10: 0000000000000041 R11: 0000000000000246 R12: 0000200000009ec0
R13: 00007ffeee613e80 R14: 0000000000009e02 R15: 0000200000009fc0
 </TASK>

The buggy address belongs to the physical page:
page:ffffea0001b6ff80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6dbfe
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001b85988 ffffea0001b6f8c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 5928, tgid 5928 (rm), ts 107225165680, free_ts 107250633918
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582
 prep_new_page mm/page_alloc.c:1589 [inline]
 get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221
 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501
 __folio_alloc+0x10/0x20 mm/page_alloc.c:4533
 vma_alloc_folio+0x474/0x8f0 mm/mempolicy.c:2240
 wp_page_copy mm/memory.c:3094 [inline]
 do_wp_page+0x11bc/0x34d0 mm/memory.c:3469
 handle_pte_fault mm/memory.c:5063 [inline]
 __handle_mm_fault mm/memory.c:5188 [inline]
 handle_mm_fault+0x1306/0x4a50 mm/memory.c:5353
 do_user_addr_fault+0xad2/0x12d0 arch/x86/mm/fault.c:1322
 handle_page_fault arch/x86/mm/fault.c:1463 [inline]
 exc_page_fault+0x64/0x100 arch/x86/mm/fault.c:1516
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:608
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1182 [inline]
 free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366
 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2505
 release_pages+0x208a/0x2300 mm/swap.c:1022
 tlb_batch_pages_flush mm/mmu_gather.c:99 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:294 [inline]
 tlb_flush_mmu+0x379/0x510 mm/mmu_gather.c:301
 tlb_finish_mmu+0xf4/0x220 mm/mmu_gather.c:425
 exit_mmap+0x428/0xb90 mm/mmap.c:3315
 __mmput+0x118/0x3a0 kernel/fork.c:1362
 exit_mm+0x23f/0x340 kernel/exit.c:576
 do_exit+0x909/0x2530 kernel/exit.c:877
 do_group_exit+0x22d/0x2f0 kernel/exit.c:1032
 __do_sys_exit_group kernel/exit.c:1043 [inline]
 __se_sys_exit_group kernel/exit.c:1041 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1041
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
 ffff88806dbfe780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88806dbfe800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88806dbfe880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                               ^
 ffff88806dbfe900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88806dbfe980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Crashes (454):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/11 01:35 linux-6.6.y a91a6aa9253c 4f92358f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/10/11 01:07 linux-6.6.y a91a6aa9253c 4f92358f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/26 02:47 linux-6.6.y c5596480c50e 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/26 02:25 linux-6.6.y c5596480c50e 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/26 02:02 linux-6.6.y c5596480c50e 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/03/29 18:41 linux-6.6.y c09fbcd31ae6 b5ceaad2 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2025/11/10 03:57 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2025/07/27 17:53 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/22 11:23 linux-6.6.y 79643295eba1 e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/22 04:41 linux-6.6.y 79643295eba1 e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/21 19:15 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/11 19:30 linux-6.6.y 8b73de7da85f b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/08 08:46 linux-6.6.y 8b73de7da85f 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 23:36 linux-6.6.y 8b73de7da85f 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 07:55 linux-6.6.y 8b73de7da85f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/09/07 07:55 linux-6.6.y 8b73de7da85f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/23 06:21 linux-6.6.y c610b395b0a5 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/22 17:57 linux-6.6.y c610b395b0a5 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/11 13:06 linux-6.6.y d27334b2888c 71790083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/11 04:54 linux-6.6.y d27334b2888c 508909ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/08/04 20:10 linux-6.6.y aa0e49877a2e d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/26 01:31 linux-6.6.y c5596480c50e 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/23 19:43 linux-6.6.y da47cbc25466 71a13572 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/22 23:15 linux-6.6.y da47cbc25466 881ce5c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/22 11:00 linux-6.6.y da47cbc25466 4a865b71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/22 09:40 linux-6.6.y da47cbc25466 b561ce9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/10 13:20 linux-6.6.y da47cbc25466 4167ee25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/04 09:23 linux-6.6.y d1cfde2d5d15 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/06/25 16:34 linux-6.6.y d1cfde2d5d15 cfa969bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/06/22 13:05 linux-6.6.y d1cfde2d5d15 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/06/11 08:38 linux-6.6.y 924b4a879cbb b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/06/10 06:22 linux-6.6.y 924b4a879cbb 34dab4be .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/06/03 20:03 linux-6.6.y 924b4a879cbb 234057e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/05/25 12:11 linux-6.6.y 0a40c6fbd105 c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/05/17 08:14 linux-6.6.y 4d922539ad7d de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/05/11 06:47 linux-6.6.y 3b9f64db0496 845acb1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/05/11 06:47 linux-6.6.y 3b9f64db0496 845acb1c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/05/10 18:17 linux-6.6.y 3b9f64db0496 29233ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/26 13:38 linux-6.6.y 9760bf04666d 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/26 12:06 linux-6.6.y 9760bf04666d 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/26 10:45 linux-6.6.y 9760bf04666d 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/25 18:43 linux-6.6.y 9760bf04666d 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/23 10:45 linux-6.6.y 9760bf04666d 4c3406dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/23 09:25 linux-6.6.y 9760bf04666d b10da5ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/19 21:44 linux-6.6.y 9760bf04666d 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/12 23:59 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/12 23:56 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/11 22:52 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/04/06 23:44 linux-6.6.y 80de0a958133 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/03/31 09:19 linux-6.6.y c09fbcd31ae6 aeea1c72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/03/31 05:14 linux-6.6.y c09fbcd31ae6 d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/03/29 18:19 linux-6.6.y c09fbcd31ae6 b5ceaad2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/02/16 02:42 linux-6.6.y 1b4ef5214f17 1e62d198 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/02/05 18:31 linux-6.6.y 2cf6f68313dc 4936e85c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2025/07/27 17:29 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: use-after-free Read in hpfs_get_ea
2026/07/26 00:36 linux-6.6.y c5596480c50e 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in hpfs_get_ea
2026/06/01 01:36 linux-6.6.y 0a40c6fbd105 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in hpfs_get_ea
2026/05/03 01:07 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 hpfs_get_ea
2026/03/30 01:52 linux-6.6.y c09fbcd31ae6 b5ceaad2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-out-of-bounds Read in hpfs_get_ea
2026/01/08 19:02 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: out-of-bounds Read in hpfs_get_ea
* Struck through repros no longer work on HEAD.