Skip to content

Add bounds check on read in sniffer#9901

Merged
douzzer merged 2 commits intowolfSSL:masterfrom
julek-wolfssl:fenrir/294
Mar 7, 2026
Merged

Add bounds check on read in sniffer#9901
douzzer merged 2 commits intowolfSSL:masterfrom
julek-wolfssl:fenrir/294

Conversation

@julek-wolfssl
Copy link
Member

@julek-wolfssl julek-wolfssl commented Mar 6, 2026

F-294

Copilot AI review requested due to automatic review settings March 6, 2026 08:06
Copy link
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.

Pull request overview

Adds stricter bounds validation while parsing ClientHello PSK-related fields to prevent out-of-bounds reads in the sniffer.

Changes:

  • Add length checks before reading the 32-bit “ticket age” field.
  • Add length checks before reading the 16-bit “binders length” field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 6, 2026
@douzzer douzzer merged commit 1744819 into wolfSSL:master Mar 7, 2026
440 of 451 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.0 Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants