CVE-2022-39829
Description
There is a NULL pointer dereference in aes256_encrypt in Samsung mTower through 0.3.0 due to a missing check on the return value of EVP_CIPHER_CTX_new.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Samsung mTower through 0.3.0 contains a NULL pointer dereference in aes256_encrypt due to missing return-value check of EVP_CIPHER_CTX_new.
Vulnerability
A NULL pointer dereference vulnerability exists in the aes256_encrypt function in Samsung mTower through version 0.3.0. The function calls EVP_CIPHER_CTX_new() without checking its return value [1][2]. If this call fails (e.g., due to memory exhaustion), a NULL pointer is passed to subsequent OpenSSL cipher operations, leading to a crash or undefined behavior.
Exploitation
An attacker does not need any special network position or authentication; the vulnerability is triggered when the code path calling aes256_encrypt is executed and memory allocation fails. This is a local condition, but the attacker may be able to force memory exhaustion or trigger the vulnerable path through crafted inputs that cause EVP_CIPHER_CTX_new() to fail [2].
Impact
Successful exploitation results in a NULL pointer dereference that causes a denial of service (DoS) via program crash. No code execution or data disclosure is documented. The impact is limited to availability loss.
Mitigation
No fix has been officially released as of the publication date. The vendor was notified via the issue tracker [2], but no patch commit exists in the repository at version 0.3.0. Users should monitor the repository for updates. As a workaround, adding a check for the return value of EVP_CIPHER_CTX_new() before using the context pointer can prevent the dereference.
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Samsung/mTowerdescription
- Range: <=0.3.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/Samsung/mTower/blob/18f4b592a8a973ce5972f4e2658ea0f6e3686284/tools/ecdsa_keygen.cmitrex_refsource_MISC
- github.com/Samsung/mTower/issues/75mitrex_refsource_MISC
- www.openssl.org/docs/manmaster/man3/EVP_CIPHER_CTX_new.htmlmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.