KASAN: stack-out-of-bounds Write in __hrtimer_run_queues

Status: moderation: reported on 2026/10/22 02:11
Subsystems: kernel
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+29bea7aa93b8bb8adde6@syzkaller.appspotmail.com
First crash: 4d08h, last: 4d08h
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
2e5ced40 repro-c 💥 KASAN: stack-out-of-bounds Write in __hrtimer_run_queues 2026/10/21 11:26 2026/10/21 11:26 2026/10/21 14:07 61c200c7
99b56158 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: stack-out-of-bounds Write in __hrtimer_run_queues 2026/10/20 00:51 2026/10/20 00:51 2026/10/20 01:41 e931f328
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in __hrtimer_run_queues kernel 10 syz, C 2 874d 871d 0/29 auto-obsoleted due to no activity on 2024/09/07 15:16
upstream general protection fault in __hrtimer_run_queues (3) kernel 17 syz, C error done 2 1046d 1211d 25/29 fixed on 2024/01/30 15:47
upstream Internal error in __hrtimer_run_queues kernel 2 1 772d 768d 0/29 auto-obsoleted due to no activity on 2024/12/08 21:40

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in debug_object_deactivate+0x36/0x250 lib/debugobjects.c:926
Write of size 16 at addr ffffc90000a17f40 by task syz.0.4191/24288

CPU: 1 UID: 0 PID: 24288 Comm: syz.0.4191 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <IRQ>
 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
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200
 __asan_memset+0x22/0x50 mm/kasan/shadow.c:84
 debug_object_deactivate+0x36/0x250 lib/debugobjects.c:926
 debug_hrtimer_deactivate kernel/time/hrtimer.c:491 [inline]
 __run_hrtimer kernel/time/hrtimer.c:2042 [inline]
 __hrtimer_run_queues+0x239/0xa10 kernel/time/hrtimer.c:2131
 hrtimer_interrupt+0x4cd/0xaa0 kernel/time/hrtimer.c:2250
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline]
 __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1068
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1062
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:132 [inline]
RIP: 0010:__local_bh_enable_ip+0xdf/0x140 kernel/softirq.c:480
Code: e8 86 22 63 0a 65 66 8b 05 ca 9e 0d 13 66 85 c0 75 34 bf 01 00 00 00 e8 2f fc 0b 00 e8 5a 4c 47 00 fb 65 48 8b 05 81 9e 0d 13 <48> 85 c0 75 05 e8 c7 e3 a9 ff 5b 41 5e e9 7f 08 66 0a cc 90 0f 0b
RSP: 0018:ffffc90000a182a8 EFLAGS: 00000206
RAX: 0000000000000101 RBX: 0000000000000201 RCX: 0000000000000101
RDX: 0000000000000000 RSI: ffffffff8e46e38a RDI: ffffffff8c6e1780
RBP: ffffc90000a184b0 R08: ffffffff917abd7f R09: 1ffffffff22f57af
R10: dffffc0000000000 R11: fffffbfff22f57b0 R12: ffffc90000a187f0
R13: ffff888033db0468 R14: ffffffff8b36e041 R15: 1ffff92000143064
 spin_unlock_bh include/linux/spinlock.h:407 [inline]
 cfg80211_inform_single_bss_data+0x1491/0x1be0 net/wireless/scan.c:2462
 cfg80211_inform_bss_data+0x263/0x3cc0 net/wireless/scan.c:3302
 cfg80211_inform_bss_frame_data+0x3c7/0x840 net/wireless/scan.c:3394
 ieee80211_bss_info_update+0x791/0xa50 net/mac80211/scan.c:230
 ieee80211_scan_rx+0x552/0xa40 net/mac80211/scan.c:364
 __ieee80211_rx_handle_packet net/mac80211/rx.c:5433 [inline]
 ieee80211_rx_list+0x2d0e/0x3b00 net/mac80211/rx.c:5726
 ieee80211_rx_napi+0x1ad/0x3d0 net/mac80211/rx.c:5749
 ieee80211_rx include/net/mac80211.h:5449 [inline]
 ieee80211_handle_queued_frames+0xe4/0x1d0 net/mac80211/main.c:452
 tasklet_action_common+0x2d7/0x490 kernel/softirq.c:961
 handle_softirqs+0x226/0x860 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:preempt_schedule_irq+0x46/0x90 kernel/sched/core.c:7606
