From owner-svn-src-all@FreeBSD.ORG Fri Jul 26 22:43:09 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B590C76C; Fri, 26 Jul 2013 22:43:09 +0000 (UTC) (envelope-from delphij@FreeBSD.org) 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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A22C8248C; Fri, 26 Jul 2013 22:43:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6QMh9fP064534; Fri, 26 Jul 2013 22:43:09 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6QMh91C064533; Fri, 26 Jul 2013 22:43:09 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201307262243.r6QMh91C064533@svn.freebsd.org> From: Xin LI Date: Fri, 26 Jul 2013 22:43:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r253695 - stable/9/contrib/bind9/lib/dns/rdata/generic X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 22:43:09 -0000 Author: delphij Date: Fri Jul 26 22:43:09 2013 New Revision: 253695 URL: http://svnweb.freebsd.org/changeset/base/253695 Log: Fix Denial of Service vulnerability in named(8). [13:07] Security: CVE-2013-4854 Security: FreeBSD-SA-13:07.bind Approved by: re (rodrigc) Modified: stable/9/contrib/bind9/lib/dns/rdata/generic/keydata_65533.c Modified: stable/9/contrib/bind9/lib/dns/rdata/generic/keydata_65533.c ============================================================================== --- stable/9/contrib/bind9/lib/dns/rdata/generic/keydata_65533.c Fri Jul 26 22:40:29 2013 (r253694) +++ stable/9/contrib/bind9/lib/dns/rdata/generic/keydata_65533.c Fri Jul 26 22:43:09 2013 (r253695) @@ -176,7 +176,7 @@ fromwire_keydata(ARGS_FROMWIRE) { UNUSED(options); isc_buffer_activeregion(source, &sr); - if (sr.length < 4) + if (sr.length < 16) return (ISC_R_UNEXPECTEDEND); isc_buffer_forward(source, sr.length);