Skip to content

20260416-SNI-WOLFSSL_HOST_NAME_MAX#10237

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
douzzer:20260416-SNI-WOLFSSL_HOST_NAME_MAX
Apr 16, 2026
Merged

20260416-SNI-WOLFSSL_HOST_NAME_MAX#10237
dgarske merged 1 commit intowolfSSL:masterfrom
douzzer:20260416-SNI-WOLFSSL_HOST_NAME_MAX

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Apr 16, 2026

src/tls.c, wolfssl/ssl.h, tests/api.c: followup to ff7a32d (#10182):

  • Fix OOB heap reads via TLSX_ExtractEch() by preemptively rejecting oversized SNI names in TLSX_UseSNI().

  • In TLSX_EchChangeSNI(), don't attempt to truncate if an oversized name is seen, just return error.

  • Move definition of WOLFSSL_HOST_NAME_MAX to an ungated context in ssl.h, and use it consistently in tls.c, eliminating the duplicative WOLFSSL_HOST_NAME_MAX.

tested with

wolfssl-multi-test.sh ...
super-quick-check
liboqs-all-valgrind-unittest

…0182):

* Fix OOB heap reads via TLSX_ExtractEch() by preemptively rejecting oversized
  SNI names in TLSX_UseSNI().

* In TLSX_EchChangeSNI(), don't attempt to truncate if an oversized name is
  seen, just return error.

* Move definition of WOLFSSL_HOST_NAME_MAX to an ungated context in ssl.h, and
  use it consistently in tls.c, eliminating the duplicative
  WOLFSSL_HOST_NAME_MAX.
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #10237

Scan targets checked: wolfssl-bugs, wolfssl-compliance, wolfssl-consttime, wolfssl-defaults, wolfssl-mutation, wolfssl-proptest, wolfssl-src, wolfssl-zeroize

Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/tls.c
Comment thread src/tls.c
@github-actions
Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@dgarske dgarske merged commit 7486183 into wolfSSL:master Apr 16, 2026
440 of 441 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.

4 participants