Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
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.
// No embargoed advisories.