GHSA-r93v-9p5q-vhpf

Suggest an improvement
Source
https://github.com/advisories/GHSA-r93v-9p5q-vhpf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-r93v-9p5q-vhpf/GHSA-r93v-9p5q-vhpf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r93v-9p5q-vhpf
Aliases
Published
2022-05-24T17:37:49Z
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
{
    "nvd_published_at": "2020-12-31T09:15:00Z",
    "cwe_ids": [
        "CWE-416"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-16T23:58:42Z"
}
References

Affected packages

crates.io / futures-task

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.1
Fixed
0.3.6

Ecosystem specific

{
    "affected_functions": [
        "futures_task::waker"
    ]
}