Re: [BUG] sctp: auth: NULL asoc->shkey after a failed SCTP_CMD_ASSOC_SHKEY makes close() oops
From: Kyuwon Cho
Date: Mon Nov 23 2026 - 03:10:50 EST
On Mon, 23 Nov 2026 03:26:43 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> [Severity: High]
> Is this check enough to cover the keyless state?
No. As Xin suggested, v2 and v3 replace this approach: when processing
the INIT-ACK or setting up the association key fails,
sctp_sf_do_5_1C_ack() now fails the association with
SCTP_CMD_INIT_FAILED, so no keyless AUTH-capable association is left:
https://lore.kernel.org/netdev/179539544818.3016044.13738712075053349592@xxxxxxxxx/
The I-DATA key selection in sctp_datamsg_from_user() is a separate
issue; we will look at it.
Kyuwon Cho
pw-bot: cr