Article View: linux.kernel.netdev
Article #6903Re: [PATCH v5] sctp: reject forged cookie peer_addr with unknown address family
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 19:30
Date: Fri, 23 Oct 2026 19:30
31 lines
9178 bytes
9178 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 19 Oct 2026 15:37:57 +0800 you wrote:
> When cookie authentication is disabled, COOKIE-ECHO peer_addr is
> attacker-controlled. An invalid sa_family made sctp_get_af_specific()
> return NULL and crash in sctp_transport_init() on
> af_specific->sockaddr_len. Validate it with af->addr_valid() in
> sctp_unpack_cookie(), which also rejects a mismatched family, e.g.
> an AF_INET6 peer_addr on an IPv4 socket that would later crash in
> sctp_v6_get_dst() on inet6_sk(sk)->opt. Validate a copy of peer_addr,
> since addr_valid() rewrites a v4-mapped v6 address in place and the
> cookie still lives in the received skb, which is not guaranteed to
> be unshared. Store the validated copy in the new association and
> pass it to sctp_process_init() instead of the raw cookie, so a
> v4-mapped v6 address is normalised to AF_INET before the association
> and its primary transport are built from it.
>
> [...]
Here is the summary with links:
- [v5] sctp: reject forged cookie peer_addr with unknown address family
https://git.kernel.org/netdev/net/c/9802123ceca8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179278380532.1224496.16148284450790135756.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351193-linux-kernel-netdev=dewy.ruReferences:
<20261019073747.178626-1-hdthky0@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-351193-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v5] sctp: reject forged cookie peer_addr with unknown address family Date: Fri, 23 Oct 2026 19:30:05 +0000 Organization: Usenet Network Message-ID: <179278380532.1224496.16148284450790135756.git-patchwork-notify@kernel.org> References: <20261019073747.178626-1-hdthky0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="591653"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:E98WSoMLb7bckdSTfI50rppGu6w= sha256:JaIzlT6xRfOVAOLt5T/Sd3iNTwt7GiuTGkOlEAcgsdA= sha1:vaCELSQirXlUdwPBnWs4rx0/Ug4= sha256:KuM8rVTfYD54PxyMAxIRIJtZqpOTIa9vd27dhoe4syM= 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 1CAA1111560; Fri, 23 Oct 2026 22:30:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.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 RH9p1rKDEanF; Fri, 23 Oct 2026 22:30:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351193-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 76D7A11152C; Fri, 23 Oct 2026 22:30:16 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 434133670D; Fri, 23 Oct 2026 19:30:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792783808; b=h7NUZ5oNkpHn7LCgF2g6nXuVDECx5kpfyD20KK3rWfHFHd7HbHbesopZi6NgKf5pKTaU HbFQ8aQhn8tQKPhEokjnkHctR0Uv4BbP3iW0wvbGjnTh1DFObaIKoUhGMep+AQFrO9VUw cEVRVeYsGdTA8Umhf/14p6G2iRQnb2XGXbpNBPX2fp9+GrUcOAfkYvDguc2Y8Gs7zGGRB uV28Eb1CF/eG2zqGXGYAiomAmy42WXsMi+HOsgOusCmKzr0O2kZPSy5K+zuUDZmtN8Cyz vnro9Dev6yiCJf8su1AQxgZo471gr0xGXVs7iSKvj8BYW9yAaEIpKXAG36iEzmjeHBg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792783808; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Awlx3j9nTCCze7NhMfrT6cxk8XyydYWqaAK3fkXJVy0=; b=ZMEUnOlKmJGk6HmsH+AA5T3ZP+GjACrb+UcGn9c1jQs1vJesLjZy8aSzUyPpJpItaEFz 1HgpXmOyEGltNBR2aWzjf9hoQ/owhLKUnD5jZMtm6IY5r+uPJvtTJz67gGoHtxuO90jx+ TSviYlzcL0q/zLUmPCUhjMycZoB6AdP36PWLwad/fv9wpixODqHziVtQ/34bshmePov3t 38qLr2CqyvLQW7lC9gDf2O5FDbmv0udwB03OYG/jAXjhR++BT/GQnVTdc8ARNpiXcgL1I 1km/Cvec+ZPcfISyoK3Ob0jtUjnT7Ow8CRhj9OLwxxw2F6yi24C3k3//1ewGJt/2whw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Y84eeUa/"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AB87606A322; Fri, 23 Oct 2026 19:30:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y84eeUa/ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792783807; b=HLnZ3DcKNeVXWiIrUhkf7SykjmrXmdVG6HktJFacpmgNb85f9ZNrI1FUrXX5gVo22c0P RYjb5ZOV3An8MKqwMKSl/xAbBauSPN95pwTR5wiQ635/3XJOW+4TJt0bfX1DnqKRYFwnC bEU5zurnfSmI6A3agCh2kknZPIn+Bjdf45giFTSFO9JnA3ajr03KscHh+fW7IuWPWPIgT E/jb8/2gn0KLRfEox4oxh9IYRlxmbRAKGukw6jcaLL0ap87mItwrAe7mJ8y4m7PhWqbBw ADHmK12yx7EURzyMB6rRinspABE+wDynqS2AadxPk7Rbtn3uAAedCgz1v6aX+GqLxNQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792783807; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Awlx3j9nTCCze7NhMfrT6cxk8XyydYWqaAK3fkXJVy0=; b=YIWOAv+agy/jgOupAvdB42WcshwOMAI1ogqj2OQKRzNRB5ctXw6Q2U2TgGTQ4xcK7I+a xiG4k0hic428lBhroEv6Rsr/7eZi93Vv353HVxLtyyElaW6Vd31NMOTl1AZ62WqXumGZ/ 0KjAj3iEAXW6P61MKDe14ChFag5Ab82Ap54sabMr1FlyDzslTmocUPDz5eKSXjmxfkRow Jv0DR4RwBNjHCOxEKRoHL4MNzGHGIGIyUhh5M8C4KHJV1p7RDwngihc3uOHsSrktDHglA BiKAqDFi0lHgWFALGvFUytMbl6VPRt2pnkilq1RtSFrMxalg5yaKzQxc0pYPk7hBz5w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Y84eeUa/"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F16E5606A31E; Fri, 23 Oct 2026 19:30:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BE671F01825; Fri, 23 Oct 2026 19:30:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792783806; bh=Awlx3j9nTCCze7NhMfrT6cxk8XyydYWqaAK3fkXJVy0=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Y84eeUa/wCzRDtNKakgHk2A3pAdJ2vinXjYLtmACtztqwrXQjh9q6FIqkHwnXhVQ0 F+3PvLqwD99+TyPaTbOssKgNUDsKiLK1hiPlZn6jsehg3vY183V2vmqqBtXNYwrZi6 uQTI6Mi/AclOsz0L823Vh4bjg8DjUMv7V+/OY5ARGI1JyKGpYiwB4mIAPzc4KhGiO5 G2jaCrbTgjqGYkDVEuTuyfLhcCmUERO/R46sg9a3DzZHYBrkQVBPu/SzfAUtk9WD/5 PC0FnPU3AKyO07B7h5yEoeTdmzWh9moFvYeelo36sdohyEuV5U1gprzOiL9DNUu/Bg dOL4nWDl7GS+A== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 81706391B14F; Fri, 23 Oct 2026 19:30:06 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261019073747.178626-1-hdthky0@gmail.com> X-Cc: marcelo.leitner@gmail.com, lucien.xin@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-sctp@vger.kernel.org, netdev@vger.kernel.org