Use After Free Affecting lucet-runtime package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.77% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-LUCETRUNTIME-1932567
  • published30 Nov 2021
  • disclosed30 Nov 2021
  • creditiximeow, Adam C. Foltzer, Katelyn Martin, Aaron Turon, Alex Crichton, Alok Aggarwal

Introduced: 30 Nov 2021

CVE-2021-43790  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

lucet-runtime is a native WebAssembly compiler and runtime. It is designed to safely execute untrusted WebAssembly programs inside your application.

Affected versions of this package are vulnerable to Use After Free in an instance object. When a WebAssembly instance is dropped, its fields are destructed top-to-bottom - however when the alloc: Alloc field is destructed, the instance would be de-allocated, and the remaining destructors will not be invoked. Any fields declared after the alloc field could potentially result in a use-after-free if the instance memory is reallocated, and additionally a race condition if the instance is allocated by another thread.

CVSS Scores

version 3.1