Fix: WolfCrypt 7 fenrir fixes#10808
Open
aidankeefe2022 wants to merge 1 commit into
Open
Conversation
4db6bea to
7719bc6
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #10808
Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-src
No new issues found in the changed files. ✅
7719bc6 to
9986611
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #10808
Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-src
No new issues found in the changed files. ✅
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixed a series of Fenrir issues that mostly pertained to alignment UB when reading byte arrays as various sizes of integers.
https://fenrir.wolfssl.com/finding/6438
FSPSM RSA private-decrypt never updates caller's *outLen (passes &outLen instead of outLen)
https://fenrir.wolfssl.com/finding/5414
SLH-DSA AVX2 x4 SHAKE helpers cast hash byte streams to word64
https://fenrir.wolfssl.com/finding/5415
ML-DSA little-endian pack/unpack paths cast encoded byte buffers to word pointers
https://fenrir.wolfssl.com/finding/6165
scrypt scryptROMix big-endian Integerify shifts bytes without width cast (signed overflow/oversized shift on 16-bit int)
https://fenrir.wolfssl.com/finding/6166
wc_ecc_init_id (SE050) reinterprets byte id[] array as word32 via pointer cast
https://fenrir.wolfssl.com/finding/6167
XMSS hash-address byte buffers cast to word32* in address-encoding helpers (unaligned access / strict aliasing)
https://fenrir.wolfssl.com/finding/6177
PKCS#12 parse leaves decrypted SafeContents (incl. plaintext private KeyBag) in freed heap buffer