Re: [PATCH net] sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing
[email protected] Thu, 04 Jun 2026 15:40:12 +0000
| Newsgroups | org.kernel.vger.linux-sctp,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178058761264.2484354.11440643164708781484.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: On Mon, 1 Jun 2026 21:06:06 -0400 you wrote: > When a listening SCTP server processes a COOKIE_ECHO chunk, the cached > peer INIT chunk embedded after the cookie is parsed and its parameters > are later walked by sctp_process_init() using sctp_walk_params(). > > However, the chunk header length of this cached INIT chunk was not > validated against the remaining buffer in the COOKIE_ECHO payload. If > the length field is inflated, the parameter walk can run beyond the > actual received data, leading to out-of-bounds reads and potential > memory corruption during later parameter handling (e.g. STATE_COOKIE > processing and kmemdup() copies). > > [...] Here is the summary with links: - [net] sctp: validate cached peer INIT chunk length in COOKIE_ECHO processing https://git.kernel.org/netdev/net/c/0861615c28de You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html