Thread (6 messages) 6 messages, 2 authors, 1d ago
WARM1d
Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH net v2 0/2] sctp: validate INIT in COOKIE-ECHO when auth disabled

From: Xin Long <lucien.xin@gmail.com>
Date: 2026-06-20 15:10:56
Also in: linux-sctp

This series fixes a security gap in SCTP's COOKIE-ECHO handling when
cookie authentication is disabled.

Currently, INIT chunks embedded in cookies are not re-verified after
unpacking, creating a vulnerability when cookie_auth_enable=0. This
series first refactors error handling, then adds the missing validation.

Changes in v2: see individual patch changelogs for details.

Xin Long (2):
  sctp: factor out INIT verification failure handling
  sctp: add INIT verification after cookie unpacking

 net/sctp/sm_make_chunk.c |   3 +-
 net/sctp/sm_statefuns.c  | 220 ++++++++++++++++++++-------------------
 2 files changed, 117 insertions(+), 106 deletions(-)

-- 
2.47.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help