Sanity check ticket length.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 22 Aug 2016 16:20:01 +0000 (17:20 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2016 22:16:24 +0000 (23:16 +0100)
commite97763c92c655dcf4af2860b3abd2bc4c8a267f9
tree7685c3cebdb14bafe73c9eb5c3fd8c7a1f761043
parent652c52a602b4c88cfadb99e85ef175441b7f5d18
Sanity check ticket length.

If a ticket callback changes the HMAC digest to SHA512 the existing
sanity checks are not sufficient and an attacker could perform a DoS
attack with a malformed ticket. Add additional checks based on
HMAC size.

Thanks to Shi Lei for reporting this bug.

CVE-2016-6302

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
ssl/t1_lib.c