PT-2020-17506 · Rust · Internment Crate

Published

2020-05-28

·

Updated

2021-08-25

·

CVE-2020-35874

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions internment crate versions prior to 0.3.12
Description The issue is related to a race condition in ArcIntern::drop, which can lead to a use-after-free scenario. This occurs when memory is released while another user is about to access it, resulting in the new user getting a reference to freed memory. The problem was resolved by serializing access to an interned object during deallocation.
Recommendations For versions prior to 0.3.12, update to version 0.3.12 or later to fix the issue. As a temporary workaround, consider implementing stronger locking mechanisms to avoid the problem, similar to the approach used in versions prior to 0.3.12.

Exploit

Fix

Race Condition

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35874
GHSA-96W3-P368-4H8C
RUSTSEC-2020-0017

Affected Products

Internment Crate