[PATCH 6.12 524/565] sctp: Prevent TOCTOU out-of-bounds write