summaryrefslogtreecommitdiff
path: root/security/openssl
diff options
context:
space:
mode:
authortaca <taca>2011-02-09 00:15:30 +0000
committertaca <taca>2011-02-09 00:15:30 +0000
commita1767f0c0bfccb7d16c2ea9b879fb39bc81c6650 (patch)
tree48947d43d59fca8d00fe17a0fd4bc67b0b01a596 /security/openssl
parent75105b3bf33d91765c36237a7ea00fdf4c7ac0a5 (diff)
downloadpkgsrc-a1767f0c0bfccb7d16c2ea9b879fb39bc81c6650.tar.gz
Add fix for security issue CVE-2011-0014.
Bump PKGREVISION.
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/Makefile3
-rw-r--r--security/openssl/distinfo3
-rw-r--r--security/openssl/patches/patch-ssl_t1__lib.c30
3 files changed, 34 insertions, 2 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 7012e37497f..3db182a943e 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.153 2010/12/03 00:17:21 taca Exp $
+# $NetBSD: Makefile,v 1.154 2011/02/09 00:15:30 taca Exp $
OPENSSL_SNAPSHOT?= # empty
OPENSSL_STABLE?= # empty
@@ -22,6 +22,7 @@ MASTER_SITES= ftp://ftp.openssl.org/snapshot/
.endif
SVR4_PKGNAME= ossl
+PKGREVISION= 1
CATEGORIES= security
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.openssl.org/
diff --git a/security/openssl/distinfo b/security/openssl/distinfo
index 4aab2e72202..b4eec094ade 100644
--- a/security/openssl/distinfo
+++ b/security/openssl/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.79 2010/12/03 00:17:21 taca Exp $
+$NetBSD: distinfo,v 1.80 2011/02/09 00:15:30 taca Exp $
SHA1 (openssl-0.9.8q.tar.gz) = 12b6859698ca299fa0cba594686c25d5c01e410d
RMD160 (openssl-0.9.8q.tar.gz) = 2a6583fc059f83232b16d0dad8855fc8086f2450
@@ -11,3 +11,4 @@ SHA1 (patch-af) = 2610930b6b06397fa2e3955b3244c02193f5b7a6
SHA1 (patch-ag) = 5f12c72b85e4b6c6a79dfcf87055e9e029fbd8c8
SHA1 (patch-ak) = 049250b9bd42e6f155145703135dab39a7ec17e0
SHA1 (patch-al) = 076a606352bdeaeea1cc64f16be2ac1325882302
+SHA1 (patch-ssl_t1__lib.c) = 0ec0cfd2c70c7d35c2bb1c6261d5817ea56941aa
diff --git a/security/openssl/patches/patch-ssl_t1__lib.c b/security/openssl/patches/patch-ssl_t1__lib.c
new file mode 100644
index 00000000000..983bb2e9c72
--- /dev/null
+++ b/security/openssl/patches/patch-ssl_t1__lib.c
@@ -0,0 +1,30 @@
+$NetBSD: patch-ssl_t1__lib.c,v 1.1 2011/02/09 00:15:30 taca Exp $
+
+Fix for security issue CVE-2011-0014.
+
+--- ssl/t1_lib.c.orig 2010-11-16 14:26:18.000000000 +0000
++++ ssl/t1_lib.c
+@@ -521,6 +521,7 @@ int ssl_parse_clienthello_tlsext(SSL *s,
+ }
+ n2s(data, idsize);
+ dsize -= 2 + idsize;
++ size -= 2 + idsize;
+ if (dsize < 0)
+ {
+ *al = SSL_AD_DECODE_ERROR;
+@@ -559,9 +560,14 @@ int ssl_parse_clienthello_tlsext(SSL *s,
+ }
+
+ /* Read in request_extensions */
++ if (size < 2)
++ {
++ *al = SSL_AD_DECODE_ERROR;
++ return 0;
++ }
+ n2s(data,dsize);
+ size -= 2;
+- if (dsize > size)
++ if (dsize != size)
+ {
+ *al = SSL_AD_DECODE_ERROR;
+ return 0;