Article View: linux.kernel.netdev
Article #24221Re: [PATCH net] sctp: pick the AUTH key by the data chunk type that is sent
From: patchwork-bot+netdevbpf
Date: Sun, 29 Nov 2026 18:00
Date: Sun, 29 Nov 2026 18:00
35 lines
9272 bytes
9272 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Mon, 23 Nov 2026 17:26:25 +0900 you wrote:
> sctp_datamsg_from_user() takes the chunk key only when the peer asked
> to authenticate DATA, but with stream interleaving the message is sent
> as I-DATA chunks, and _sctp_make_chunk() marks those for AUTH when the
> peer asked for I-DATA. If the peer lists I-DATA but not DATA, the chunk
> has auth set and no key, and bundling the AUTH chunk dereferences it:
>
> KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
> RIP: 0010:sctp_packet_append_chunk (net/sctp/output.c:264)
> Call Trace:
> <TASK>
> sctp_packet_transmit_chunk (net/sctp/output.c:189)
> sctp_outq_flush (net/sctp/outqueue.c:1112 net/sctp/outqueue.c:1218)
> sctp_do_sm (net/sctp/sm_sideeffect.c:1826)
> sctp_primitive_SEND (net/sctp/primitive.c:163)
> sctp_sendmsg_to_asoc (net/sctp/socket.c:1919)
> sctp_sendmsg (net/sctp/socket.c:2086)
> __sys_sendto (net/socket.c:2283)
>
> [...]
Here is the summary with links:
- [net] sctp: pick the AUTH key by the data chunk type that is sent
https://git.kernel.org/netdev/net/c/1ca5a3b4c235
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179597520974.2381430.13806987858913555907.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373649-linux-kernel-netdev=dewy.ruReferences:
<179542222978.3276016.1235014191109840927@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373649-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] sctp: pick the AUTH key by the data chunk type that is sent Date: Sun, 29 Nov 2026 18:00:09 +0000 Organization: Usenet Network Message-ID: <179597520974.2381430.13806987858913555907.git-patchwork-notify@kernel.org> References: <179542222978.3276016.1235014191109840927@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1230821"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CTGpmg3fwxU/A4SnYaIZcsY1BMo= sha256:8DY+aNqBhNtMqkzvnZSSeiTpygWLZFblgnMEJ+p7qAA= sha1:Am9KyHuVfuFEj6HrGgZyBa/Q8wQ= sha256:BIQZrMzd5PX47QwdoYnlRRhzeY8Y3/c8KrScy8aualo= 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 8DBF4125FAC; Sun, 29 Nov 2026 21:00:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 MrNHOtZlSLda; Sun, 29 Nov 2026 21:00:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-373649-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 05BB8125FA9; Sun, 29 Nov 2026 21:00:17 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D6D1821489; Sun, 29 Nov 2026 18:00:14 +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=1795975212; b=rCZGet+icWqsN5yabeMQtirwDXTw0MVyTSanAp2XMOycT1OJE0W1EdF5RlzLkTi+HNGz phr78eiBpG6EnncrClYeIRWiRXD+EuCXtAZ4dQVokyPKCNbUgjoO4H4BUWbDVKh2Xhy3c CAj0D2j9jouTvCqOCt8cLUBxdRX6dUMIlmIqm3vlX+hv9og4dsA6/1kfE5V5LbAfiIZ5/ OqAJYlnsDM6/+m75AiaAK3GNiiTMbsRD1Xe24EMgr2uFhdh0U8PAgnWlSYPBySYDUoRHG c68TOG87sQN+2JO9eqRXL1LlgkmHKRWYS5CLlvhBwqlr0ScSzJfLKEN5OiT+AgpCb5A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975212; 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=F+0p4FqQCB0v/Vozy9Op+clWnKrWvC17Pk4j//vrrkk=; b=g76XNo53vWFsCcYv917HmeNt8epz5ilRTU4CRqT6xjUm3Z7zkFYJ7sz9f1eciCBq3KTM oi9LVqOQ5nBsuPRhbuKISUdlI3CSfKfJ1whCnF3IK7rVbEDy+bQupXYbFb2w0nU7yV3jL lrQTYHzd0KSe51giuBoyKGMZ3DpUoP5f4pJPoSOKY+EDHQ1bLqMf3TWLdeUBHAyxurGmH Jikr+XgHRC/CbEXuRtA/LkZbjzTtCvYN2gQJhoddqBpdG9+ULh2rc/gxWkjhMDiJ9xinb 35V2XwzmOx2CvcoI394hBGUke/7kBZnz9NNCzozS6NOZqNtkrovCzsxUAail0+4G1jQ== 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=PPaohZYj; 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 7F2EA606A68F; Sun, 29 Nov 2026 18:00:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PPaohZYj 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=1795975211; b=vqNa3hMkRPgoGuAwo2rNC6d6mtqS/ScfAX8GbrBWec11/NEBIiFn94ewlPQPGB7/WORy x+24BQv/CGyIOmRDeGb7XhRaSgGZkn8xg3GIGEqp0twjt5XDFVo4QN478n4zNTPfgAM1D W0H85Zz6htJstY6xzevvRs3DSJxQpwk/4rlQEq7NAd+SJOFyfnEdnqDrtPCy1Sf1EpMFp eRQ27Quq9om3R8/NFtZIxJSfEEjt18NO78QMOL7lj6s8MFSTxdDVIYJfTBlInW5U8A5Sh ThDjei0fqeZ5mGTH7zcS8eilFtdwnIYIL4W16qD3dnX5RKmP0Ro3dLHCcjOSfYkYbdw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975211; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=F+0p4FqQCB0v/Vozy9Op+clWnKrWvC17Pk4j//vrrkk=; b=2Xw/9jxrclOJcAdoxUp7966aUDsNy+hxQoEcRtg8RumjVTE/LqTx8wxBUJgnzIsNDOzN tVyfCsI/UBbx/Cfd7FJ09+YvUG7puKjPfHRrQU+u0KnU84p1DHiYFKsrmykRfwY2UF+Hp VsBQDHBJGEECVoKtR+z+UWdKMsGdOS+P3uosIuRbrHKeOzqSc2qj2gUffqeQoF01/UMTg otlq7p9DgWvQZBHuNEoHmldrsqEDpVOk8mAkCj2ZF7LzkbXwgcGVoBAEAti6CkBfZGXvM s+xM7eTqs1t0lomDfPDTwp/GbooGGjv86bOd7N5+Du6DnBUiXZ/c9tO6fL5HeQqi7Dw== 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=PPaohZYj; 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 9D743606A68D; Sun, 29 Nov 2026 18:00:11 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46AF81F00897; Sun, 29 Nov 2026 18:00:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795975211; bh=F+0p4FqQCB0v/Vozy9Op+clWnKrWvC17Pk4j//vrrkk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=PPaohZYjzKtKgBTx0vgGe3yJXAvi7591DHwfv/NrAgRMudbkCGcgWXavrcaDxS8sf yIueoJrg1E5LdN9HI6xqpBC8fLS3imvMMpZWu9VqBS54e7IIndlUJePsqJm6st4Qq+ Aq16tkyB83Fe9hzok0PQMeUTL6lkvjB0l9q9wyq7iL4q9TYhB9VnCuaMjGfphp4i/i JnvkSx5XGemD40+SK0hdVjaA3VIl+uSfTu5K81fyN1cBsWFKgnp9xC42CccHFbcsii S7VRPSKbx87o0DjdopP3AUr7rr+3TmJhYUNUJQWH48FeG5NgzRS5GJ0YMWk8rZ0Td8 iEx/DyFCMCp1w== 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 34963392E9E2; Sun, 29 Nov 2026 18:00:11 +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: <179542222978.3276016.1235014191109840927@gmail.com> X-Cc: lucien.xin@gmail.com, marcelo.leitner@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, nhorman@tuxdriver.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org