Skip to content

Fenrir Fix: Custom identification strings can omit the required CRLF terminator - #1218

Merged
ejohnstown merged 1 commit into
masterfrom
fenrir-10571
Sep 2, 2026
Merged

Fenrir Fix: Custom identification strings can omit the required CRLF terminator#1218
ejohnstown merged 1 commit into
masterfrom
fenrir-10571

Conversation

@aidankeefe2022

@aidankeefe2022 aidankeefe2022 commented Aug 31, 2026

Copy link
Copy Markdown
Member

Custom identification strings are unchecked until deep in the system: better error checking

Fenrir finding: https://fenrir.wolfssl.com/finding/10571

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #1218

Scan targets checked: wolfssh-bugs, wolfssh-src

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

@ejohnstown ejohnstown left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is close. I'm sending a review to you.

wolfSSH_CTX_SetSshProtoIdStr() now rejects a string that is not
CRLF-terminated, exceeds 255 bytes counting the terminator, or
carries a CR or LF in the body. DoKexInit() subtracts the two
terminator bytes from the length when hashing it, so an
unterminated string underflowed the hash length.

Issue: F-10571
@ejohnstown
ejohnstown merged commit 557f3df into master Sep 2, 2026
172 of 173 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