Description
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'.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6085291a1a5865d4ad70f0e5812d524ebd5d1711
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2203ef417044b10a8563ade6a17c74183745d72e
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ae50f8562306a7ea1cf3c9722f97ee244f974729
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fe9e4d0c39311d0f97b024147a0d155333f388b5
6.6.108
6.12.49
6.16.9
6.17
References
git.kernel.org/...c/6085291a1a5865d4ad70f0e5812d524ebd5d1711
git.kernel.org/...c/2203ef417044b10a8563ade6a17c74183745d72e
git.kernel.org/...c/ae50f8562306a7ea1cf3c9722f97ee244f974729
git.kernel.org/...c/fe9e4d0c39311d0f97b024147a0d155333f388b5