Files
twx-linux/crypto
Herbert Xu 03bd90fc82 crypto: shash - Fix zero-length shash ahash digest crash
commit b61907bb42 upstream.

The shash ahash digest adaptor function may crash if given a
zero-length input together with a null SG list.  This is because
it tries to read the SG list before looking at the length.

This patch fixes it by checking the length first.

Reported-by: Stephan Müller<smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Stephan Müller <smueller@chronox.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-18 09:20:41 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
2015-10-15 21:05:06 +08:00
…
…
…
…
…
2017-03-26 12:13:17 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…