wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.11.116.12.26.13In the Linux kernel, the following vulnerability has been resolved:
wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan
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 a kernel panic if CONFIG_UBSAN_TRAP is set.
This patch sets the size of allocated memory as the initial value for n_channels. It is updated with the actual number of added elements after the array is filled.
From the CVE record · Linux
The nl80211 scheduled scan parser fills a channels array before setting the count used for bounds checking. This can trigger a bounds-sanitizer warning or, if CONFIG_UBSAN_TRAP is set, a kernel panic. The input does not establish an attacker path, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with the affected nl80211 code should check their versions; the input does not identify affected versions.