Netdev List
 help / color / mirror / Atom feed
* [PATCH 5.15.y 0/3] sctp: validate the cached INIT in COOKIE_ECHO
@ 2026-11-27  3:45 Dickson Wu via B4 Relay
  2026-11-27  3:45 ` [PATCH 5.15.y 1/3] sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing Dickson Wu via B4 Relay
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dickson Wu via B4 Relay @ 2026-11-27  3:45 UTC (permalink / raw)
  To: stable; +Cc: Xin Long, Marcelo Ricardo Leitner, linux-sctp, netdev

6.1.y and newer already have these three fixes. 5.15.y keeps the
cached INIT in peer_init[] and tests sctp_sk()->hmac instead of
cookie_auth_enable. In the duplicate cookie path the security hook
still runs before the switch, so the A/B INIT check sits just ahead of
it and the tie-tag compare moves up a few lines.

Tested on v5.15.226:
- x86_64 allmodconfig W=1 builds of net/sctp/bind_addr.o,
  net/sctp/sm_make_chunk.o and net/sctp/sm_statefuns.o, base vs
  patched, no new warnings
- pahole on the base object to check the cookie layout
- booted the patched kernel under QEMU/KVM with SCTP built in. I
  didn't run a malformed COOKIE_ECHO test.

The backports and the test runs were prepared with AI coding tools
(OpenAI Codex agents, with review by Claude). I went over the result
before signing off.

---
Xin Long (3):
      sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing
      sctp: validate embedded INIT chunk and address list lengths in cookie
      sctp: add INIT verification after cookie unpacking

 net/sctp/bind_addr.c     | 11 ++++++++++-
 net/sctp/sm_make_chunk.c | 17 +++++++++++++++--
 net/sctp/sm_statefuns.c  | 46 +++++++++++++++++++++++++++++++++++++---------
 3 files changed, 62 insertions(+), 12 deletions(-)
---
base-commit: 4f2df9a01754521fbba3493e8ad91ef65515e68c
change-id: 20261127-so4-sctp-515-d31cc8e35fd3

Best regards,
--  
Dickson Wu <dickson.wu@certik.com>



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

end of thread, other threads:[~2026-11-29 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  3:45 [PATCH 5.15.y 0/3] sctp: validate the cached INIT in COOKIE_ECHO Dickson Wu via B4 Relay
2026-11-27  3:45 ` [PATCH 5.15.y 1/3] sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing Dickson Wu via B4 Relay
2026-11-27  3:45 ` [PATCH 5.15.y 2/3] sctp: validate embedded INIT chunk and address list lengths in cookie Dickson Wu via B4 Relay
2026-11-27  3:45 ` [PATCH 5.15.y 3/3] sctp: add INIT verification after cookie unpacking Dickson Wu via B4 Relay
2026-11-29 18:59 ` [PATCH 5.15.y 0/3] sctp: validate the cached INIT in COOKIE_ECHO Sasha Levin

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