From: lucien Date: Thu, 27 Aug 2015 08:26:34 +0000 (+0800) Subject: sctp: asconf's process should verify address parameter is in the beginning X-Git-Tag: omap-for-v4.3/fixes-merge-window~53^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce7b4ccc4f62775f4167495a06fbee0025f87175;p=pandora-kernel.git sctp: asconf's process should verify address parameter is in the beginning in sctp_process_asconf(), we get address parameter from the beginning of the addip params. but we never check if it's really there. if the addr param is not there, it still can pass sctp_verify_asconf(), then to be handled by sctp_process_asconf(), it will not be safe. so add a code in sctp_verify_asconf() to check the address parameter is in the beginning, or return false to send abort. note that this can also detect multiple address parameters, and reject it. Signed-off-by: Xin Long Signed-off-by: Marcelo Ricardo Leitner Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed