Advisory

RUSTSEC-2020-0060

Also known as: CVE-2020-35906, GHSA-r93v-9p5q-vhpf

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: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-09-04 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

futures-task

crates.io · All systems

Affected

  • introduced 0.2.2-0, 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: RustSec Advisory Database · CC0-1.0

Sources & licences