From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 1/5] [NETLINK]: Fix use after free in netlink_recvmsg Date: Thu, 03 May 2007 13:11:39 -0700 (PDT) Message-ID: <20070503.131139.66310255.davem@davemloft.net> References: <20070503095315.26912.24270.stgit@warthog.cambridge.redhat.com> <20070503.032714.11077929.davem@davemloft.net> <1178195236.6891.58.camel@violet> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dhowells@redhat.com, akpm@osdl.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, kaber@trash.net To: marcel@holtmann.org Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:54877 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754052AbXECULi (ORCPT ); Thu, 3 May 2007 16:11:38 -0400 In-Reply-To: <1178195236.6891.58.camel@violet> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Marcel Holtmann Date: Thu, 03 May 2007 14:27:16 +0200 > Hi Dave, > > > > When the user passes in MSG_TRUNC the skb is used after getting freed. > > > > > > Signed-off-by: Patrick McHardy > > > Signed-off-by: David Howells > > > > Ugh, good catch, applied :-) > > it seems this could be easily exploited and is at least a local DoS. It > should be a candidate for the -stable kernel. The MSG_TRUNC change is in 2.6.22 GIT only. You might want to check such things before making such statements. :-/