syzbot


KASAN: use-after-free Read in ext4_find_extent

Status: upstream: reported C repro on 2022/12/26 07:59
Bug presence: origin:lts
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+0827b4b52b5ebf65f219@syzkaller.appspotmail.com
First crash: 1281d, last: 23d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH v2] ext4: Fix possible use-after-free in ext4_find_extent 6 (6) 2023/01/02 05:41
[PATCH] ext4: Fix possible use-after-free in ext4_find_extent 2 (2) 2022/12/29 22:40
Bug presence (2)
Date Name Commit Repro Result
2023/09/22 lts (merge base) aff03380bda4 C [report] kernel BUG in ext4_writepages
2023/09/22 upstream (ToT) 27bbf45eae9c C Didn't crash
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_find_extent 19 C 2 380d 478d 0/2 upstream: reported C repro on 2025/02/13 21:05
android-5-10 KASAN: use-after-free Read in ext4_find_extent ext4 19 C error inconclusive 135 6d02h 1259d 0/2 upstream: reported C repro on 2022/12/26 07:59
android-6-1 KASAN: use-after-free Read in ext4_find_extent missing-backport 19 C error done 3 588d 1085d 0/2 auto-obsoleted due to no activity on 2025/02/04 04:57
linux-5.15 KASAN: use-after-free Read in ext4_find_extent origin:lts-only 19 C inconclusive 7 48d 1054d 0/3 upstream: reported C repro on 2023/07/19 14:49
linux-6.6 KASAN: use-after-free Read in ext4_find_extent 19 C error 8 163d 163d 0/2 auto-obsoleted due to no activity on 2026/04/15 02:12
upstream KASAN: use-after-free Read in ext4_find_extent ext4 19 2 1691d 1752d 0/29 auto-closed as invalid on 2022/02/17 05:19
android-6-1 KASAN: use-after-free Read in ext4_find_extent (2) origin:lts 19 C 35 25d 372d 0/2 upstream: reported C repro on 2025/05/31 08:45
linux-6.1 KASAN: use-after-free Read in ext4_find_extent origin:upstream missing-backport 19 C done 69 72d 992d 0/3 upstream: reported C repro on 2023/09/19 00:11
upstream KASAN: use-after-free Read in ext4_find_extent (2) ext4 19 C error 2 1129d 1254d 22/29 fixed on 2023/06/08 14:41
upstream KASAN: use-after-free Read in ext4_find_extent (4) ext4 prio:high 19 C done error 307 70d 523d 0/29 upstream: reported C repro on 2024/12/30 20:06
upstream KASAN: use-after-free Read in ext4_find_extent (3) prio:low ext4 19 C error done 31 894d 1076d 25/29 fixed on 2024/01/30 23:26
android-54 KASAN: slab-out-of-bounds Read in ext4_find_extent ext4 17 C 1 1073d 1259d 0/2 auto-obsoleted due to no activity on 2023/10/08 03:20
Last patch testing requests (12)
Created Duration User Patch Repo Result
2026/05/31 16:33 14m retest repro android13-5.15-lts log
2026/05/31 16:33 14m retest repro android13-5.15-lts log
2026/05/31 16:33 13m retest repro android13-5.15-lts log
2026/05/31 16:33 14m retest repro android13-5.15-lts log
2026/05/31 16:33 13m retest repro android13-5.15-lts log
2026/04/04 17:34 6m retest repro android13-5.15-lts report log
2026/04/04 17:34 6m retest repro android13-5.15-lts report log
2026/04/04 17:34 8m retest repro android13-5.15-lts report log
2026/04/04 17:34 8m retest repro android13-5.15-lts report log
2022/12/28 14:25 13m tudor.ambarus@linaro.org https://github.com/ambarus/linux.git 5ee4e1b578324fdfde35eaf5ceb30a19336c97f6 OK log
2022/12/28 13:48 7m tudor.ambarus@linaro.org upstream report log
2022/12/28 13:47 13m tudor.ambarus@linaro.org https://github.com/ambarus/linux.git f3c76c42a554367d313d2e315676b19535089ac3 OK log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/05/16 00:06 40m bisect fix android13-5.15-lts OK (0) job log log
2023/10/23 19:44 42m bisect fix android13-5.15-lts OK (0) job log log
2023/07/31 02:16 55m bisect fix android13-5.15-lts OK (0) job log log
2023/06/01 08:00 16m bisect fix android13-5.15-lts OK (0) job log log
2023/05/01 12:38 18m bisect fix android13-5.15-lts OK (0) job log log
2023/03/04 00:47 18m bisect fix android13-5.15-lts OK (0) job log log
2023/02/01 21:22 28m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:827 [inline]
BUG: KASAN: use-after-free in ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:946
Read of size 4 at addr ffff888128544d64 by task kworker/u4:4/329

CPU: 0 PID: 329 Comm: kworker/u4:4 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Workqueue: writeback wb_workfn (flush-7:2)
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0xf1/0x140 mm/kasan/report.c:444
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 ext4_ext_binsearch fs/ext4/extents.c:827 [inline]
 ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:946
 ext4_ext_map_blocks+0x207/0x6230 fs/ext4/extents.c:4182
 ext4_map_blocks+0x988/0x1b30 fs/ext4/inode.c:676
 mpage_map_one_extent fs/ext4/inode.c:2423 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline]
 ext4_writepages+0x123f/0x3090 fs/ext4/inode.c:2844
 do_writepages+0x473/0x6c0 mm/page-writeback.c:2388
 __writeback_single_inode+0xd5/0x9c0 fs/fs-writeback.c:1657
 writeback_sb_inodes+0xa10/0x1610 fs/fs-writeback.c:1940
 wb_writeback+0x40b/0x9d0 fs/fs-writeback.c:2116
 wb_do_writeback fs/fs-writeback.c:2263 [inline]
 wb_workfn+0x3ac/0xf30 fs/fs-writeback.c:2304
 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325
 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472
 kthread+0x411/0x500 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

