VDB

CVE-2025-38013

CVE-2025-38013 PUBLISHED

wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request

Reported by linux · Published June 18, 2025

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

EPSS 0.21% · 11.4th percentile

Risk scores

EPSS Score
0.21%
11.4th percentile

Affected products

VendorProductVersions
LinuxLinuxe3eac9f32ec04112b39e01b574ac739382469bf9, e3eac9f32ec04112b39e01b574ac739382469bf9, e3eac9f32ec04112b39e01b574ac739382469bf9
LinuxLinux6.6, 0, 6.6.92
LinuxLinux6.6, 6.6.92, 6.12.30
linuxlinux_kernel6.6, 6.6, 6.6

Timeline

  • Jun 17, 2025 CVE Published
  • Jun 18, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (5 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (270 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (281 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 13, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38013
vulnetix vdb fixes CVE-2025-38013

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38013/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›