Skip to content

DTLS bugfix: check CID is newest before promoting new peer address#10626

Open
mattia-moffa wants to merge 1 commit into
wolfSSL:masterfrom
mattia-moffa:20260605-dtls-cid-check-newest
Open

DTLS bugfix: check CID is newest before promoting new peer address#10626
mattia-moffa wants to merge 1 commit into
wolfSSL:masterfrom
mattia-moffa:20260605-dtls-cid-check-newest

Conversation

@mattia-moffa
Copy link
Copy Markdown
Member

@mattia-moffa mattia-moffa commented Jun 5, 2026

Description

Previously, when DTLS CID was enabled and an app used wolfSSL_dtls_set_pending_peer(), dtlsProcessPendingPeer() promoted the pending peer without checking that the record is newer than the newest already received. RFC 9146 § 6 requires to check this (second condition in the list). Without the check, a reordered or replayed CID record could cause an erroneous migration of the active peer.

Fixes #10609

Testing

./configure --enable-all && make && make check

Checklist

  • added tests

@mattia-moffa mattia-moffa self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 18:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

[Bug]: CID peer address update lacks a strict newer sequence-number gate

2 participants