Eric Biggers a24611ea35 crypto: rsa-pkcs1pad - fix buffer overread in pkcs1pad_verify_complete()
Before checking whether the expected digest_info is present, we need to
check that there are enough bytes remaining.

Fixes: a49de377e051 ("crypto: Add hash param to pkcs1pad")
Cc: <stable@vger.kernel.org> # v4.6+
Cc: Tadeusz Struk <tadeusz.struk@linaro.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-01-31 11:21:44 +11:00
..
2020-08-28 16:58:28 +10:00
2021-12-11 16:48:05 +11:00
2021-03-26 19:55:55 +11:00
2020-02-28 08:43:21 +08:00
2021-08-21 15:44:58 +08:00
2021-11-08 16:55:21 -08:00