In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request[EOL][EOL]Make sure that n_channels is set after allocating the[EOL]struct cfg80211_registered_device::int_scan_req member. Seen with[EOL]syzkaller:[EOL][EOL]UBSAN: array-index-out-of-bounds in net/mac80211/scan.c:1208:5[EOL]index 0 is out of range for type 'struct ieee80211_channel *[] __counted_by(n_channels)' (aka 'struct ieee80211_channel *[]')[EOL][EOL]This was missed in the initial conversions because I failed to locate[EOL]the allocation likely due to the "sizeof(void *)" not matching the[EOL]"channels" array type. CREATE(Triage):(User=lchen-cn) [CVE-2025-38013 (https://nvd.nist.gov/vuln/detail/CVE-2025-38013)