Experts at security firm Codenomicon discovered a critical buffer overflow vulnerability in the implementation of the GnuTLS software.
“Buffer overflow in the read_server_hello function in lib/gnutls_handshake.c in GnuTLS before 3.1.25, 3.2.x before 3.2.15, and 3.3.x before 3.3.4 allows remote servers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a long session id in a ServerHello message.” is the description provided by Mitre in the CVE-ID.
“A flaw was found in the way GnuTLS parsed session ids from Server Hello packets of the TLS/SSL handshake,” “A malicious server could use this flaw to send an excessively long session id value and trigger a buffer overflow in a connecting TLS/SSL client using GnuTLS, causing it to crash or, possibly, execute arbitrary code.” states Red Hat.
“The flaw is in read_server_hello() / _gnutls_read_server_hello(), where session_id_len is checked to not exceed incoming packet size, but not checked to ensure it does not exceed maximum session id length.”