Skip to content

dtls13: reject malformed ClientHello extensions#133

Merged
algesten merged 2 commits into
algesten:mainfrom
zRedShift:fix/dtls13-clienthello-extension-tail
May 27, 2026
Merged

dtls13: reject malformed ClientHello extensions#133
algesten merged 2 commits into
algesten:mainfrom
zRedShift:fix/dtls13-clienthello-extension-tail

Conversation

@zRedShift
Copy link
Copy Markdown
Contributor

Summary

  • Reject DTLS 1.3 ClientHello extension vectors that do not consume the remaining ClientHello body.
  • Preserve ClientHellos with no extension vector.
  • Add regressions for zero-length and underdeclared extension vectors with trailing bytes.

Validation

  • cargo fmt --check
  • git diff --check
  • cargo test --all-targets --features rcgen
  • cargo clippy --all-targets --features rcgen -- -D warnings
  • cargo test --no-default-features --features rust-crypto
  • cargo clippy --no-default-features --features rust-crypto -- -D warnings
  • cargo test --doc --features rcgen

@algesten algesten merged commit ff2dc1c into algesten:main May 27, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants