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

CVE-2022-40757

CVE-2022-40757

Description

A Buffer Access with Incorrect Length Value vulnerablity in the TEE_MACComputeFinal function in Samsung mTower through 0.3.0 allows a trusted application to trigger a Denial of Service (DoS) by invoking the function TEE_MACComputeFinal with an excessive size value of messageLen.

AI Insight

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

Samsung mTower before 0.3.1 has a buffer overread in TEE_MACComputeFinal, allowing a trusted app to crash the TEE kernel via an excessive messageLen.

Vulnerability

A buffer access with incorrect length value vulnerability exists in the function TEE_MACComputeFinal in Samsung mTower through version 0.3.0. The function resides in the file /tee/lib/libutee/tee_api_objects.c [1]. The trusted application (TA) passes a messageLen parameter, and the implementation does not validate that this value matches the actual length of the input buffer. When an excessive messageLen is supplied, the internal memcpy operation reads beyond the intended memory region, leading to a denial of service [1][2]. The same class of bug also affects TEE_MACUpdate [1].

Exploitation

An attacker who controls a trusted application can invoke TEE_MACComputeFinal with an overly large messageLen value. No special network position or authentication beyond the ability to execute a TA is required. The excessive size causes a subsequent memcpy to copy out of bounds, which can corrupt memory or trigger a fault in the TEE kernel [1][2].

Impact

Successful exploitation causes a denial of service (DoS), crashing the trusted execution environment kernel. The disclosure indicates no privilege escalation or information disclosure, but the crash can disrupt all TEE services on the device [1].

Mitigation

A fix has been implemented in the mTower repository after version 0.3.0 [1]. Users should update to a commit that includes validation of messageLen against the actual buffer size. As of the publication date, no official patch release number has been announced; the recommended action is to apply the latest changes from the repository [2].

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.