diff options
author | Eric Biggers <ebiggers@google.com> | 2017-11-05 18:30:46 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 09:23:29 +0100 |
commit | 11fdb41a1faac5635f9646149b4027809259ce89 (patch) | |
tree | 6a172e22b8a47a9a58bc397e44041b3aac184fc2 /Documentation/eisa.txt | |
parent | 2d3a0d9501566876ce0d1d9200402eb457e072e0 (diff) |
crypto: dh - Don't permit 'key' or 'g' size longer than 'p'
commit ccd9888f14a8019c0bbdeeae758aba1f58693712 upstream.
The "qat-dh" DH implementation assumes that 'key' and 'g' can be copied
into a buffer with size 'p_size'. However it was never checked that
that was actually the case, which most likely allowed users to cause a
buffer underflow via KEYCTL_DH_COMPUTE.
Fix this by updating crypto_dh_decode_key() to verify this precondition
for all DH implementations.
Fixes: c9839143ebbf ("crypto: qat - Add DH support")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/eisa.txt')
0 files changed, 0 insertions, 0 deletions