Technical impact
A use‑after‑free followed by a double‑free occurs in the SetClient command handler of the kmstool‑enclave sample application for AWS Nitro Enclaves SDK‑C. When an attacker can invoke this command from the parent EC2 instance, the bug corrupts heap memory inside the enclave, giving the attacker the ability to execute arbitrary code within the isolated enclave environment. This flaw represents a classic heap corruption problem that can subvert enclave confidentiality, integrity, and availability.
Affected Systems
The vulnerability affects the kmstool‑enclave sample application of the AWS Nitro Enclaves SDK‑C description. All releases of kmstool‑enclave that were distributed with aws‑nitro‑enclaves‑sdk‑c prior to version 0.4.6 are affected. Any enclave image that includes kmstool‑enclave or code derived from it is at risk if built against those older SDK versions.
Risk and Exploitability
The CVSS score of 8.7 classifies this as a high‑severity flaw. EPSS information is not available, and the vulnerability is not currently listed in the CISA KEV catalog. Attackers would need permission to call the SetClient command from the parent host, suggesting the attack vector is from the parent EC2 instance to the enclave via the established API. If successful, memory corruption can lead to arbitrary code execution inside the enclave.