CVE-2025-38013
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
18/06/2025
Last modified:
18/06/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request<br />
<br />
Make sure that n_channels is set after allocating the<br />
struct cfg80211_registered_device::int_scan_req member. Seen with<br />
syzkaller:<br />
<br />
UBSAN: array-index-out-of-bounds in net/mac80211/scan.c:1208:5<br />
index 0 is out of range for type &#39;struct ieee80211_channel *[] __counted_by(n_channels)&#39; (aka &#39;struct ieee80211_channel *[]&#39;)<br />
<br />
This was missed in the initial conversions because I failed to locate<br />
the allocation likely due to the "sizeof(void *)" not matching the<br />
"channels" array type.