CVE-2020-35906 futures_task::waker may cause a use-after-free if used on a type that isn't 'static

High 7.8 Published Updated

A use-after-free vulnerability in the futures-task crate allows attackers to potentially execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-35906?

CVE-2020-35906 is a high-severity use after free vulnerability in n/a, published on 31 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in the futures-task crate before 0.3.6 for Rust. futures_task::waker may cause a use-after-free in a non-static type situation.

Weakness: CWE-416

Which versions are affected by CVE-2020-35906?

3 open source packages ship an affected version, including futures-task. It affects 1 product.

PackageAffectedFixed in
futures-task crates.ioFrom 0.2.10.3.6
futures-task crates.ioFrom 0.2.10.3.6
futures-task crates.ioFrom 0.2.2-00.3.6

Products include Rust-Lang Futures-Task.

How do I fix CVE-2020-35906?

Upgrade futures-task to 0.3.6 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-2020-35906 being exploited?

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

Sources

Also known as GHSA-r93v-9p5q-vhpf, RUSTSEC-2020-0060, UBUNTU-CVE-2020-35906.

Is CVE-2020-35906 in your software?

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

Check your SBOMs for free