Re: [PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Kees Cook
On Mon, Oct 28, 2024 at 04:54:43PM -0600, Gustavo A. R. Silva wrote: > > > On 28/10/24 16:18, Aleksei Vetrov via B4 Relay wrote: > > From: Aleksei Vetrov > > > > The channels array in the cfg80211_scan_request has a __counted_by > > attribute attached to it, which points to the n_channels varia

Re: [PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Gustavo A. R. Silva
On 28/10/24 16:18, Aleksei Vetrov via B4 Relay wrote: From: Aleksei Vetrov The channels array in the cfg80211_scan_request has a __counted_by attribute attached to it, which points to the n_channels variable. This attribute is used in bounds checking, and if it is not set before the array is

[PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Aleksei Vetrov via B4 Relay
From: Aleksei Vetrov The channels array in the cfg80211_scan_request has a __counted_by attribute attached to it, which points to the n_channels variable. This attribute is used in bounds checking, and if it is not set before the array is filled, then the bounds sanitizer will issue a warning or