summaryrefslogtreecommitdiffstats
path: root/drivers/edac/synopsys_edac.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-11-06 03:30:46 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-10 12:20:17 +0100
commitccd9888f14a8019c0bbdeeae758aba1f58693712 (patch)
tree2e955d96c62a527a2ef03a70c261c52b9bac3f50 /drivers/edac/synopsys_edac.c
parentcrypto: dh - Don't permit 'p' to be 0 (diff)
downloadlinux-ccd9888f14a8019c0bbdeeae758aba1f58693712.tar.xz
linux-ccd9888f14a8019c0bbdeeae758aba1f58693712.zip
crypto: dh - Don't permit 'key' or 'g' size longer than 'p'
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") Cc: <stable@vger.kernel.org> # v4.8+ 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>
Diffstat (limited to 'drivers/edac/synopsys_edac.c')
0 files changed, 0 insertions, 0 deletions