CVE-2021-28035 Drop of uninitialized memory in stack_dst

Critical 9.8 Published Updated

A memory corruption vulnerability in the Rust stack_dst crate allows denial of service via uninitialized memory drop during clone panics.

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

CVE-2021-28035 is a critical memory corruption 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 drop of uninitialized memory can occur upon a val.clone() panic.

Weakness: CWE-908

Which versions are affected by CVE-2021-28035?

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

Upgrade stack_dst to 0.6.1 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-28035 being exploited?

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

Sources

Also known as GHSA-45w7-7g63-2m5w.

Is CVE-2021-28035 in your software?

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

Check your SBOMs for free