summaryrefslogtreecommitdiff
path: root/arch/arm64/configs
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2021-06-28 16:13:42 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-20 16:16:03 +0200
commitdd16e38e1531258d332b0fc7c247367f60c6c381 (patch)
treebcbcd2b2bb59ad5145309a890781dd9b2b7c31b2 /arch/arm64/configs
parentc7a03ebace4f9cd40d9cd9dd5fb2af558025583c (diff)
downloadlinux-stable-dd16e38e1531258d332b0fc7c247367f60c6c381.tar.gz
sctp: add size validation when walking chunks
[ Upstream commit 50619dbf8db77e98d821d615af4f634d08e22698 ] The first chunk in a packet is ensured to be present at the beginning of sctp_rcv(), as a packet needs to have at least 1 chunk. But the second one, may not be completely available and ch->length can be over uninitialized memory. Fix here is by only trying to walk on the next chunk if there is enough to hold at least the header, and then proceed with the ch->length validation that is already there. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64/configs')
0 files changed, 0 insertions, 0 deletions