kmstool-enclaveに脆弱性、Nitro Enclave内で任意のコードを実行されるおそれ
Summary
aws-nitro-enclaves-sdk-cのkmstool-enclaveにあるSetClientコマンドの処理で、解放済みメモリの使用と二重解放の問題が見つかりました。親のEC2インスタンス上のアプリケーションから、Nitro Enclave内のヒープメモリを壊され、任意のコードを実行されるおそれがあります。影響するのは0.4.6より前の版で、0.4.6で修正されています。kmstool-enclaveを含むEnclaveイメージを、0.4.6に対してビルドし直してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
aws-nitro-enclaves-sdk-cのkmstool-enclaveにあるSetClientコマンドの処理で、解放済みメモリの使用と二重解放の問題が見つかりました。親のEC2インスタンス上のアプリケーションから、Nitro Enclave内のヒープメモリを壊され、任意のコードを実行されるおそれがあります。影響するのは0.4.6より前の版で、0.4.6で修正されています。kmstool-enclaveを含むEnclaveイメージを、0.4.6に対してビルドし直してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| AWSkmstool-enclave |
< 0.4.6→ 0.4.6 |
0.4.6 |
Original description The description as published by the source.
A use-after-free and double-free issue in the SetClient command handler of the kmstool-enclave sample application of AWS aws-nitro-enclaves-sdk-c before 0.4.6 may allow an application that runs on the parent EC2 instance to corrupt heap memory inside a Nitro Enclave which may lead to arbitrary code execution within the enclave.
To remediate this issue, users should rebuild any enclave image that includes kmstool-enclave, or code derived from it, against aws-nitro-enclaves-sdk-c 0.4.6.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory aws.amazon.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- AWS aws.amazon.com
- patch github.com