VYPR
Unrated severityNVD Advisory· Published Aug 11, 2022· Updated Aug 3, 2024

CVE-2022-38155

CVE-2022-38155

Description

TEE_Malloc in Samsung mTower through 0.3.0 allows a trusted application to achieve Excessive Memory Allocation via a large len value, as demonstrated by a Numaker-PFM-M2351 TEE kernel crash.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

TEE_Malloc in Samsung mTower through 0.3.0 allows a trusted application to cause excessive memory allocation and kernel crash via a large len value.

Vulnerability

TEE_Malloc in Samsung mTower through version 0.3.0 does not validate the len parameter before passing it to tee_user_mem_alloc. A trusted application can invoke TEE_Malloc with an excessively large value for len, leading to an attempt to allocate a huge memory chunk. The affected code is in /tee/lib/libutee/tee_api.c at line 314 [1]. This issue is present in all versions up to 0.3.0 [2].

Exploitation

To exploit this vulnerability, an attacker must have the ability to load and execute a trusted application within the TEE environment. The attacker then calls TEE_Malloc with a very large len value, such as 0xFFFFFFFF. The function does not check the size and proceeds to allocate, causing the TEE kernel to crash due to memory exhaustion or invalid allocation. No authentication or special privileges beyond running a trusted application are required [2].

Impact

Successful exploitation results in a denial of service (DoS) through a TEE kernel crash. On hardware like the Numaker-PFM-M2351, this manifests as a complete system crash of the trusted execution environment, disrupting all TEE services and potentially affecting the normal world if the TEE is responsible for critical functions [2].

Mitigation

As of the publication date (2022-08-11), no patched version has been released. The maintainers have acknowledged the issue via GitHub issue #74 [2], but no fix is available. Users should monitor the mTower repository for updates. A potential workaround is to enforce input validation on len values passed to TEE_Malloc at the caller level, but this requires modifying trusted applications.

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

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.