[PATCH 6.17 775/849] sctp: Prevent TOCTOU out-of-bounds write