Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
With WOLFSSL_ALGO_HW_MUTEX, each per-algorithm hardware mutex is created on first lock, guarded by a plain int that is tested and set without synchronization. Two tasks that first use the same algorithm together both create the mutex, which leaks one and can let both into the protected section.
The MAXQ10xx wc_InitMutex() creates a shared memory object, publishes a pointer to it and only then initializes the mutex inside. If a step fails after creation, the object stays behind uninitialized. The next attempt finds it, skips initialization and reports success. Error paths also leak the descriptor and the mapping.
MAXQ10xx builds keep the hardware crypto lock in a POSIX shared memory object with the fixed name /maxq-mutex and use an existing object without checking its owner, mode or contents. A local user who creates the object first can make wolfCrypt_Init() fail or make hardware operations block in every process that uses the secure element.
wolfSSL_CryptHwMutexInit() guards the one-time creation of the hardware crypto mutex with a plain int that is tested and set without a lock. Threads that reach hardware crypto before wolfCrypt_Init() has completed can both initialize the mutex, which breaks mutual exclusion on the device or fails the operation.
maxq10xx_SetupPkCallbacks() guards its work with a plain static int that is tested and set without a lock. Two threads that create their first WOLFSSL_CTX at the same time both pass the test. The same flag also stops every later context from receiving the MAXQ10xx callbacks.
The QNX CAAM port keeps the descriptor for its kernel crypto driver in caamFd, a non-static global int. Any code linked into the process can overwrite or close it, and the port's own teardown closes it without taking the lock that serializes driver requests. The result is failed or misdirected hardware crypto requests.
A public header of the Renesas port declares the hardware crypto callback context, guser_PKCbInfo, as a non-const extern global, and the port's context registry gCbCtx also has external linkage. Any code linked into the firmware can overwrite the wrapped-key selection state that later hardware crypto operations use.
// No embargoed advisories.