Re: [PATCH v2] sctp: fix auth_chunk_list capacity check in sctp_auth_ep_add_chunkid
From: patchwork-bot+netdevbpf
Date: Tue Jul 21 2026 - 15:51:27 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 13 Jul 2026 03:20:21 +0000 you wrote:
> From: HanQuan <eilaimemedsnaimel@xxxxxxxxx>
>
> sctp_auth_ep_add_chunkid() uses SCTP_NUM_CHUNK_TYPES (20) as the
> capacity limit for ep->auth_chunk_list, allowing it to hold up to
> 20 chunk entries (param_hdr.length up to 24). However, the copy
> destination asoc->c.auth_chunks in struct sctp_cookie is only
> SCTP_AUTH_MAX_CHUNKS (16) entries (20 bytes). When more than 16
> chunks are added, sctp_association_init() memcpy overflows the
> destination by up to 4 bytes.
>
> [...]
Here is the summary with links:
- [v2] sctp: fix auth_chunk_list capacity check in sctp_auth_ep_add_chunkid
https://git.kernel.org/netdev/net/c/ff04b26794a1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html