Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] sctp: validate INIT in COOKIE-ECHO when auth disabled
@ 2026-06-16  0:33 Xin Long
  2026-06-16  0:33 ` [PATCH net 1/2] sctp: factor out INIT verification failure handling Xin Long
  2026-06-16  0:33 ` [PATCH net 2/2] sctp: add INIT verification after cookie unpacking Xin Long
  0 siblings, 2 replies; 3+ messages in thread
From: Xin Long @ 2026-06-16  0:33 UTC (permalink / raw)
  To: network dev, linux-sctp
  Cc: davem, kuba, Eric Dumazet, Paolo Abeni, Simon Horman,
	Marcelo Ricardo Leitner

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.

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

 net/sctp/sm_make_chunk.c |   2 +-
 net/sctp/sm_statefuns.c  | 200 +++++++++++++++++++--------------------
 2 files changed, 99 insertions(+), 103 deletions(-)

-- 
2.47.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-16  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-16  0:33 [PATCH net 0/2] sctp: validate INIT in COOKIE-ECHO when auth disabled Xin Long
2026-06-16  0:33 ` [PATCH net 1/2] sctp: factor out INIT verification failure handling Xin Long
2026-06-16  0:33 ` [PATCH net 2/2] sctp: add INIT verification after cookie unpacking Xin Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox