VYPR
Unrated severityNVD Advisory· Published Jun 8, 2021· Updated Sep 16, 2024

Enclave memory overwrite/overread vulnerability in Asylo UntrustedCacheMalloc::GetBuffer

CVE-2021-22550

Description

An attacker can modify the pointers in enclave memory to overwrite arbitrary memory addresses within the secure enclave. It is recommended to update past 0.6.3 or git commit https://github.com/google/asylo/commit/a47ef55db2337d29de19c50cd29b0deb2871d31c

AI Insight

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

An attacker can overwrite arbitrary memory inside a secure enclave via pointer manipulation in Asylo's UntrustedCacheMalloc, fixed in 0.6.3.

Vulnerability

In Google Asylo before version 0.6.3, the UntrustedCacheMalloc::GetBuffer() function in asylo/platform/primitives/sgx/UntrustedCacheMalloc.cc does not validate the integrity of cached buffer pointers before returning them to the enclave. The code adds pointers to a buffer pool without checking whether they have been tampered with while outside the enclave. This allows an attacker who can control or modify enclave memory to swap or alter the pointers in the pool, leading to arbitrary memory writes inside the secure enclave. The vulnerability affects all versions prior to the fix commit a47ef55 [1].

Exploitation

An attacker with the ability to modify enclave memory (for example, through a compromised untrusted runtime or shared memory region) can replace a legitimate buffer pointer in the buffer_pool_ with a pointer to an arbitrary memory location within the enclave. When the enclave next requests a buffer (via GetBuffer()), it will receive the attacker-controlled pointer and can then write data to that arbitrary address. No special user interaction or authentication is required beyond the existing capability to manipulate enclave memory [1].

Impact

Successful exploitation enables an attacker to overwrite arbitrary memory within the secure enclave. This can lead to disclosure of sensitive data, corruption of enclave state, or escalation of privileges within the enclave. The integrity and confidentiality of enclave operations are compromised [1].

Mitigation

The fix is included in Asylo version 0.6.3 and the git commit a47ef55 [1]. Users should update to version 0.6.3 or later. The affected repository has been archived and is read-only as of April 2026, so no further patches are expected. No workaround is provided. The CVE is not listed in CISA's Known Exploited Vulnerabilities catalog [1].

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/asylollm-fuzzy
    Range: >0.6.3
  • Google LLC/Asylov5
    Range: unspecified

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.