Article View: linux.kernel.netdev
Article #314Re: [PATCH nf] netfilter: nf_conntrack_sip: only honour Via: port in original direction
From: Pablo Neira Ayuso
Date: Wed, 07 Oct 2026 19:44
Date: Wed, 07 Oct 2026 19:44
52 lines
7724 bytes
7724 bytes
On Wed, Oct 07, 2026 at 12:52:19PM -0300, Joas Antonio wrote: > Hi, > > How the issue was discovered: manual code inspection of > nf_conntrack_sip.c / nf_nat_sip.c, assisted by an LLM (hence the > Assisted-by: tag), while auditing the conntrack helpers for > direction-handling issues. > > I then confirmed it at runtime on 602042bf29f6 (QEMU, arm64) with > client -> router -> server network namespaces, the router running > nft masquerade and a "sip" ct helper on udp/5060. When the server > sends a request with "Via: SIP/2.0/UDP <server-ip>:4444", the client > behind the NAT receives that request and a following plain UDP payload > on port 4444; with the patch applied both arrive on 5060. Sorry, this cannot be nf material. It looks fairly theoretical to me, maybe for correctness patch? Is this assuming a rogue server and packet spoofing? > Thanks, > Joas > > > Em qua., 7 de out. de 2026 às 12:30, <netdev-bot+sinfo@kernel.org> escreveu: > > > > Hi! > > > > This is an automated message. This series looks like a fix, but its > > commit messages seem to be missing some information: > > > > - How the issue was discovered, e.g. hit in production, hit during > > development, syzbot report, manual code inspection, LLM or static > > analysis tool scan. > > > > Please do not repost the series just to address the above. Instead, > > reply to this email with the missing information, so that reviewers > > can take it into account. If the series needs another revision for > > other reasons, please include the information in the commit messages > > then. > > > > The evaluation is done by an LLM so it may be wrong, if you think > > that is the case please reply and explain. > > > > -- > Joas Antonio dos Santos > Cyber Security Specialist and Ethical Hacker > joasantonio108@gmail.com > LinkedIn
Technical Details
Message-ID:
<asahA40Bh9chMyqP@chamomile>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342510-linux-kernel-netdev=dewy.ruReferences:
<179138670045.80227.4002052840715926590@gmail.com> <179138703794.2527009.12321622169213831789@kernel.org> <CAOCBhwE_JmVTmbuzJc8SEU1ROVyrat=7K-wqTQE=Er0gUy4fLA@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342510-linux-kernel-netdev=dewy.ru From: pablo@netfilter.org (Pablo Neira Ayuso) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH nf] netfilter: nf_conntrack_sip: only honour Via: port in original direction Date: Wed, 7 Oct 2026 21:44:03 +0200 Organization: Usenet Network Message-ID: <asahA40Bh9chMyqP@chamomile> References: <179138670045.80227.4002052840715926590@gmail.com> <179138703794.2527009.12321622169213831789@kernel.org> <CAOCBhwE_JmVTmbuzJc8SEU1ROVyrat=7K-wqTQE=Er0gUy4fLA@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="724223"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZKifCEW+8+46Z+2GbPa5z2A7Iew= sha256:RGYJffppxKy0jTfGUnBL5Tjc/7o32SnHcvAAe7M0at4= sha1:REx+Nf/YB/8U2il4kkFrnPtYyl4= sha256:O8kAYjCexUD3LeU6Q5WZwK4C8w+uNs9KbDANsCiXRng= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7455D10F228; Wed, 7 Oct 2026 22:45:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=netfilter.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LEsy5dhGWk0p; Wed, 7 Oct 2026 22:45:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342510-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 2830F10F224; Wed, 7 Oct 2026 22:45:15 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 5DF0236200; Wed, 7 Oct 2026 19:44:10 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 295DE38E5C4; Wed, 7 Oct 2026 19:44:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="hQhAJ+q7" X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124]) (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 1757F342523; Wed, 7 Oct 2026 19:44:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.190.124 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791402250; cv=none; b=BirvuUcfnm10QtDxWxsg9KVtSWjYjFG5qfLCM6OAJ60uGtr9g/dAJMr8k6NS66yFUKPQoYQRxwmeePl9czYLWIxG3EtzMeKU41i8GYGDn9ZeDph1DgzgR3hsSDcwXLtzBwcmYnnBx3BEFxEnveoKbwA2TR9ruMPgy0p+del5VVU= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791402250; c=relaxed/simple; bh=o18PTC159uzGzI09RXEF02jVvQB93yCBG7nAUQJcmII=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kMSBI1+gPHRaXrO9bMGRFEf20or+LupQpnE309K71xHw4gLwrb2sFMB7T4dOSdNEpyia5h8QQ09lh3gwYEdum6qUTyV680A20ePQ0b5qdjE/idcrNkJSl1uS+x4LuOuHWi+mfdCUEtKLdQutYixg7fI4Eep8YGBzRvjiA9ydQQk= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b=hQhAJ+q7; arc=none smtp.client-ip=217.70.190.124 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org; s=2025; t=1791402245; bh=VUuZxfLDhpvNEXQUPMbnDBpD02PVPPUZQtnIVr/uYEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hQhAJ+q75EPvTnnfupVoy8QjHaRkfsdtlqsn8/X8UhQDK3okAMK5eDHlB3+An+Tuq fXp+Q5SG15+GGE80o4tElokVsxVAjSpj4yZK/RkYP3a+pBDIUkygq/I+LO1iMuvy+4 xGSY1ad1CUEkxlpsCDNzvRMKbMQkqN8HuveOQiknIN0wKVBsSMFXs3G7I3orydDWqO 55khzS+JLc117LkueeEjbdU5j4r7np5ihmj2k28cnLkzYwsIQPJPNybL1ID9aFe7vP 0tkXy02tW9soEWVw9XFIoGjbquKQzqHrVD4inzD/Qy1buYR+6iLopmfY5rwuy0hMtv Ga8GkK5jo3ABA== X-Received: from netfilter.org (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with UTF8SMTPSA id 7006D60055; Wed, 7 Oct 2026 21:44:05 +0200 (CEST) X-Cc: netdev-bot+sinfo@kernel.org, Florian Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <CAOCBhwE_JmVTmbuzJc8SEU1ROVyrat=7K-wqTQE=Er0gUy4fLA@mail.gmail.com>