Re: [PATCH] wifi: cfg80211: fix UBSAN noise in cfg80211_wext_siwscan()

2024-09-05 Thread Kees Cook
On Thu, Sep 05, 2024 at 06:04:00PM +0300, Dmitry Antipov wrote: > Looking at https://syzkaller.appspot.com/bug?extid=1a3986bbd3169c307819 > and running reproducer with CONFIG_UBSAN_BOUNDS, I've noticed the > following: > > [ T4985] UBSAN: array-index-out-of-bounds in net/wireless/scan.c:3479:25 >

[PATCH] wifi: cfg80211: fix UBSAN noise in cfg80211_wext_siwscan()

2024-09-05 Thread Dmitry Antipov
Looking at https://syzkaller.appspot.com/bug?extid=1a3986bbd3169c307819 and running reproducer with CONFIG_UBSAN_BOUNDS, I've noticed the following: [ T4985] UBSAN: array-index-out-of-bounds in net/wireless/scan.c:3479:25 [ T4985] index 164 is out of range for type 'struct ieee80211_channel *[]' <