CVE-2026-23125
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
14/02/2026
Last modified:
14/02/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
sctp: move SCTP_CMD_ASSOC_SHKEY right after SCTP_CMD_PEER_INIT<br />
<br />
A null-ptr-deref was reported in the SCTP transmit path when SCTP-AUTH key<br />
initialization fails:<br />
<br />
==================================================================<br />
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]<br />
CPU: 0 PID: 16 Comm: ksoftirqd/0 Tainted: G W 6.6.0 #2<br />
RIP: 0010:sctp_packet_bundle_auth net/sctp/output.c:264 [inline]<br />
RIP: 0010:sctp_packet_append_chunk+0xb36/0x1260 net/sctp/output.c:401<br />
Call Trace:<br />
<br />
sctp_packet_transmit_chunk+0x31/0x250 net/sctp/output.c:189<br />
sctp_outq_flush_data+0xa29/0x26d0 net/sctp/outqueue.c:1111<br />
sctp_outq_flush+0xc80/0x1240 net/sctp/outqueue.c:1217<br />
sctp_cmd_interpreter.isra.0+0x19a5/0x62c0 net/sctp/sm_sideeffect.c:1787<br />
sctp_side_effects net/sctp/sm_sideeffect.c:1198 [inline]<br />
sctp_do_sm+0x1a3/0x670 net/sctp/sm_sideeffect.c:1169<br />
sctp_assoc_bh_rcv+0x33e/0x640 net/sctp/associola.c:1052<br />
sctp_inq_push+0x1dd/0x280 net/sctp/inqueue.c:88<br />
sctp_rcv+0x11ae/0x3100 net/sctp/input.c:243<br />
sctp6_rcv+0x3d/0x60 net/sctp/ipv6.c:1127<br />
<br />
The issue is triggered when sctp_auth_asoc_init_active_key() fails in<br />
sctp_sf_do_5_1C_ack() while processing an INIT_ACK. In this case, the<br />
command sequence is currently:<br />
<br />
- SCTP_CMD_PEER_INIT<br />
- SCTP_CMD_TIMER_STOP (T1_INIT)<br />
- SCTP_CMD_TIMER_START (T1_COOKIE)<br />
- SCTP_CMD_NEW_STATE (COOKIE_ECHOED)<br />
- SCTP_CMD_ASSOC_SHKEY<br />
- SCTP_CMD_GEN_COOKIE_ECHO<br />
<br />
If SCTP_CMD_ASSOC_SHKEY fails, asoc->shkey remains NULL, while<br />
asoc->peer.auth_capable and asoc->peer.peer_chunks have already been set by<br />
SCTP_CMD_PEER_INIT. This allows a DATA chunk with auth = 1 and shkey = NULL<br />
to be queued by sctp_datamsg_from_user().<br />
<br />
Since command interpretation stops on failure, no COOKIE_ECHO should been<br />
sent via SCTP_CMD_GEN_COOKIE_ECHO. However, the T1_COOKIE timer has already<br />
been started, and it may enqueue a COOKIE_ECHO into the outqueue later. As<br />
a result, the DATA chunk can be transmitted together with the COOKIE_ECHO<br />
in sctp_outq_flush_data(), leading to the observed issue.<br />
<br />
Similar to the other places where it calls sctp_auth_asoc_init_active_key()<br />
right after sctp_process_init(), this patch moves the SCTP_CMD_ASSOC_SHKEY<br />
immediately after SCTP_CMD_PEER_INIT, before stopping T1_INIT and starting<br />
T1_COOKIE. This ensures that if shared key generation fails, authenticated<br />
DATA cannot be sent. It also allows the T1_INIT timer to retransmit INIT,<br />
giving the client another chance to process INIT_ACK and retry key setup.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/0c4adb1f391a7b92a0405e9d7c05624c0d9f8a65
- https://git.kernel.org/stable/c/5a309bedf02ee08b0653215f06c94d61ec7a214a
- https://git.kernel.org/stable/c/784428ab1889eb185a1459e9d6bc52df33d572ef
- https://git.kernel.org/stable/c/a80c9d945aef55b23b54838334345f20251dad83
- https://git.kernel.org/stable/c/bf2b543b3cc4ebb4ab5bca4f8dfa5612035d45b8
- https://git.kernel.org/stable/c/e7e81abbcc5620c9532080538f9709a6ea382855
- https://git.kernel.org/stable/c/e94294798548e8cfbd80869e1d2f97efce92582c



