Re: [syzbot] [kernel?] KASAN: slab-use-after-free Read in futex_unqueue
From: Hillf Danton
Date: Wed Feb 11 2026 - 01:31:41 EST
> Date: Tue, 10 Feb 2026 13:43:32 -0800 [thread overview]
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 72c395024dac Merge tag 'docs-7.0' of git://git.kernel.org/..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=137d9b22580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=bf83be18dae53c93
> dashboard link: https://syzkaller.appspot.com/bug?extid=6c1861115b4253e45969
> compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=169f8ae6580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17f657fa580000
#syz test
--- x/kernel/futex/core.c
+++ y/kernel/futex/core.c
@@ -1735,8 +1735,7 @@ void futex_hash_free(struct mm_struct *m
free_percpu(mm->futex_ref);
kvfree(mm->futex_phash_new);
fph = rcu_dereference_raw(mm->futex_phash);
- if (fph)
- kvfree(fph);
+ kvfree_rcu(fph, rcu);
}
static bool futex_pivot_pending(struct mm_struct *mm)
--- x/kernel/fork.c
+++ y/kernel/fork.c
@@ -1165,8 +1165,6 @@ EXPORT_SYMBOL_IF_KUNIT(mm_alloc);
static inline void __mmput(struct mm_struct *mm)
{
- VM_BUG_ON(atomic_read(&mm->mm_users));
-
uprobe_clear_state(mm);
exit_aio(mm);
ksm_exit(mm);
--