{"id":"CVE-2026-31780","aliases":["CVE-2026-31780"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: wilc1000: fix u8 overflow in SSID scan buffer size calculation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wilc1000: fix u8 overflow in SSID scan buffer size calculation\n\nThe variable valuesize is declared as u8 but accumulates the total\nlength of all SSIDs to scan. Each SSID contributes up to 33 bytes\n(IEEE80211_MAX_SSID_LEN + 1), and with WILC_MAX_NUM_PROBED_SSID (10)\nSSIDs the total can reach 330, which wraps around to 74 when stored\nin a u8.\n\nThis causes kmalloc to allocate only 75 bytes while the subsequent\nmemcpy writes up to 331 bytes into the buffer, resulting in a 256-byte\nheap buffer overflow.\n\nWiden valuesize from u8 to u32 to accommodate the full range.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wilc1000: fix u8 overflow in SSID scan buffer size calculation\n\nThe variable valuesize is declared as u8 but accumulates the total\nlength of all SSIDs to scan. Each SSID contributes up to 33 bytes\n(IEEE80211_MAX_SSID_LEN + 1), and with WILC_MAX_NUM_PROBED_SSID (10)\nSSIDs the total can reach 330, which wraps around to 74 when stored\nin a u8.\n\nThis causes kmalloc to allocate only 75 bytes while the subsequent\nmemcpy writes up to 331 bytes into the buffer, resulting in a 256-byte\nheap buffer overflow.\n\nWiden valuesize from u8 to u32 to accommodate the full range.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nwifi: wilc1000: corregir desbordamiento de u8 en el cálculo del tamaño del búfer de escaneo de SSID\n\nLa variable valuesize está declarada como u8 pero acumula la longitud total de todos los SSIDs a escanear. Cada SSID contribuye con hasta 33 bytes (IEEE80211_MAX_SSID_LEN + 1), y con WILC_MAX_NUM_PROBED_SSID (10) SSIDs el total puede alcanzar 330, lo que se envuelve a 74 cuando se almacena en un u8.\n\nEsto hace que kmalloc asigne solo 75 bytes mientras que el memcpy subsiguiente escribe hasta 331 bytes en el búfer, lo que resulta en un desbordamiento de búfer de pila de 256 bytes.\n\nAmpliar valuesize de u8 a u32 para acomodar el rango completo.","source":"nvd"}],"published":"2026-05-01T14:15:07.253Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","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":"Linux","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-787"],"affected":[{"ranges":[{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"34a23fd9ddd683a03c7e8cc0ceded3e59e354b99","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"549f02d8ec94d39092ab6d9b103d0d6783a4b024","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"bfbddeadd4779651403035ee177ae2f22f9f5521","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"9907ac9b9a18b92fc34b9e4cb9e10f208dc1d3f7","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"c97b2a00059608592ad0d86fbb813a4f8cf9464b","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"d8388614de613c28eeb659c10115060a83739924","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"0c7f21d8bd2f93998b72b7a7f93152336aeca4dd","status":"affected"},{"type":"git","introduced":"c5c77ba18ea66aa05441c71e38473efb787705a4","fixed":"d049e56b1739101d1c4d81deedb269c52a8dbba0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"4.2","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/34a23fd9ddd683a03c7e8cc0ceded3e59e354b99","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/549f02d8ec94d39092ab6d9b103d0d6783a4b024","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfbddeadd4779651403035ee177ae2f22f9f5521","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9907ac9b9a18b92fc34b9e4cb9e10f208dc1d3f7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c97b2a00059608592ad0d86fbb813a4f8cf9464b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8388614de613c28eeb659c10115060a83739924","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c7f21d8bd2f93998b72b7a7f93152336aeca4dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d049e56b1739101d1c4d81deedb269c52a8dbba0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31780","url":"https://www.cve.org/CVERecord?id=CVE-2026-31780","licence":"CVE Terms of Use","modified":"2026-08-05T12:25:08.895Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31780","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31780","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.384Z","epss":{"score":0.00148,"percentile":0.04223,"date":"2026-12-01T12:00:22.000Z"}}