Unchecked buffer overrun in enc_untrusted_inet_pton
Description
An arbitrary memory read vulnerability in Asylo versions up to 0.6.0 allows an untrusted attacker to make a call to enc_untrusted_inet_pton using an attacker controlled klinux_addr_buffer parameter. The parameter size is unchecked allowing the attacker to read memory locations outside of the intended buffer size including memory addresses within the secure enclave. We recommend upgrading past commit 8fed5e334131abaf9c5e17307642fbf6ce4a57ec
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In Asylo up to 0.6.0, enc_untrusted_inet_pton allows an untrusted attacker to read arbitrary memory due to an unchecked buffer size parameter.
Vulnerability
The vulnerability exists in the enc_untrusted_inet_pton function in Asylo versions up to 0.6.0. The function does not check the size of the attacker-controlled klinux_addr_buffer parameter, allowing an attacker to specify a buffer larger than expected. This leads to an arbitrary memory read when the function copies data from klinux_addr_buffer to the output buffer, potentially reading memory outside the intended buffer [1].
Exploitation
An untrusted attacker can trigger the vulnerability by calling enc_untrusted_inet_pton with a crafted klinux_addr_buffer pointer and size. The attacker controls the buffer size, and if it is larger than the expected klinux_in_addr or klinux_in6_addr structure, the memcpy will read beyond the intended boundaries. No authentication or special privileges are required; the attacker only needs the ability to make the function call.
Impact
Successful exploitation allows the attacker to read arbitrary memory, including memory within the secure enclave. This compromises the confidentiality of sensitive data stored in the enclave, potentially exposing cryptographic keys, secrets, or other protected information.
Mitigation
The issue is fixed in commit 8fed5e334131abaf9c5e17307642fbf6ce4a57ec [1], which adds size checks for the buffer based on the address family (AF_INET or AF_INET6). Users should upgrade to a version of Asylo that includes this patch. No workaround is available for versions prior to the fix.
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- Google LLC/Asylov5Range: unspecified
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1- github.com/google/asylo/commit/8fed5e334131abaf9c5e17307642fbf6ce4a57ecmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.