syzbot


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

Status: upstream: reported C repro on 2026/05/22 18:52
Subsystems: fs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+69a3d7738ad3aa175caf@syzkaller.appspotmail.com
First crash: 25d, last: 4d20h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
bfec4721-bfc4-4cb6-8044-76deca695c91 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ KASAN: slab-use-after-free Read in clear_tfile_check_list 2026/06/01 22:17 2026/06/01 22:17 2026/06/01 23:20 386cc6dacdf7e3ebce9507beed6755d7e999554d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH v2] eventpoll: fix use-after-free in clear_tfile_check_list() 3 (3) 2026/05/29 13:14
[PATCH v3] eventpoll: fix use-after-free in clear_tfile_check_list() 1 (1) 2026/05/29 13:12
[PATCH] eventpoll: fix use-after-free in clear_tfile_check_list() 3 (3) 2026/05/29 04:16
[PATCH next] eventpoll: delay file list memory deallocation until unlisting 2 (2) 2026/05/28 12:37
[syzbot] [fs?] KASAN: slab-use-after-free Read in clear_tfile_check_list 1 (3) 2026/05/23 03:50
Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/05/23 03:22 26m eadavis@qq.com patch linux-next log

Sample crash report:
RAX: ffffffffffffffda RBX: 00007f129c6a5fa0 RCX: 00007f129c42ce59
RDX: 0000000000000005 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ffeb1d5c4f0 R08: 0000000000000000 R09: 0000000000000000
R10: 00002000000004c0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f129c6a5fac R14: 00007f129c6a5fa0 R15: 00007f129c6a5fa0
 </TASK>
==================================================================
BUG: KASAN: slab-use-after-free in clear_tfile_check_list+0x114/0x380 fs/eventpoll.c:2443
Read of size 8 at addr ffff88803f021568 by task syz.0.74/5985

CPU: 1 UID: 0 PID: 5985 Comm: syz.0.74 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 clear_tfile_check_list+0x114/0x380 fs/eventpoll.c:2443
 do_epoll_ctl_file+0x8fd/0xed0 fs/eventpoll.c:-1
 do_epoll_ctl fs/eventpoll.c:2698 [inline]
 __do_sys_epoll_ctl fs/eventpoll.c:2715 [inline]
 __se_sys_epoll_ctl+0x14e/0x210 fs/eventpoll.c:2706
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f129c42ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeb1d5c488 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: ffffffffffffffda RBX: 00007f129c6a5fa0 RCX: 00007f129c42ce59
RDX: 0000000000000005 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ffeb1d5c4f0 R08: 0000000000000000 R09: 0000000000000000
R10: 00002000000004c0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f129c6a5fac R14: 00007f129c6a5fa0 R15: 00007f129c6a5fa0
 </TASK>

Allocated by task 5985:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 unpoison_slab_object mm/kasan/common.c:340 [inline]
 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366
 kasan_slab_alloc include/linux/kasan.h:253 [inline]
 slab_post_alloc_hook mm/slub.c:4583 [inline]
 slab_alloc_node mm/slub.c:4912 [inline]
 kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4919
 ep_attach_file fs/eventpoll.c:1751 [inline]
 ep_register_epitem fs/eventpoll.c:1833 [inline]
 ep_insert+0x512/0x1820 fs/eventpoll.c:1876
 do_epoll_ctl_file+0x8bb/0xed0 fs/eventpoll.c:2651
 do_epoll_ctl fs/eventpoll.c:2698 [inline]
 __do_sys_epoll_ctl fs/eventpoll.c:2715 [inline]
 __se_sys_epoll_ctl+0x14e/0x210 fs/eventpoll.c:2706
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5985:
 kasan_save_stack mm/kasan/common.c:57 [inline]
 kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584
 poison_slab_object mm/kasan/common.c:253 [inline]
 __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:2700 [inline]
 slab_free mm/slub.c:6284 [inline]
 kmem_cache_free+0x187/0x6c0 mm/slub.c:6411
 ep_remove+0x155/0x2a0 fs/eventpoll.c:1135
 ep_insert+0x1372/0x1820 fs/eventpoll.c:-1
 do_epoll_ctl_file+0x8bb/0xed0 fs/eventpoll.c:2651
 do_epoll_ctl fs/eventpoll.c:2698 [inline]
 __do_sys_epoll_ctl fs/eventpoll.c:2715 [inline]
 __se_sys_epoll_ctl+0x14e/0x210 fs/eventpoll.c:2706
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88803f021560
 which belongs to the cache ep_head of size 16
