RUSTSEC-2020-0060

Source
https://rustsec.org/advisories/RUSTSEC-2020-0060
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0060.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0060
Aliases
Published
2020-09-04T12:00:00Z
Modified
2023-11-08T04:03:38.611050Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / futures-task

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.2-0
Fixed
0.3.6

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "futures_task::waker"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": [
        "code-execution",
        "memory-corruption"
    ]
}