]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdio: Check for CISTPL_VERS_1 buffer size
authorPali Rohár <pali@kernel.org>
Mon, 27 Jul 2020 13:38:34 +0000 (15:38 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Sep 2020 07:11:28 +0000 (09:11 +0200)
commit23459d2119d5875f0a788f2a6ab4d6d15790bbbc
treefc7fb139d344cbf1daf86c434f38b2179d23688d
parent8ee4b8089afc6c81e30b7000d934aed6e4ad8731
mmc: sdio: Check for CISTPL_VERS_1 buffer size

Before parsing CISTPL_VERS_1 structure check that its size is at least two
bytes to prevent buffer overflow.

Signed-off-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20200727133837.19086-2-pali@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio_cis.c