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.
// No embargoed advisories.