Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751135Ab1CTOnq (ORCPT ); Sun, 20 Mar 2011 10:43:46 -0400 Received: from stinky.trash.net ([213.144.137.162]:44694 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726Ab1CTOnm (ORCPT ); Sun, 20 Mar 2011 10:43:42 -0400 Message-ID: <4D861298.1040700@trash.net> Date: Sun, 20 Mar 2011 15:43:36 +0100 From: Patrick McHardy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 MIME-Version: 1.0 To: Changli Gao CC: Vasiliy Kulikov , linux-kernel@vger.kernel.org, security@kernel.org, "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: Re: [PATCH v2] ipv4: netfilter: ipt_CLUSTERIP: fix buffer overflow References: <1299780740-32652-1-git-send-email-segoon@openwall.com> <4D7F5CAC.6070006@trash.net> <20110317113229.GA7710@albatros> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 21 Am 17.03.2011 13:15, schrieb Changli Gao: > On Thu, Mar 17, 2011 at 7:32 PM, Vasiliy Kulikov wrote: >> 'buffer' string is copied from userspace. It is not checked whether it is >> zero terminated. This may lead to overflow inside of simple_strtoul(). >> Changli Gao suggested to copy not more than user supplied 'size' bytes. >> >> It was introduced before the git epoch. Files "ipt_CLUSTERIP/*" are >> root writable only by default, however, on some setups permissions might be >> relaxed to e.g. network admin user. >> >> Signed-off-by: Vasiliy Kulikov > Acked-by: Changli Gao > > Applied, thanks everyone. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/