From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67163C83F01 for ; Wed, 30 Aug 2023 18:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245613AbjH3Sxp (ORCPT ); Wed, 30 Aug 2023 14:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245616AbjH3Pme (ORCPT ); Wed, 30 Aug 2023 11:42:34 -0400 X-Greylist: delayed 1478 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 30 Aug 2023 08:42:31 PDT Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [IPv6:2001:780:45:1d:225:90ff:fe52:c662]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6531122 for ; Wed, 30 Aug 2023 08:42:31 -0700 (PDT) Received: from [78.30.34.192] (port=59344 helo=gnumonks.org) by ganesha.gnumonks.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qbMwz-002KTX-WE; Wed, 30 Aug 2023 17:17:48 +0200 Date: Wed, 30 Aug 2023 17:17:44 +0200 From: Pablo Neira Ayuso To: Wander Lairson Costa Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Harald Welte , "open list:NETFILTER" , "open list:NETFILTER" , "open list:NETWORKING [GENERAL]" , open list , Lucas Leong , stable@kernel.org Subject: Re: [PATCH nf] netfilter/xt_sctp: validate the flag_info count Message-ID: References: <20230828221255.124812-1-wander@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230828221255.124812-1-wander@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 28, 2023 at 07:12:55PM -0300, Wander Lairson Costa wrote: > sctp_mt_check doesn't validate the flag_count field. An attacker can > take advantage of that to trigger a OOB read and leak memory > information. > > Add the field validation in the checkentry function. Applied to nf, thanks