CVE-2021-36219 Use after free in n/a

Critical 9.8 Published Updated

An attacker can compromise enclave integrity by triggering a use-after-free in ECALL 14, potentially leading to code execution within the trusted environment.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-36219?

CVE-2021-36219 is a critical use after free vulnerability in n/a, published on 27 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in SKALE sgxwallet 1.58.3. The provided input for ECALL 14 triggers a branch in trustedEcdsaSign that frees a non-initialized pointer from the stack. An attacker can chain multiple enclave calls to prepare a stack that contains a valid address. This address is then freed, resulting in compromised integrity of the enclave. This was resolved after v1.58.3 and not reproducible in sgxwallet v1.77.0.

Weakness: CWE-824

Which versions are affected by CVE-2021-36219?

It affects 1 product.

Products include Skale Sgxwallet.

How do I fix CVE-2021-36219?

No fix has been published for CVE-2021-36219 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-36219 being exploited?

There is no known exploitation of CVE-2021-36219 in the wild and no public exploit code.

Sources

Also known as GHSA-9x89-2rj7-6392.

Is CVE-2021-36219 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free