Code: 49 be 00 00 00 00 00 fc ff df eb 09 48 f7 03 10 00 00 00 74 53 bf 01 00 00 00 e8 35 c0 a7 f5 e8 b0 11 e3 f5 fb bf 01 00 00 00 <e8> 65 a1 ff ff 9c 58 fa a9 00 02 00 00 74 05 e8 76 13 e3 f5 bf 01
RSP: 0018:ffffc9000412f9d8 EFLAGS: 00000202
RAX: 0000000000001825 RBX: ffff88802ae70000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8e46e38a RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff917abd7f R09: 1ffffffff22f57af
R10: dffffc0000000000 R11: fffffbfff22f57b0 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
 irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:539 [inline]
 irqentry_exit+0x14f/0x910 kernel/entry/common.c:167
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__copy_msghdr+0x1f9/0x590 net/socket.c:-1
Code: 08 4c 89 f8 48 c1 e8 03 80 3c 18 00 74 08 4c 89 ff e8 4b 23 90 f8 49 89 2f eb 26 e8 f1 45 1b f8 b8 ea ff ff ff e9 15 01 00 00 <4c> 89 fb e8 df 45 1b f8 4c 8b 7c 24 08 4d 85 ff 75 a8 e8 d0 45 1b
RSP: 0018:ffffc9000412faf0 EFLAGS: 00000283
RAX: ffffffff89ad38a2 RBX: ffffc9000412fe00 RCX: ffff88802ae70000
RDX: 0000000000000002 RSI: 000000000000000c RDI: 0000000000000080
RBP: 000000000000000c R08: ffffc9000412fbd7 R09: 1ffff92000825f7a
R10: dffffc0000000000 R11: fffff52000825f7b R12: 1ffff92000825fc1
R13: ffffc9000412fba0 R14: 1ffff92000825f74 R15: dffffc0000000000
 copy_msghdr_from_user net/socket.c:2646 [inline]
 sendmsg_copy_msghdr net/socket.c:2744 [inline]
 ___sys_sendmsg+0x213/0x360 net/socket.c:2763
 __sys_sendmsg net/socket.c:2799 [inline]
 __do_sys_sendmsg net/socket.c:2804 [inline]
 __se_sys_sendmsg net/socket.c:2802 [inline]
 __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2802
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3a6b59e559
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:00007f3a6c4dc028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3a6b825fa0 RCX: 00007f3a6b59e559
RDX: 0000000000000000 RSI: 0000200000001080 RDI: 000000000000000c
RBP: 00007f3a6b635ab8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3a6b826038 R14: 00007f3a6b825fa0 R15: 00007ffcba010058
 </TASK>

The buggy address belongs to a 0-page vmalloc region starting at 0xffffc90000a11000 allocated at map_irq_stack arch/x86/kernel/irq_64.c:49 [inline]
The buggy address belongs to a 0-page vmalloc region starting at 0xffffc90000a11000 allocated at irq_init_percpu_irqstack+0x3ac/0x530 arch/x86/kernel/irq_64.c:76
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb8507
flags: 0xfff00000002000(reserved|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002000 ffffea0002e141c8 ffffea0002e141c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)

Memory state around the buggy address:
 ffffc90000a17e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc90000a17e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90000a17f00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
                                           ^
 ffffc90000a17f80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc90000a18000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
   0:	e8 86 22 63 0a       	call   0xa63228b
   5:	65 66 8b 05 ca 9e 0d 	mov    %gs:0x130d9eca(%rip),%ax        # 0x130d9ed7
   c:	13
   d:	66 85 c0             	test   %ax,%ax
  10:	75 34                	jne    0x46
  12:	bf 01 00 00 00       	mov    $0x1,%edi
  17:	e8 2f fc 0b 00       	call   0xbfc4b
  1c:	e8 5a 4c 47 00       	call   0x474c7b
  21:	fb                   	sti
  22:	65 48 8b 05 81 9e 0d 	mov    %gs:0x130d9e81(%rip),%rax        # 0x130d9eab
  29:	13
* 2a:	48 85 c0             	test   %rax,%rax <-- trapping instruction
  2d:	75 05                	jne    0x34
  2f:	e8 c7 e3 a9 ff       	call   0xffa9e3fb
  34:	5b                   	pop    %rbx
  35:	41 5e                	pop    %r14
  37:	e9 7f 08 66 0a       	jmp    0xa6608bb
  3c:	cc                   	int3
  3d:	90                   	nop
  3e:	0f 0b                	ud2

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/18 01:58 bpf-next 458575e1f2dd 432c0077 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce KASAN: stack-out-of-bounds Write in __hrtimer_run_queues
* Struck through repros no longer work on HEAD.