syzbot


UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan

Status: upstream: reported on 2025/06/19 16:46
Reported-by: syzbot+898af5b35877fe1edd16@syzkaller.appspotmail.com
First crash: 78d, last: 44d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan (2) wireless 15 238 45d 55d 29/29 fixed on 2025/09/04 16:57
upstream UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan wireless 15 C error 29652 59d 129d 29/29 fixed on 2025/07/08 00:33

Sample crash report:
wlan1: Trigger new scan to find an IBSS to join
================================================================================
UBSAN: array-index-out-of-bounds in net/mac80211/scan.c:1209:5
index 1 is out of range for type 'struct ieee80211_channel *[] __counted_by(n_channels)' (aka 'struct ieee80211_channel *[]')
CPU: 0 PID: 6167 Comm: kworker/u4:20 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound cfg80211_wiphy_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 ubsan_epilogue+0xa/0x30 lib/ubsan.c:217
 __ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348
 ieee80211_request_ibss_scan+0x4eb/0x790 net/mac80211/scan.c:1209
 ieee80211_sta_find_ibss net/mac80211/ibss.c:-1 [inline]
 ieee80211_ibss_work+0xdfd/0x10c0 net/mac80211/ibss.c:1709
 cfg80211_wiphy_work+0x225/0x260 net/wireless/core.c:437
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
================================================================================
Kernel panic - not syncing: UBSAN: panic_on_warn set ...
CPU: 0 PID: 6167 Comm: kworker/u4:20 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound cfg80211_wiphy_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 panic+0x2c0/0x710 kernel/panic.c:340
 check_panic_on_warn+0x84/0xa0 kernel/panic.c:236
 __ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348
 ieee80211_request_ibss_scan+0x4eb/0x790 net/mac80211/scan.c:1209
 ieee80211_sta_find_ibss net/mac80211/ibss.c:-1 [inline]
 ieee80211_ibss_work+0xdfd/0x10c0 net/mac80211/ibss.c:1709
 cfg80211_wiphy_work+0x225/0x260 net/wireless/core.c:437
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/23 16:34 linux-6.6.y d96eb99e2f0e e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/22 15:36 linux-6.6.y d96eb99e2f0e 8e9d1dc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/22 15:18 linux-6.6.y d96eb99e2f0e 8e9d1dc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/22 01:27 linux-6.6.y d96eb99e2f0e 1555463b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/22 01:19 linux-6.6.y d96eb99e2f0e 1555463b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/22 01:19 linux-6.6.y d96eb99e2f0e 1555463b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/21 03:57 linux-6.6.y d96eb99e2f0e 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/18 21:04 linux-6.6.y d96eb99e2f0e 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/18 20:47 linux-6.6.y d96eb99e2f0e 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/18 09:54 linux-6.6.y d96eb99e2f0e 88248e14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/14 14:55 linux-6.6.y 59a2de10b81a d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/06 07:27 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/06 05:52 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/06 05:52 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/07/05 11:25 linux-6.6.y 3f5b4c104b7d 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/06/30 15:54 linux-6.6.y 3f5b4c104b7d fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/06/30 12:41 linux-6.6.y 3f5b4c104b7d fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/06/27 03:40 linux-6.6.y 6282921b6825 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/06/22 16:46 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
2025/06/19 16:46 linux-6.6.y 6282921b6825 ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
* Struck through repros no longer work on HEAD.