Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sys-info
  4. ›
  5. CVE-2020-36434

CVE-2020-36434: Double free in sys-info

August 25, 2021 (updated June 13, 2023)

Affected versions of sys-info use a static, global, list to store temporary disk information while running. The function that cleans up this list, DFCleanup, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment. This results in consistent double-frees and segfaults when calling sys_info::disk_info from multiple threads at once. The issue was fixed by moving the global variable into a local scope.

References

  • github.com/FillZpp/sys-info-rs
  • github.com/FillZpp/sys-info-rs/issues/63
  • github.com/advisories/GHSA-2f5j-3mhq-xv58
  • nvd.nist.gov/vuln/detail/CVE-2020-36434
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/sys-info/RUSTSEC-2020-0100.md
  • rustsec.org/advisories/RUSTSEC-2020-0100.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36434 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.8.0

Fixed versions

  • 0.8.0

Solution

Upgrade to version 0.8.0 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

cargo/sys-info/CVE-2020-36434.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:12 +0000.