Skip to content

Fix issues found during src/ code review#9779

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
LinuxJedi:src-fixes
Feb 16, 2026
Merged

Fix issues found during src/ code review#9779
dgarske merged 1 commit intowolfSSL:masterfrom
LinuxJedi:src-fixes

Conversation

@LinuxJedi
Copy link
Member

  • ECH: add bounds check on hpkePubkeyLen against HPKE_Npk_MAX to prevent heap buffer overflow from untrusted ECH config data

  • Sniffer: fix reassembly memory limit check typo, MaxRecoveryMemory -1 should be MaxRecoveryMemory != -1

  • Sniffer: add bounds check in IPv6 extension header parsing loop to prevent OOB read when next_header never matches TCP or NO_NEXT_HEADER

  • Sniffer: validate tlsFragOffset + rhSize against tlsFragSize before XMEMCPY in both TLS handshake fragment reassembly paths

  • Internal: use WC_SAFE_SUM_WORD32 in GrowAnOutputBuffer to prevent integer overflow on allocation size, matching existing pattern in GrowOutputBuffer

- ECH: add bounds check on hpkePubkeyLen against HPKE_Npk_MAX to
  prevent heap buffer overflow from untrusted ECH config data

- Sniffer: fix reassembly memory limit check typo, MaxRecoveryMemory -1
  should be MaxRecoveryMemory != -1

- Sniffer: add bounds check in IPv6 extension header parsing loop to
  prevent OOB read when next_header never matches TCP or NO_NEXT_HEADER

- Sniffer: validate tlsFragOffset + rhSize against tlsFragSize before
  XMEMCPY in both TLS handshake fragment reassembly paths

- Internal: use WC_SAFE_SUM_WORD32 in GrowAnOutputBuffer to prevent
  integer overflow on allocation size, matching existing pattern in
  GrowOutputBuffer
@LinuxJedi LinuxJedi marked this pull request as draft February 16, 2026 17:45
@LinuxJedi LinuxJedi marked this pull request as ready for review February 16, 2026 18:09
@dgarske dgarske merged commit 1b05b26 into wolfSSL:master Feb 16, 2026
431 of 433 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.

3 participants