Crypto Fixes for 4.15

From: Herbert Xu
Date: Mon Dec 11 2017 - 02:22:37 EST


Hi Linus:

This push fixes the following issues:

- Buffer overread in RSA.
- Potential use after free in algif_aead.
- Error path null pointer dereference in af_alg.
- Forbid combinations such as hmac(hmac(sha3)) which may crash.
- Crash in salsa20 due to incorrect API usage.


Please pull from

git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus


Eric Biggers (5):
crypto: rsa - fix buffer overread when stripping leading zeroes
crypto: algif_aead - fix reference counting of null skcipher
crypto: af_alg - fix NULL pointer dereference in
crypto: hmac - require that the underlying hash algorithm is unkeyed
crypto: salsa20 - fix blkcipher_walk API usage

arch/x86/crypto/salsa20_glue.c | 7 -------
crypto/af_alg.c | 13 +++++++------
crypto/algif_aead.c | 2 +-
crypto/hmac.c | 6 +++++-
crypto/rsa_helper.c | 2 +-
crypto/salsa20_generic.c | 7 -------
crypto/shash.c | 5 +++--
include/crypto/internal/hash.h | 8 ++++++++
8 files changed, 25 insertions(+), 25 deletions(-)

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt