7.5high
Double free in endian_trait
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.18% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vpw8-43wm-rxw5RUSTSEC-2021-0039
Description
An issue was discovered in the endian_trait crate through 2021-01-04 for Rust. A double drop can occur when a user-provided Endian impl panics.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| endian_trait (crates.io) | up to 0.6.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| endian_trait_project endian_trait | up to 2021-01-04 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
An issue was discovered in the endian_trait crate through 2021-01-04 for Rust. A double drop can occur when a user-provided Endian impl panics.
RustSec Advisory Database
Affected versions of the crate does not guard against panic from user-provided impl of Endian trait, which is a safe trait that users can implement.
If a user-provided implementation of the Endian trait panics, double-drop is triggered due to the duplicated ownership of T created by ptr::read().
Double-drop (or double free) can cause memory corruption in the heap.
NVD (es)
Se detectó un problema en la crate endian_trait hasta el 4 de enero de 2021 para Rust. Una doble caída puede ocurrir cuando un implementación de Endian proporcionado por el usuario entra en pánico.
References
| https://rustsec.org/advisories/RUSTSEC-2021-0039.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29929 | advisory | |
| https://gitlab.com/myrrlyn/endian_trait | package | |
| https://gitlab.com/myrrlyn/endian_trait/-/issues/1 | report, web | |
| https://crates.io/crates/endian_trait | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29929 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vpw8-43wm-rxw5 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0039 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-29929 changed 2026-06-17 | Public domain |