[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_001BC04BE01B3C2563BAA0BB1633DF9E7908@qq.com>
Date: Wed, 30 Apr 2025 18:13:16 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+4bcdddd48bb6f0be0da1@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [wireless?] UBSAN: array-index-out-of-bounds in ieee80211_request_ibss_scan
#syz test
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 4246d168374f..1048a05fec5e 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -1732,6 +1732,9 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata,
return -EOPNOTSUPP;
}
+ if (local->int_scan_req && !local->int_scan_req->n_channels)
+ return -EINVAL;
+
ret = cfg80211_chandef_dfs_required(local->hw.wiphy,
¶ms->chandef,
sdata->wdev.iftype);
Powered by blists - more mailing lists