diff options
author | Eric Biggers <ebiggers@google.com> | 2022-01-19 03:13:05 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-01-31 03:21:44 +0300 |
commit | a24611ea356c7f3f0ec926da11b9482ac1f414fd (patch) | |
tree | 0036f840ac3d82bef06c15abefac3ca522d31462 /COPYING | |
parent | d3481accd974541e6a5d6a1fb588924a3519c36e (diff) | |
download | linux-a24611ea356c7f3f0ec926da11b9482ac1f414fd.tar.xz |
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions