mbox series

[net,0/4] sctp: add some size validations

Message ID cover.1624904195.git.marcelo.leitner@gmail.com (mailing list archive)
Headers show
Series sctp: add some size validations | expand

Message

Marcelo Ricardo Leitner June 28, 2021, 7:13 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org June 28, 2021, 10:40 p.m. UTC | #1
Hello:

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

On Mon, 28 Jun 2021 16:13:40 -0300 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net,1/4] sctp: validate from_addr_param return
    https://git.kernel.org/netdev/net/c/0c5dc070ff3d
  - [net,2/4] sctp: add size validation when walking chunks
    https://git.kernel.org/netdev/net/c/50619dbf8db7
  - [net,3/4] sctp: validate chunk size in __rcv_asconf_lookup
    https://git.kernel.org/netdev/net/c/b6ffe7671b24
  - [net,4/4] sctp: add param size validation for SCTP_PARAM_SET_PRIMARY
    https://git.kernel.org/netdev/net/c/ef6c8d6ccf0c

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html