Skip to content

sctp: validate INIT in COOKIE-ECHO when auth disabled

Xin Long linux-sctp netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sctp: factor out INIT verification failure handlingnet/sctp/sm_statefuns.c+85 -1020 replies
2/2sctp: add INIT verification after cookie unpackingnet/sctp/sm_make_chunk.c net/sctp/sm_statefuns.c+32 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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(-)
Signature · 1 line
2.47.1