Skip to content

Fix SAKKE OOB write and correctness gap in sakke_hash_to_range#10442

Open
JeremiahM37 wants to merge 5 commits intowolfSSL:masterfrom
JeremiahM37:zd21783
Open

Fix SAKKE OOB write and correctness gap in sakke_hash_to_range#10442
JeremiahM37 wants to merge 5 commits intowolfSSL:masterfrom
JeremiahM37:zd21783

Conversation

@JeremiahM37
Copy link
Copy Markdown
Contributor

Description

  • sakke_xor_in_v heap buffer overflow when ssvSz > hashSz and (ssvSz % hashSz) != 0.
  • sakke_xor_in_v correctness gap — output for some (ssvSz, hashSz) combinations does not match RFC 6508 §5.1.
  • wc_MakeSakkeEncapsulatedSSV / wc_DeriveSakkeSSV did not validate ssvSz.

Fixes Audit 7 of zd21783

Testing

  • Added sakke_xor_in_v_oob_test and sakke_mask_correctness_test in tests/unit.c.
  • wolfcrypt/test/testwolfcrypt SAKKE KAT still passes.

@JeremiahM37 JeremiahM37 self-assigned this May 8, 2026
@JeremiahM37 JeremiahM37 marked this pull request as ready for review May 8, 2026 22:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

MemBrowse Memory Report

No memory changes detected for:

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.

1 participant