CVE-2021-43790:
Use After Free in lucet
8.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.65035%
CWE
Published
11/30/2021
Updated
2/1/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
lucet-runtime | rust | <= 0.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the destructor sequence in InstanceHandle
. The original code destructed the 'alloc' field first, releasing memory while other fields' destructors were still pending. The fix explicitly uses ManuallyDrop
to ensure 'alloc' is only dropped after the entire Instance
is destroyed. The key vulnerable code path is clearly in the Drop
implementation of InstanceHandle
, as shown in the commit diff modifying this specific destructor logic.