OSDN Git Service

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)
commitcd21d99e595ec1d8721e1058dcdd4f1f7de1d793
tree1b5646c0886c31bfe9a45f0e948acf4ad982bf9e
parent2d0b08c157434eebf0b6393c570089666dacf2aa
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