CVE-2021-29938 Double free in slice-deque
A double drop vulnerability in the Rust slice-deque crate can cause memory corruption and potential code execution when a panic occurs during filtering.
- 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-29938?
CVE-2021-29938 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 slice-deque crate through 2021-02-19 for Rust. A double drop can occur in SliceDeque::drain_filter upon a panic in a predicate function.
Weakness: CWE-415
Which versions are affected by CVE-2021-29938?
3 open source packages ship an affected version, including slice-deque. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
slice-deque crates.io | All versions to 0.3.0 | None |
slice-deque crates.io | All versions to 0.3.0 | None |
slice-deque crates.io | From 0.0.0-0 | None |
Products include Slice-Deque Project Slice-Deque.
How do I fix CVE-2021-29938?
No fix has been published for CVE-2021-29938 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-29938 being exploited?
There is no known exploitation of CVE-2021-29938 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-p9gf-gmfv-398m, RUSTSEC-2021-0047.