Fix: WolfCrypt Fenrir - 12 fixes#10786
Open
aidankeefe2022 wants to merge 2 commits into
Open
Conversation
9046e08 to
8968849
Compare
|
retest this please |
|
Member
Author
|
Jenkins retest this please |
https://fenrir.wolfssl.com/finding/5384 https://fenrir.wolfssl.com/finding/4432 https://fenrir.wolfssl.com/finding/5392 https://fenrir.wolfssl.com/finding/5392 skoll fixes Changed type for keys for CAAM in ecc so it matches assignment with out cast to never truncate Added check to see if CAAM_ADDRESS is defined before using in ecc.h https://fenrir.wolfssl.com/finding/5994 https://fenrir.wolfssl.com/finding/4445 Fixed memory leaks for dev crypto and fixed https://fenrir.wolfssl.com/finding/4446 https://fenrir.wolfssl.com/finding/5418 https://fenrir.wolfssl.com/finding/5420 https://fenrir.wolfssl.com/finding/5411 https://fenrir.wolfssl.com/finding/5412 https://fenrir.wolfssl.com/finding/5413
f0db333 to
60b22a5
Compare
Member
Author
|
Jenkins retest this please |
Member
Author
|
Jenkins retest this please |
1 similar comment
Member
Author
|
Jenkins retest this please |
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
https://fenrir.wolfssl.com/finding/6145
wc_DsaVerify/wc_DsaVerify_exleave*answeruninitialized on all error paths, unlike sibling ECC/ECCSI verify APIs that default to "not verified".answerparameter to zero so that on early exit the output parameter is defined as false.https://fenrir.wolfssl.com/finding/5384
CAAM secure-memory addresses are truncated to 32 bits in ECC keys.
ecc_keyfields toCAAM_ADDRESSwhen it is defined. This allows the address width to expand with the platform so addresses are not truncated.https://fenrir.wolfssl.com/finding/4432
wc_DrbgState_MutexInitunsafe lazy mutex initialization withoutWOLFSSL_MUTEX_INITIALIZER.int, we use atomic operations when they are present to initialize the mutex. This ensures that no two threads can initialize the same mutex.https://fenrir.wolfssl.com/finding/5392
DES key schedule branches on secret key bits.
ifstatement, we use a mask to set bits inks.https://fenrir.wolfssl.com/finding/5994
Invalid free / use-after-free of embedded X509 NAME in the ESP32 cert-bundle verify callback on a lookup miss.
esp_crt_bundle.c.https://fenrir.wolfssl.com/finding/4445
devcrypto
wc_Sha256Copyproduces a non-functional hash copy whenWOLFSSL_DEVCRYPTO_HASH_KEEPis disabled.https://fenrir.wolfssl.com/finding/4446
devcrypto
wc_Sha256Finalleaks the kernel hash session whenGetDigestfails.https://fenrir.wolfssl.com/finding/5418
FSPSM AES-GCM TLS key allocation failures return without unlocking hardware.
https://fenrir.wolfssl.com/finding/5420
FSPSM hash
Final/GetHashsilently succeeds when hardware hash initialization fails.retto an error value so that on return the error is no longer silent.https://fenrir.wolfssl.com/finding/5411
SipHash assembly paths load the caller key through
word64pointer casts.byte*toword64*casts to use theGET_U64()helper macro to protect against alignment issues.https://fenrir.wolfssl.com/finding/5412
Intel RDSEED/RDRAND generators write arbitrary output buffers as
word64.word64value, then usedwriteUnalignedWord64to transfer it into the output without alignment issues.https://fenrir.wolfssl.com/finding/5413
ML-KEM AArch64 noise helpers cast byte buffers and seeds to
word64pointers.writeUnalignedWord64instead of abyte*->word64*cast.