From: Wei Yongjun Date: Fri, 26 Dec 2008 00:58:11 +0000 (-0800) Subject: sctp: Avoid memory overflow while FWD-TSN chunk is received with bad stream ID X-Git-Tag: v2.6.29-rc1~581^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fcb95a105758b81ef0131cd18e2db5149f13e95;p=pandora-kernel.git sctp: Avoid memory overflow while FWD-TSN chunk is received with bad stream ID If FWD-TSN chunk is received with bad stream ID, the sctp will not do the validity check, this may cause memory overflow when overwrite the TSN of the stream ID. The FORWARD-TSN chunk is like this: FORWARD-TSN chunk Type = 192 Flags = 0 Length = 172 NewTSN = 99 Stream = 10000 StreamSequence = 0xFFFF This patch fix this problem by discard the chunk if stream ID is not less than MIS. Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed