aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-pow.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2018-07-27 22:36:10 +0000
committerHerbert Xu <[email protected]>2018-08-03 10:06:06 +0000
commit35f7d5225ffcbf1b759f641aec1735e3a89b1914 (patch)
tree8e433b5ee404d6f4ed9a4319f0358ef6b5fb7f42 /lib/mpi/mpi-pow.c
parentcrypto: ccp - Check for NULL PSP pointer at module unload (diff)
downloadkernel-35f7d5225ffcbf1b759f641aec1735e3a89b1914.tar.gz
kernel-35f7d5225ffcbf1b759f641aec1735e3a89b1914.zip
crypto: dh - fix calculating encoded key size
It was forgotten to increase DH_KPP_SECRET_MIN_SIZE to include 'q_size', causing an out-of-bounds write of 4 bytes in crypto_dh_encode_key(), and an out-of-bounds read of 4 bytes in crypto_dh_decode_key(). Fix it, and fix the lengths of the test vectors to match this. Reported-by: [email protected] Fixes: e3fe0ae12962 ("crypto: dh - add public key verification test") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions