Arbitrary trusted memory overwrite vulnerability in Asylo
Description
An arbitrary memory overwrite vulnerability in the trusted memory of Asylo exists in versions prior to 0.6.0. As the ecall_restore function fails to validate the range of the output_len pointer, an attacker can manipulate the tmp_output_len value and write to an arbitrary location in the trusted (enclave) memory. We recommend updating Asylo to version 0.6.0 or later.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Asylo's ecall_restore function lacks validation of the output_len pointer, allowing an attacker to overwrite arbitrary enclave memory.
Vulnerability
The vulnerability resides in the ecall_restore function within Asylo's SGX primitives (file asylo/platform/primitives/sgx) in versions prior to 0.6.0. The function fails to validate that the output_len pointer points to untrusted memory outside the enclave. This omission allows an attacker to supply a crafted output_len pointer that, when dereferenced, leads to an arbitrary memory overwrite inside the trusted enclave memory. All versions before 0.6.0 are affected.
Exploitation
An attacker must be able to invoke the ecall_restore ECALL from untrusted code with controlled input, input_len, output, and output_len pointers. No authentication or special privileges are required beyond the ability to communicate with the enclave. The attacker sets output_len to point to a desired location within enclave memory. The function then writes the actual output length to that location, overwriting arbitrary trusted memory.
Impact
Successful exploitation allows an attacker to overwrite arbitrary memory inside the enclave. This can corrupt enclave state, potentially leading to arbitrary code execution within the enclave or leakage of sensitive data. The compromise affects the confidentiality, integrity, and availability of the trusted execution environment.
Mitigation
The fix was introduced in commit e582f36 [1], which adds an IsOutsideEnclave check for the output_len pointer. Users should update to Asylo version 0.6.0 or later, which includes this fix. No workaround is available for earlier versions. The repository has been archived, but the 0.6.0 release contains the patch.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Google LLC/Asylov5Range: stable
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1- github.com/google/asylo/commit/e582f36ac49ee11a21d23ad6a30c333092e0a94emitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.