summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2026-11-12 10:01:42 -0500
committerJakub Kicinski <kuba@kernel.org>2026-11-16 16:16:56 -0800
commit533ec433efdc11196f438da90d683053a57257ff (patch)
tree194f3816308e02b5792b94a3bf40d655236d6c8f /tools/perf/scripts/python/bin
parent1932779607d2fc895464c676a2a420aa07403976 (diff)
sctp: validate SACK pull length against chunk length, not skb length
sctp_sm_pull_sack() derives its pull length from the num_gap_ack_blocks and num_dup_tsns fields in the SACK body, but validates it against chunk->skb->len (the remaining packet data) rather than the SACK chunk's declared length. A malformed SACK with an inflated num_dup_tsns can pass this check when subsequent chunks pad the skb, advancing skb->data past the SACK boundary into later chunks. This misaligns the skb cursor for subsequent chunk processing. When an AUTH chunk follows, sctp_sf_authenticate() reads and compares the HMAC digest from the wrong skb offset while sctp_auth_calculate_hmac() writes the computed HMAC through the correct chunk_hdr pointer, bypassing the authentication check. Fix by validating the computed pull length against the chunk's declared body length instead of the total remaining skb data. Fixes: 730fc3d05cd4 ("[SCTP]: Implete SCTP-AUTH parameter processing") Reported-by: on Sim <tlatkdgus1@gmail.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Link: https://patch.msgid.link/3fbf59d17a91c46098e3d4115e06987918b68c45.1794495702.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions