Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn <will…@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!