From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C59B730E0D4; Thu, 9 Apr 2026 19:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775761412; cv=none; b=MWuurrFHacC35Wl5NdDam/xRd5xLXNSjauUmhewZtafWwL5mNCuXcNJoghJzZ6b+erNr52pydIn7yt1a6kbqduKf9s1Rldz3/rFfgRsCMhP5QipE3pbgusdD+O56zeixQetT+m13b+Rjt9zxDPhAba1mjz0PKDIMzfYLWvrRNsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775761412; c=relaxed/simple; bh=YwOkPrRz58qVrT4iAwNpRE3lExF4h4WkvL4s+eVv7sU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WNr6xVzjQFFfGK1yB/iZdGA+oQdRbuwxcPScfJuYgsiZetoZdYRqloc8gTIhpLiH5we4eDsLRr8MuN6JIX936sucQV0kywNZ87h04db57mQcWRAVtjEII5+m7C73xbXpXUBOM/eYTJCCwhfeLFnlpyd1VxHvUfZ9u7KZML3c47U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tk2BzVsq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tk2BzVsq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66721C4CEF7; Thu, 9 Apr 2026 19:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775761412; bh=YwOkPrRz58qVrT4iAwNpRE3lExF4h4WkvL4s+eVv7sU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tk2BzVsq5K66LQj5lSzTXPGxJEwFNDlwXC4Bsh4aDJoNRaO54kTtnBOAaAEOoefYw rPCWOlfSj8qt65VMbfI4vvljNO/PxuVmKM0Bo5tB3t9K6dwqhfUE+y6x/aOUqkfaqr K51mphn1hDtib0tFZUDFsfNo3j3LxaB4yHu87OwlNIwlA7G//UlVNDCiMSI9iytrdx XRaWGxMeyJZ90wv00aiW+2fjMkzk6aCKUVqRq7Fk9CP/6tLnVhGJ1R9EQAAsCd7HDs qEeplxn/S5fdqTUYTrD0A25SF5zUPIDCqx+mMEutKGEfuS5376VtTNxvbgNg99z5cz ao8HcbA3Wrx4A== Date: Thu, 9 Apr 2026 20:03:28 +0100 From: Simon Horman To: Greg Kroah-Hartman Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-hams@vger.kernel.org, Yizhe Zhuang , stable Subject: Re: [PATCH net] netrom: do some basic forms of validation on incoming frames Message-ID: <20260409190328.GS469338@kernel.org> References: <2026040730-untagged-groin-bbb7@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2026040730-untagged-groin-bbb7@gregkh> On Tue, Apr 07, 2026 at 10:45:31AM +0200, Greg Kroah-Hartman wrote: > There is a lack of much validation of frame size coming from a > netrom-based device. While these devices are "trusted" doing some > sanity checks is good to at least keep the fuzzing tools happy when they > stumble across this ancient protocol and light up with a range of bug > reports. > > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: Simon Horman > Cc: linux-hams@vger.kernel.org > Assisted-by: gregkh_clanker_2000 > Reviewed-by: Yizhe Zhuang > Cc: stable > Signed-off-by: Greg Kroah-Hartman Hi Greg 2000! I expect that checking skb->len isn't sufficient here and pskb_may_pull needs to be used to ensure that the data is also available in the linear section of the skb. Also, although I'm all for incremental enhancements, I do suspect that similar problems exist in the call chain of these functions. ...