{"id":"CVE-2025-38013","aliases":["CVE-2025-38013"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request\n\nMake sure that n_channels is set after allocating the\nstruct cfg80211_registered_device::int_scan_req member. Seen with\nsyzkaller:\n\nUBSAN: array-index-out-of-bounds in net/mac80211/scan.c:1208:5\nindex 0 is out of range for type 'struct ieee80211_channel *[] __counted_by(n_channels)' (aka 'struct ieee80211_channel *[]')\n\nThis was missed in the initial conversions because I failed to locate\nthe allocation likely due to the \"sizeof(void *)\" not matching the\n\"channels\" array type.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request\n\nMake sure that n_channels is set after allocating the\nstruct cfg80211_registered_device::int_scan_req member. Seen with\nsyzkaller:\n\nUBSAN: array-index-out-of-bounds in net/mac80211/scan.c:1208:5\nindex 0 is out of range for type 'struct ieee80211_channel *[] __counted_by(n_channels)' (aka 'struct ieee80211_channel *[]')\n\nThis was missed in the initial conversions because I failed to locate\nthe allocation likely due to the \"sizeof(void *)\" not matching the\n\"channels\" array type.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: mac80211: Establecer n_channels tras asignar la estructura cfg80211_scan_request. Asegúrese de que n_channels esté establecido tras asignar el miembro de la estructura cfg80211_registered_device::int_scan_req. Observada con syzkaller: UBSAN: array-index-out-of-bounds en net/mac80211/scan.c:1208:5. El índice 0 está fuera de rango para el tipo 'struct ieee80211_channel *[] __counted_by(n_channels)' (también conocido como 'struct ieee80211_channel *[]'). Esto no se detectó en las conversiones iniciales porque no se localizó la asignación, probablemente debido a que \"sizeof(void *)\" no coincide con el tipo de matriz \"channels\".","source":"nvd"}],"published":"2025-06-18T09:28:22.672Z","modified":"2026-06-17T09:15:52.960Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"e3eac9f32ec04112b39e01b574ac739382469bf9","fixed":"fde33ab3c052a302ee8a0b739094b88ceae4dd67","status":"affected"},{"type":"git","introduced":"e3eac9f32ec04112b39e01b574ac739382469bf9","fixed":"07c737d9ab02c07b562aefcca16aa95077368e24","status":"affected"},{"type":"git","introduced":"e3eac9f32ec04112b39e01b574ac739382469bf9","fixed":"e3192e999a0d05ea0ba2c59c09afaf0b8ee70b81","status":"affected"},{"type":"git","introduced":"e3eac9f32ec04112b39e01b574ac739382469bf9","fixed":"82bbe02b2500ef0a62053fe2eb84773fe31c5a0a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.92","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.30","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.8","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.92"},{"status":"affected","introduced":"6.7","fixed":"6.12.30"},{"status":"affected","introduced":"6.13","fixed":"6.14.8"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fde33ab3c052a302ee8a0b739094b88ceae4dd67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07c737d9ab02c07b562aefcca16aa95077368e24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3192e999a0d05ea0ba2c59c09afaf0b8ee70b81","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82bbe02b2500ef0a62053fe2eb84773fe31c5a0a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38013","url":"https://www.cve.org/CVERecord?id=CVE-2025-38013","licence":"CVE Terms of Use","modified":"2026-05-11T21:19:37.553Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38013","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38013","licence":"Public domain","modified":"2026-06-17T09:15:52.960Z"}],"updatedAt":"2026-11-25T22:58:59.337Z","epss":{"score":0.00302,"percentile":0.15284,"date":"2026-11-30T12:00:22.000Z"}}