PT-2021-18542 · Unknown · Endian Trait

Published

2021-01-04

·

Updated

2021-08-25

·

CVE-2021-29929

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions endian trait crate through 2021-01-04
Description The issue arises when a user-provided implementation of the Endian trait panics, triggering a double-drop due to duplicated ownership of T created by ptr::read(). This double-drop can cause memory corruption in the heap.
Recommendations For versions of the endian trait crate through 2021-01-04, consider restricting the use of user-provided Endian trait implementations until a patch is available to prevent panic-induced double-drop issues. As a temporary workaround, ensure that all user-provided implementations of the Endian trait are thoroughly tested to prevent panics. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Double Free

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

Weakness Enumeration

Related Identifiers

CVE-2021-29929
GHSA-VPW8-43WM-RXW5
RUSTSEC-2021-0039

Affected Products

Endian Trait