Skip to content

wolfHSM Hardening Fixes#425

Open
aidangarske wants to merge 13 commits into
wolfSSL:mainfrom
aidangarske:fenrir-high-zeroize-bounds
Open

wolfHSM Hardening Fixes#425
aidangarske wants to merge 13 commits into
wolfSSL:mainfrom
aidangarske:fenrir-high-zeroize-bounds

Conversation

@aidangarske

Copy link
Copy Markdown
Member
F-4235, F-4329, F-4978, F-5139, F-5141, F-5142, F-5473, F-5474, F-5475, F-6029,
F-6030, F-6031, F-6207

@aidangarske aidangarske self-assigned this Jun 25, 2026
@aidangarske
aidangarske marked this pull request as ready for review June 25, 2026 22:21
@aidangarske
aidangarske force-pushed the fenrir-high-zeroize-bounds branch from efe02ca to d35e929 Compare June 29, 2026 16:45
@aidangarske
aidangarske requested a review from bigbrett June 29, 2026 16:47

@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 #425

Scan targets checked: wolfhsm-core-bugs, wolfhsm-crypto-bugs, wolfhsm-src

No new issues found in the changed files. ✅

@aidangarske
aidangarske requested review from wolfSSL-Bot and removed request for bigbrett July 15, 2026 21:10

@bigbrett bigbrett 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.

I'm medium on these force zero changes. In all of our currently supported transports, the transport buffer itself has to be trusted or the whole threat model falls apart, and the client's local comm buffers even more so. Zeroizing these here in light of these assumptions is overkill IMO and would be a bit of a performance hit. I think we need to have a uniform policy about when we require force zeroing of shared memory and apply it across the entire code base at once. Perhaps a build time configuration that would enable "strict" force zeroing where the server just clears the entirety of the comm buffers once received? But again, pretty sure this is overkill. @billphipps @rizlik thoughts?

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