The buggy address belongs to the page:
page:ffffea0004a15100 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x128544
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea0004a15188 ffffea0004a155c

Crashes (140):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/15 11:00 android13-5.15-lts 7f4b368e0410 9cd3beaa .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/06 00:52 android13-5.15-lts e63ebedc51b2 26da2c66 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/02/16 20:08 android13-5.15-lts 13d6d33696ef 5d52cba5 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/23 00:52 android13-5.15-lts 00b50d06692d 82c9c083 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/22 23:59 android13-5.15-lts 00b50d06692d 82c9c083 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/11/29 19:10 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/11/23 14:44 android13-5.15-lts 057fdbf6d3c7 4fb8ef37 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/10/19 21:09 android13-5.15-lts bce84c40a40b 1c8c8cd8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/18 06:22 android13-5.15-lts f32b52534f1d 1804e95e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/10 00:25 android13-5.15-lts f32b52534f1d 32a0e5ed .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/05/10 04:12 android13-5.15-lts f93c8b5a9e60 77908e5f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/03/31 16:29 android13-5.15-lts 5e1b899f19c3 d3999433 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2023/09/22 15:16 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2023/06/16 06:36 android13-5.15-lts 19c0ed55a470 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2023/04/01 06:28 android13-5.15-lts 7364b7abbafb f325deb0 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2023/03/19 02:20 android13-5.15-lts 5448b2fda85f 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/15 13:31 android13-5.15-lts 7f4b368e0410 9cd3beaa .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 KASAN: out-of-bounds Read in ext4_find_extent
2026/05/15 06:35 android13-5.15-lts 7f4b368e0410 6ccb967e .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/04/18 01:33 android13-5.15-lts 7fad219d720d 24ecfc1e .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/23 01:15 android13-5.15-lts 00b50d06692d 82c9c083 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/11/07 08:37 android13-5.15-lts 8a8f52308945 4e1406b4 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/06/20 07:55 android13-5.15-lts e678c93d43cc ed3e87f7 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2022/12/14 02:48 android13-5.15-lts 7048384c9872 f6511626 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2022/12/12 18:12 android13-5.15-lts 7048384c9872 67be1ae7 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2022/12/04 17:22 android13-5.15-lts 92f701cae0bc e080de16 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2022/12/26 07:49 android13-5.15-lts c73b4619ad86 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/09 10:51 android13-5.15-lts fbdcb39071da 29233ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/07 09:46 android13-5.15-lts a5c2f59daca2 f250db59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/06 20:57 android13-5.15-lts a5c2f59daca2 1dddfd3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/05 18:48 android13-5.15-lts e63ebedc51b2 06e69a27 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/05/02 21:54 android13-5.15-lts e63ebedc51b2 a0d91488 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/04/20 10:14 android13-5.15-lts 7fad219d720d 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/04/07 21:18 android13-5.15-lts 7fad219d720d 628666c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/03/21 15:50 android13-5.15-lts 60dba25bf158 5b92003d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/03/18 14:16 android13-5.15-lts 60dba25bf158 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/03/11 02:19 android13-5.15-lts 60dba25bf158 86914af9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/03/10 19:04 android13-5.15-lts 60dba25bf158 4683d576 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/03/10 16:56 android13-5.15-lts 60dba25bf158 4683d576 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/02/23 20:50 android13-5.15-lts 13d6d33696ef 6beca497 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/02/22 02:23 android13-5.15-lts 13d6d33696ef 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/02/09 03:53 android13-5.15-lts b5b90d209864 4c131dc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/26 18:57 android13-5.15-lts 00b50d06692d a4c52dd6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/23 05:47 android13-5.15-lts 00b50d06692d 82c9c083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/22 02:47 android13-5.15-lts a3d96b0467db 8fc37797 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2026/01/04 08:02 android13-5.15-lts 050dc55b0457 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/12/29 16:56 android13-5.15-lts 050dc55b0457 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/12/25 07:29 android13-5.15-lts 050dc55b0457 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/12/14 06:48 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/10/15 09:32 android13-5.15-lts bce84c40a40b b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/10/06 01:55 android13-5.15-lts 2bbc293701f8 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/10/03 19:57 android13-5.15-lts 2bbc293701f8 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/09/23 00:21 android13-5.15-lts 8d934e0056f7 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/09/18 14:38 android13-5.15-lts 8d934e0056f7 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/18 23:54 android13-5.15-lts f32b52534f1d 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/10 23:44 android13-5.15-lts f32b52534f1d 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/10 08:16 android13-5.15-lts f32b52534f1d 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/08/01 11:41 android13-5.15-lts f32b52534f1d 40127d41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/31 20:09 android13-5.15-lts f32b52534f1d 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/31 12:53 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/31 07:22 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/31 05:43 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/31 00:48 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/30 14:32 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/29 09:58 android13-5.15-lts f32b52534f1d c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/07/14 08:47 android13-5.15-lts 32c443bd6d40 3cda49cf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 KASAN: use-after-free Read in ext4_find_extent
2025/09/18 02:48 android13-5.15-lts 8d934e0056f7 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
2025/07/31 16:06 android13-5.15-lts f32b52534f1d 0c075d67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
2025/07/31 14:56 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
2025/07/31 07:22 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
2025/07/30 22:44 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
2025/07/29 20:15 android13-5.15-lts f32b52534f1d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in ext4_find_extent
* Struck through repros no longer work on HEAD.