From bdaa1830146059a3d43d2e45a3620641ea28794a Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 29 Mar 2010 23:14:47 +0000 Subject: [package] openssl: add patch for CVE-2010-0740 ("Record of death") vulnerability git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20592 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/openssl/patches/400-cve-2010-0740.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/openssl/patches/400-cve-2010-0740.patch (limited to 'package/openssl/patches') diff --git a/package/openssl/patches/400-cve-2010-0740.patch b/package/openssl/patches/400-cve-2010-0740.patch new file mode 100644 index 000000000..4c893eb38 --- /dev/null +++ b/package/openssl/patches/400-cve-2010-0740.patch @@ -0,0 +1,15 @@ +--- a/ssl/s3_pkt.c ++++ b/ssl/s3_pkt.c +@@ -291,9 +291,9 @@ again: + if (version != s->version) + { + SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_WRONG_VERSION_NUMBER); +- /* Send back error using their +- * version number :-) */ +- s->version=version; ++ if ((s->version & 0xFF00) == (version & 0xFF00)) ++ /* Send back error using their minor version number :-) */ ++ s->version = (unsigned short)version; + al=SSL_AD_PROTOCOL_VERSION; + goto f_err; + } -- cgit v1.2.3