GitHub Advisoryadvisory · crates.io
GHSA-p9m5-3hj7-cp5r futures_task::noop_waker_ref can segfault due to dereferencing a NULL pointer
MEDIUM
Official page ↗
- Aliases
- CVE-2020-35907
- Ecosystem
- crates.io
- Packages
- futures-task
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-476
- Reviewed
- 2022-06-16
Affected packages
• crates.io futures-task: < 0.3.5 → fixed in 0.3.5
Description
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.
Related
Alias · CVE (1)
- CVE-2020-35907 An issue was discovered in the futures-task crate before 0.3.5 for Rust. vulnerability
Weakness · CWE (1)
- CWE-476 NULL Pointer Dereference weakness