CVE-2025-38013

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38013
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38013.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38013
Downstream
Related
Published
2025-06-18T10:15:32Z
Modified
2025-06-18T14:01:35Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

wifi: mac80211: Set nchannels after allocating struct cfg80211scan_request

Make sure that nchannels is set after allocating the struct cfg80211registereddevice::intscan_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 ieee80211channel *[] _countedby(nchannels)' (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.

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.30-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}