CVE-2021-29929 Double free in endian_trait
A double drop vulnerability in the endian_trait crate allows attackers to trigger memory corruption or crashes if a custom Endian implementation panics.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-29929?
CVE-2021-29929 is a high-severity use after free vulnerability in n/a, published on 1 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-415
Which versions are affected by CVE-2021-29929?
3 open source packages ship an affected version, including endian_trait. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
endian_trait crates.io | All versions to 0.6.0 | None |
endian_trait crates.io | All versions to 0.6.0 | None |
endian_trait crates.io | From 0.0.0-0 | None |
Products include Endian Trait Project Endian Trait.
How do I fix CVE-2021-29929?
No fix has been published for CVE-2021-29929 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-29929 being exploited?
There is no known exploitation of CVE-2021-29929 in the wild and no public exploit code.
Sources
Also known as GHSA-vpw8-43wm-rxw5, RUSTSEC-2021-0039.