Skip to content

sctp: add some size validations

Marcelo Ricardo Leitner linux-sctp netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4sctp: validate from_addr_param returninclude/net/sctp/structs.h net/sctp/bind_addr.c net/sctp/input.c +3 more+44 -262 repliesApplied
2/4sctp: add size validation when walking chunksnet/sctp/input.c+1 -10 repliesApplied
3/4sctp: validate chunk size in __rcv_asconf_lookupnet/sctp/input.c+3 -00 repliesApplied
4/4sctp: add param size validation for SCTP_PARAM_SET_PRIMARYnet/sctp/sm_make_chunk.c+10 -30 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net 0/4] sctp: add some size validations

Ilja Van Sprundel reported that some size validations on inbound SCTP packets were missing. After some code review, I noticed two others that are all fixed here.

Thanks Ilja for reporting this.

Marcelo Ricardo Leitner (4):
sctp: validate from_addr_param return
sctp: add size validation when walking chunks
sctp: validate chunk size in __rcv_asconf_lookup
sctp: add param size validation for SCTP_PARAM_SET_PRIMARY

 include/net/sctp/structs.h |  2 +-
 net/sctp/bind_addr.c       | 19 +++++++++--------
 net/sctp/input.c           | 11 +++++++---
 net/sctp/ipv6.c            |  7 ++++++-
 net/sctp/protocol.c        |  7 ++++++-
 net/sctp/sm_make_chunk.c   | 42 +++++++++++++++++++++++---------------
 6 files changed, 58 insertions(+), 30 deletions(-)
Signature · 1 line
2.31.1