The buggy address is located 8 bytes inside of
 freed 16-byte region [ffff88803f021560, ffff88803f021570)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803f0213e0 pfn:0x3f021
memcg:ffff88803d044001
flags: 0x80000000000200(workingset|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000200 ffff888140419c80 ffffea0000a5dc90 ffff888020ecdf88
raw: ffff88803f0213e0 0000000800800078 00000000f5000000 ffff88803d044001
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4982, tgid 4982 (udevd), ts 45918061529, free_ts 45769000837
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0x27d6/0x2850 mm/page_alloc.c:3954
 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5297
 alloc_slab_page mm/slub.c:3289 [inline]
 allocate_slab+0x74/0x5e0 mm/slub.c:3404
 new_slab mm/slub.c:3447 [inline]
 refill_objects+0x33c/0x3d0 mm/slub.c:7226
 refill_sheaf mm/slub.c:2827 [inline]
 __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4665
 alloc_from_pcs mm/slub.c:4763 [inline]
 slab_alloc_node mm/slub.c:4897 [inline]
 kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4919
 ep_attach_file fs/eventpoll.c:1751 [inline]
 ep_register_epitem fs/eventpoll.c:1833 [inline]
 ep_insert+0x512/0x1820 fs/eventpoll.c:1876
 do_epoll_ctl_file+0x8bb/0xed0 fs/eventpoll.c:2651
 do_epoll_ctl fs/eventpoll.c:2698 [inline]
 __do_sys_epoll_ctl fs/eventpoll.c:2715 [inline]
 __se_sys_epoll_ctl+0x14e/0x210 fs/eventpoll.c:2706
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 21 tgid 21 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 __free_pages_prepare mm/page_alloc.c:1420 [inline]
 __free_frozen_pages+0x1075/0x11b0 mm/page_alloc.c:2958
 __tlb_remove_table_free mm/mmu_gather.c:228 [inline]
 tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:299
 rcu_do_batch kernel/rcu/tree.c:2617 [inline]
 rcu_core kernel/rcu/tree.c:2869 [inline]
 rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957
 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
 kthread+0x389/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
 ffff88803f021400: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
 ffff88803f021480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
>ffff88803f021500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
                                                          ^
 ffff88803f021580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
 ffff88803f021600: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
==================================================================

Crashes (414):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/19 03:37 linux-next 80dd246accce 9f74d399 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/08 13:08 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/08 10:41 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/07 23:19 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/07 16:39 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/07 11:59 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/07 00:26 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/06 09:07 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/06 02:31 linux-next f7af91adc230 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/06 00:31 linux-next f7af91adc230 48b6c3fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/05 18:08 linux-next f7af91adc230 48b6c3fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/05 07:18 linux-next f7af91adc230 197909be .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/04 22:07 linux-next f7af91adc230 197909be .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/03 20:05 linux-next f7af91adc230 234057e5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/03 15:19 linux-next f7af91adc230 234057e5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/03 05:23 linux-next f7af91adc230 3c0d2131 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/03 03:39 linux-next f7af91adc230 3c0d2131 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 20:06 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 19:02 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 17:05 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 16:22 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 13:59 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 12:06 linux-next f7af91adc230 62fe1528 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 10:11 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 08:31 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 07:31 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 06:30 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 04:30 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 04:29 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 03:17 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/02 00:51 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 23:12 linux-next f7af91adc230 1095583b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 17:18 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 15:16 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 13:49 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 12:26 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 11:11 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 11:08 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 09:57 linux-next f7af91adc230 8d8eeb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/06/01 07:04 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/31 21:28 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/31 18:59 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/31 17:05 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/31 03:31 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/31 00:35 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 20:52 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 12:16 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 12:16 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 10:45 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 04:39 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/30 00:46 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/29 20:16 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in clear_tfile_check_list
2026/05/29 18:12 linux-next f7af91adc230 6b4a8443 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in clear_tfile_check_list
* Struck through repros no longer work on HEAD.