]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: wilc1000: validate pairwise and authentication suite offsets
authorPhil Turnbull <philipturnbull@github.com>
Wed, 23 Nov 2022 15:35:40 +0000 (10:35 -0500)
committerKalle Valo <kvalo@kernel.org>
Thu, 24 Nov 2022 16:11:23 +0000 (18:11 +0200)
commitd9eb310ac42bdfc9add90aca75dc7d79f464b2a0
tree1b5646c0886c31bfe9a45f0e948acf4ad982bf9e
parent957798e75ccc469f34d3c0bfc0e8db6050253d51
wifi: wilc1000: validate pairwise and authentication suite offsets

There is no validation of 'offset' which can trigger an out-of-bounds
read when extracting RSN capabilities.

Signed-off-by: Phil Turnbull <philipturnbull@github.com>
Tested-by: Ajay Kathat <ajay.kathat@microchip.com>
Acked-by: Ajay Kathat <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221123153543.8568-2-philipturnbull@github.com
drivers/net/wireless/microchip/wilc1000/hif.c