linux-stable/lib/crypto
Mark O'Donovan 9e47a758b7 crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()
During NVMeTCP Authentication a controller can trigger a kernel
oops by specifying the 8192 bit Diffie Hellman group and passing
a correctly sized, but zeroed Diffie Hellamn value.
mpi_cmp_ui() was detecting this if the second parameter was 0,
but 1 is passed from dh_is_pubkey_valid(). This causes the null
pointer u->d to be dereferenced towards the end of mpi_cmp_ui()

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-08-11 19:19:52 +08:00
..
mpi crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui() 2023-08-11 19:19:52 +08:00
Kconfig crypto: lib/aesgcm - Provide minimal library implementation 2022-11-11 18:14:59 +08:00
Makefile crypto: lib - Move mpi into lib/crypto 2023-08-11 19:19:27 +08:00
aes.c
aesgcm.c crypto: lib/aesgcm - Provide minimal library implementation 2022-11-11 18:14:59 +08:00
arc4.c
blake2s-generic.c crypto: blake2s: remove module-related code 2023-04-13 13:13:51 -07:00
blake2s-selftest.c crypto: lib/blake2s - Split up test function to halve stack usage 2022-12-30 22:56:27 +08:00
blake2s.c crypto: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:51 -07:00
chacha.c
chacha20poly1305-selftest.c
chacha20poly1305.c crypto: lib - rename 'mod_init' & 'mod_exit' functions to be module-specific 2021-07-16 15:49:36 +08:00
curve25519-fiat32.c
curve25519-generic.c
curve25519-hacl64.c types: Introduce [us]128 2023-06-05 09:36:35 +02:00
curve25519-selftest.c
curve25519.c crypto: lib - rename 'mod_init' & 'mod_exit' functions to be module-specific 2021-07-16 15:49:36 +08:00
des.c
gf128mul.c crypto: lib/gf128mul - make gf128mul_lle time invariant 2022-11-11 18:14:59 +08:00
libchacha.c
memneq.c crypto: lib - remove __HAVE_ARCH_CRYPTO_MEMNEQ 2022-08-19 18:39:34 +08:00
poly1305-donna32.c
poly1305-donna64.c types: Introduce [us]128 2023-06-05 09:36:35 +02:00
poly1305.c
sha1.c crypto: lib - add module license to libsha1 2022-07-20 15:28:07 +08:00
sha256.c crypto: lib/sha256 - Use generic code from sha256_base 2023-05-19 16:45:43 +08:00
utils.c crypto: lib/utils - Move utilities into new header 2023-03-31 17:50:09 +08:00