RustSec Advisory Database
RUSTSEC-2020-0017
Use after free in ArcIntern::drop
Details
ArcIntern::drop has a race condition where it can release memory which is about to get another user. The new user will get a reference to freed memory.
This was fixed by serializing access to an interned object while it is being deallocated.
Versions prior to 0.3.12 used stronger locking which avoided the problem.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | internment | From 0.3.12 before 0.4.0 (fixed in 0.4.0) |