Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libsbc
  4. ›
  5. CVE-2020-36440

CVE-2020-36440: Data races in libsbc

August 25, 2021

Affected versions of this crate implements Send for Decoder<R> for any R: Read. This allows Decoder<R> to contain R: !Send and carry (move) it to another thread.

This can result in undefined behavior such as memory corruption from data race on R, or dropping R = MutexGuard<_> from a thread that didn’t lock the mutex.

The flaw was corrected in commit a34d6e1 by adding trait bound R: Send to the Send impl for Decoder<R>.

References

  • github.com/advisories/GHSA-f6g6-54hm-fhxv
  • github.com/mvertescher/libsbc-rs
  • github.com/mvertescher/libsbc-rs/commit/a34d6e1
  • nvd.nist.gov/vuln/detail/CVE-2020-36440
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/libsbc/RUSTSEC-2020-0120.md
  • rustsec.org/advisories/RUSTSEC-2020-0120.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.5

Fixed versions

  • 0.1.5

Solution

Upgrade to version 0.1.5 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/libsbc/CVE-2020-36440.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:14 +0000.