Linux
wifi: wilc1000: avoid buffer overflow in WID string configuration
In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: avoid buffer overflow in WID string configuration Fix the following copy overflow warning identified by Smatch checker. drivers/net/wireless/microchip/wilc1000/wlan_cfg.c:184 wilc_wlan_parse_response_frame() error: '__memcpy()' 'cfg->s[i]->str' copy overflow (512 vs 65537) This patch introduces size check before accessing the memory buffer. The checks are base on the WID type of received data from the firmware. For WID string configuration, the size limit is determined by individual element size in 'struct wilc_cfg_str_vals' that is maintained in 'len' field of 'struct wilc_cfg_str'.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c5c77ba18ea66aa05441c71e38473efb787705a4, < 5f1578a8684794318a60a022cedbffaa3dc444ce
- >= c5c77ba18ea66aa05441c71e38473efb787705a4, < 6085291a1a5865d4ad70f0e5812d524ebd5d1711
- >= c5c77ba18ea66aa05441c71e38473efb787705a4, < 2203ef417044b10a8563ade6a17c74183745d72e
- >= c5c77ba18ea66aa05441c71e38473efb787705a4, < ae50f8562306a7ea1cf3c9722f97ee244f974729
- >= c5c77ba18ea66aa05441c71e38473efb787705a4, < fe9e4d0c39311d0f97b024147a0d155333f388b5
Fixed in 5f1578a8684794318a60a022cedbffaa3dc444ce, 6085291a1a5865d4ad70f0e5812d524ebd5d1711, 2203ef417044b10a8563ade6a17c74183745d72e, ae50f8562306a7ea1cf3c9722f97ee244f974729, fe9e4d0c39311d0f97b024147a0d155333f388b5
- 4.2
Fixed in 0, 6.1.191, 6.6.108, 6.12.49, 6.16.9, 6.17
Mitigation
Upgrade Linux to 5f1578a8684794318a60a022cedbffaa3dc444ce or 6085291a1a5865d4ad70f0e5812d524ebd5d1711 or 2203ef417044b10a8563ade6a17c74183745d72e or ae50f8562306a7ea1cf3c9722f97ee244f974729 or fe9e4d0c39311d0f97b024147a0d155333f388b5 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.108 or 6.12.49 or 6.16.9 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.