Sanity check ticket length.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 23 Aug 2016 17:14:54 +0000 (18:14 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2016 22:18:51 +0000 (23:18 +0100)
commitbaaabfd8fdcec04a691695fad9a664bea43202b6
treee3cc3e3b9ad784fdcfb27589b843bfbab0f9bf02
parent3cb28d188803c7768f767f0da40bbea61449521c
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: Rich Salz <rsalz@openssl.org>
ssl/t1_lib.c