Please sign in to comment.
sctp: validate chunk len before actually using it
Andrey Konovalov reported that KASAN detected that SCTP was using a slab beyond the boundaries. It was caused because when handling out of the blue packets in function sctp_sf_ootb() it was checking the chunk len only after already processing the first chunk, validating only for the 2nd and subsequent ones. The fix is to just move the check upwards so it's also validated for the 1st chunk. Reported-by: Andrey Konovalov <email@example.com> Tested-by: Andrey Konovalov <firstname.lastname@example.org> Signed-off-by: Marcelo Ricardo Leitner <email@example.com> Reviewed-by: Xin Long <firstname.lastname@example.org> Acked-by: Neil Horman <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
- Loading branch information...