CVE-2021-28034 Double free in stack_dst

Critical 9.8 Published Updated

A double free vulnerability in the Rust stack_dst crate allows attackers to cause denial of service or potentially execute code via a panic during clone operations.

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-28034?

CVE-2021-28034 is a critical use after free vulnerability in n/a, published on 5 Mar 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 stack_dst crate before 0.6.1 for Rust. Because of the push_inner behavior, a double free can occur upon a val.clone() panic.

Weakness: CWE-415

Which versions are affected by CVE-2021-28034?

2 open source packages ship an affected version, including stack_dst. It affects 1 product.

PackageAffectedFixed in
stack_dst crates.ioAll versions0.6.1
stack_dst crates.ioAll versions0.6.1

Products include Stack Dst Project Stack Dst.

How do I fix CVE-2021-28034?

Upgrade stack_dst to 0.6.1 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-28034 being exploited?

There is no known exploitation of CVE-2021-28034 in the wild and no public exploit code.

Sources

Also known as GHSA-8mjx-h23h-w2pg.

Is CVE-2021-28034 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free