Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: rsa-pkcs1pad - fix buffer overread in pkcs1pad_verify_complete()
commit a24611e upstream. Before checking whether the expected digest_info is present, we need to check that there are enough bytes remaining. Fixes: a49de37 ("crypto: Add hash param to pkcs1pad") Cc: <[email protected]> # v4.6+ Cc: Tadeusz Struk <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information