From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 29 02:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C559BA3A for ; Sat, 29 Jun 2013 02:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9160510DA for ; Sat, 29 Jun 2013 02:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5T2K0kk098102 for ; Sat, 29 Jun 2013 02:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5T2K0YX098101; Sat, 29 Jun 2013 02:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 29 Jun 2013 02:20:00 GMT Resent-Message-Id: <201306290220.r5T2K0YX098101@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shawn Webb Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A75179DE for ; Sat, 29 Jun 2013 02:12:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6347710AF for ; Sat, 29 Jun 2013 02:12:32 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5T2CWq0078786 for ; Sat, 29 Jun 2013 02:12:32 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5T2CWHZ078785; Sat, 29 Jun 2013 02:12:32 GMT (envelope-from nobody) Message-Id: <201306290212.r5T2CWHZ078785@oldred.freebsd.org> Date: Sat, 29 Jun 2013 02:12:32 GMT From: Shawn Webb To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/180077: [SECURITY] Potential DoS in RTLD X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jun 2013 02:20:00 -0000 >Number: 180077 >Category: misc >Synopsis: [SECURITY] Potential DoS in RTLD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 29 02:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Shawn Webb >Release: FreeBSD 9.1-STABLE >Organization: >Environment: FreeBSD hobby 9.1-RELEASE FreeBSD 9.1-STABLE #6 r251973+5173297: Wed Jun 19 01:49:18 EDT 2013 shawn@shawn-vm-host:/usr/obj/usr/src/sys/SEC amd64 >Description: In libexec/rtld-elf/rtld.c, line 854, the variable bloom_size32 is declared as a signed integer. The variable is first used on line 964, when it is assigned a user-controlled value. This value could be overflowed, causing the pointer on line 970 to point to a user-controlled area. The check on line 973 helps, though, as it makes it so that nmaskwords (which is used to calculate bloom_size32) must be a power of two. If the stars align right, an attacker could cause a DoS. I'm working on verifying whether code execution is possible, but my gut says it's not. >How-To-Repeat: >Fix: Change bloom_size32 to be unsigned. >Release-Note: >Audit-Trail: >Unformatted: