Advisory

GHSA-r93v-9p5q-vhpf

Also known as: CVE-2020-35906, RUSTSEC-2020-0060

Summary

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

Details

Affected versions of the crate did not properly implement a 'static lifetime bound on the waker function. This resulted in a use-after-free if Waker::wake() is called after original data had been dropped.

The flaw was corrected by adding 'static lifetime bound to the data waker takes.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 17:37 UTC
Modified
2025-10-30 19:53 UTC

Affected packages and fixes

futures-task

crates.io · All systems

Affected

  • introduced 0.2.1, fixed 0.3.6 (semver)

Fixed versions

0.3.6

Fix

  • Fixed version 0.3.6
    cargo update -p futures-task --precise 0.3.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences