Junglewise Threat Intelligence

CVE-2026-31780: Linux Kernel wilc1000 heap overflow in SSID scan buffer calculation

CVE-2026-31780 · Severity: high · CVSS 7.8 · Published 2026-05-01

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel driver for Microchip WILC1000 wireless network cards. An error in how the system calculates memory requirements for Wi-Fi network scans can lead to a memory overflow. This could allow a local attacker to crash the system or potentially gain unauthorized elevated privileges.

Technical details

A heap buffer overflow exists in the wilc1000 driver within the wilc_scan function in drivers/net/wireless/microchip/wilc1000/hif.c. The variable 'valuesize' was incorrectly declared as a u8 (8-bit unsigned integer), which has a maximum value of 255. When calculating the total length of up to 10 SSIDs (each up to 33 bytes), the total can reach 330, causing the u8 to wrap around to 74. This results in kmalloc allocating an undersized buffer while a subsequent memcpy writes up to 331 bytes, leading to a 256-byte heap overflow. The vulnerability is fixed by widening 'valuesize' to a u32.

Affected products

  • Linux Linux Kernel 4.2 to 5.10.253, 5.11 to 5.15.203, 5.16 to 6.1.168, 6.2 to 6.6.134, 6.7 to 6.12.81, 6.13 to 6.18.22, 6.19 to 6.19.12, 7.0-rc1 to 7.0-rc6

Timeline

  • 2026-03-24: other: Patch submitted by developer
  • 2026-04-11: patched: Patch committed to stable trees
  • 2026-05-01: disclosed: CVE published

References

Related threats