6dc7017
Dr S N Henson of the OpenSSL core team and Open Network Security
6dc7017
recently developed an ASN1 test suite for NISCC (www.niscc.gov.uk). When
6dc7017
the test suite was run against OpenSSL two denial of service
6dc7017
vulnerabilities were discovered.
6dc7017
6dc7017
During the parsing of certain invalid ASN1 structures an error
6dc7017
condition is mishandled. This can result in an infinite loop which
6dc7017
consumes system memory.  CVE-2006-2938
6dc7017
6dc7017
Any code which uses OpenSSL to parse ASN1 data from untrusted sources is
6dc7017
affected. This includes SSL servers which enable client authentication
6dc7017
and S/MIME applications.
6dc7017
6dc7017
This issue affects 0.9.7 and 0.9.8 but not 0.9.6 and earlier
6dc7017
6dc7017
--- openssl-0.9.8b/crypto/asn1/tasn_dec.c.asn1-error	2006-02-19 14:45:22.000000000 +0100
6dc7017
+++ openssl-0.9.8b/crypto/asn1/tasn_dec.c	2006-09-25 12:01:14.000000000 +0200
6dc7017
@@ -832,6 +832,7 @@
6dc7017
 		}
6dc7017
 	else if (ret == -1)
6dc7017
 		return -1;
6dc7017
+	ret = 0;
6dc7017
 	/* SEQUENCE, SET and "OTHER" are left in encoded form */
6dc7017
 	if ((utype == V_ASN1_SEQUENCE)
6dc7017
 		|| (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))