From owner-svn-src-head@FreeBSD.ORG Wed Apr 30 04:02:37 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29A4281C; Wed, 30 Apr 2014 04:02:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 156CA119A; Wed, 30 Apr 2014 04:02:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U42awG013847; Wed, 30 Apr 2014 04:02:36 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3U42amK013846; Wed, 30 Apr 2014 04:02:36 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201404300402.s3U42amK013846@svn.freebsd.org> From: Xin LI Date: Wed, 30 Apr 2014 04:02:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265120 - head/crypto/openssl/ssl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 04:02:37 -0000 Author: delphij Date: Wed Apr 30 04:02:36 2014 New Revision: 265120 URL: http://svnweb.freebsd.org/changeset/base/265120 Log: Fix OpenSSL use-after-free vulnerability. Obtained from: OpenBSD Security: FreeBSD-SA-14:09.openssl Security: CVE-2010-5298 Modified: head/crypto/openssl/ssl/s3_pkt.c Modified: head/crypto/openssl/ssl/s3_pkt.c ============================================================================== --- head/crypto/openssl/ssl/s3_pkt.c Wed Apr 30 04:02:32 2014 (r265119) +++ head/crypto/openssl/ssl/s3_pkt.c Wed Apr 30 04:02:36 2014 (r265120) @@ -1055,7 +1055,7 @@ start: { s->rstate=SSL_ST_READ_HEADER; rr->off=0; - if (s->mode & SSL_MODE_RELEASE_BUFFERS) + if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0) ssl3_release_read_buffer(s); } }