CVE-2021-25907 Double free in containers
A double drop vulnerability in the Rust containers crate allows attackers to trigger memory corruption or crashes via panic handling.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-25907?
CVE-2021-25907 is a critical use after free vulnerability in n/a, published on 22 Jan 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 containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.
Weakness: CWE-415
Which versions are affected by CVE-2021-25907?
3 open source packages ship an affected version, including containers. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
containers crates.io | All versions | 0.9.11 |
containers crates.io | All versions | 0.9.11 |
containers crates.io | From 0.0.0-0 | 0.9.11 |
Products include Containers Project Containers.
How do I fix CVE-2021-25907?
Upgrade containers to 0.9.11 or later.
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-25907 being exploited?
There is no known exploitation of CVE-2021-25907 in the wild and no public exploit code.
Sources
Also known as GHSA-cv7x-6rc6-pq5v, RUSTSEC-2021-0010.