Re: [BUG] KASAN: slab-use-after-free Read in irq_migrate_all_off_this_cpu
From: Radu Rendec
Date: Sat Aug 29 2026 - 16:35:30 EST
Hello Farhad,
On Thu, 2026-08-27 at 22:41 -0700, Farhad Alemi wrote:
> As part of the kernel research at ASU's SEFCOM
> lab, we hit the crash below. Crash reports can be found here:
>
> https://github.com/farhad-alemi/public_bug_reports/tree/main/164-kasan-slab-use-after-free-read-in-irq-migrate-all-off-this-cpu/
>
> BUG: KASAN: slab-use-after-free in irq_can_move_pcntxt
> kernel/irq/internals.h:305 [inline]
> BUG: KASAN: slab-use-after-free in migrate_one_irq
> kernel/irq/cpuhotplug.c:57 [inline]
> BUG: KASAN: slab-use-after-free in
> irq_migrate_all_off_this_cpu+0xdf/0xc80 kernel/irq/cpuhotplug.c:181
> Call Trace:
> irq_can_move_pcntxt kernel/irq/internals.h:305 [inline]
> migrate_one_irq kernel/irq/cpuhotplug.c:57 [inline]
> irq_migrate_all_off_this_cpu+0xdf/0xc80 kernel/irq/cpuhotplug.c:181
> fixup_irqs+0x18/0x1e0 arch/x86/kernel/irq.c:527
> cpu_disable_common+0xb27/0xd90 arch/x86/kernel/smpboot.c:1354
> native_cpu_disable+0x2f/0x40 arch/x86/kernel/smpboot.c:1366
> take_cpu_down+0xca/0x330 kernel/cpu.c:1282
> multi_cpu_stop+0x227/0x420 kernel/stop_machine.c:238
> cpu_stopper_thread+0x259/0x3e0 kernel/stop_machine.c:512
>
> BUG: KASAN: slab-out-of-bounds in
> irq_migrate_all_off_this_cpu+0xdf/0xc80 kernel/irq/cpuhotplug.c:181
Thanks for reporting this. For everyone interested, please note that it
had been also reported by syzbot a few days before:
https://lore.kernel.org/all/6a8c23a0.dbb3a75c.7844.0001.GAE@xxxxxxxxxx/
Currently there is no follow up to the syzbot report.
> Our reproducer.c is available upon request.
If you could please send me the reproducer, I'd be happy to take a
look.
> Happy to test a patch if that would help.
Thanks. If I figure it out and send a patch, I'll be sure to copy you.
--
Regards,
Radu