Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2014 23:17:24 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265985 - head/crypto/openssl/ssl
Message-ID:  <201405132317.s4DNHOg9054728@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue May 13 23:17:24 2014
New Revision: 265985
URL: http://svnweb.freebsd.org/changeset/base/265985

Log:
  Fix OpenSSL NULL pointer deference vulnerability.
  
  Obtained from:	OpenBSD
  Security:	FreeBSD-SA-14:09.openssl
  Security:	CVE-2014-0198

Modified:
  head/crypto/openssl/ssl/s3_pkt.c

Modified: head/crypto/openssl/ssl/s3_pkt.c
==============================================================================
--- head/crypto/openssl/ssl/s3_pkt.c	Tue May 13 22:43:02 2014	(r265984)
+++ head/crypto/openssl/ssl/s3_pkt.c	Tue May 13 23:17:24 2014	(r265985)
@@ -657,6 +657,10 @@ static int do_ssl3_write(SSL *s, int typ
 		if (i <= 0)
 			return(i);
 		/* if it went, fall through and send more stuff */
+		/* we may have released our buffer, so get it again */
+		if (wb->buf == NULL)
+			if (!ssl3_setup_write_buffer(s))
+				return -1;
 		}
 
 	if (len == 0 && !create_empty_fragment)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405132317.s4DNHOg9054728>