GitHub Advisoryadvisory · crates.io

GHSA-rmff-f8w9-c9rm Data races in max7301

MEDIUM Published 2021-08-25 Modified 2021-08-18 Official page ↗
Aliases
CVE-2020-36472
Ecosystem
crates.io
Packages
max7301
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-362
Reviewed
2021-08-09

Affected packages

• crates.io max7301: < 0.2.0 → fixed in 0.2.0

Description

The `ImmediateIO` and `TransactionalIO` types implement `Sync` for all contained `Expander` types regardless of if the `Expander` itself is safe to use across threads. As the `IO` types allow retrieving the `Expander`, this can lead to non-thread safe types being sent across threads as part of the `Expander` leading to data races.

Related

Alias · CVE (1)

  • CVE-2020-36472 An issue was discovered in the max7301 crate before 0.2.0 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References