Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. futures-task
  4. ›
  5. CVE-2020-35907

CVE-2020-35907: futures_task::noop_waker_ref can segfault due to dereferencing a NULL pointer

May 24, 2022 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-p9m5-3hj7-cp5r
  • github.com/rust-lang/futures-rs
  • github.com/rust-lang/futures-rs/issues/2091
  • nvd.nist.gov/vuln/detail/CVE-2020-35907
  • rustsec.org/advisories/RUSTSEC-2020-0061.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35907 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.5

Fixed versions

  • 0.3.5

Solution

Upgrade to version 0.3.5 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

cargo/futures-task/CVE-2020-35907.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:36 +0000.