GHSA-p9m5-3hj7-cp5r

Suggest an improvement
Source
https://github.com/advisories/GHSA-p9m5-3hj7-cp5r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-p9m5-3hj7-cp5r/GHSA-p9m5-3hj7-cp5r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p9m5-3hj7-cp5r
Aliases
Published
2022-05-24T17:37:49Z
Modified
2023-11-08T04:03:38Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
futures_task::noop_waker_ref can segfault due to dereferencing a NULL pointer
Details

Affected versions of the crate used a UnsafeCell in thread-local storage to return a noop waker reference, assuming that the reference would never be returned from another thread.

This resulted in a segmentation fault crash if Waker::wake_by_ref() was called on a waker returned from another thread due to it attempting to dereference a pointer that wasn't accessible from the main thread.

Database specific
{
    "cwe_ids":  [
        "CWE-476"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-06-16T23:58:57Z",
    "nvd_published_at":  "2020-12-31T09:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / futures-task

Package

Name
futures-task
View open source insights on deps.dev
Purl
pkg:cargo/futures-task

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.3.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-p9m5-3hj7-cp5r/GHSA-p9m5-3hj7-cp5r.json"