PT-2020-17653 · Rust · Max7301
Published
2020-12-18
·
Updated
2021-08-25
·
CVE-2020-36472
CVSS v3.1
5.9
Medium
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
max7301 crate versions prior to 0.2.0
Description
The issue arises from the
ImmediateIO and TransactionalIO types implementing Sync for all contained Expander<EI> types, regardless of whether the Expander itself is safe to use across threads. This can lead to non-thread-safe types being sent across threads as part of the Expander, resulting in data races.Recommendations
For max7301 crate versions prior to 0.2.0, consider updating to version 0.2.0 or later to resolve the issue. As a temporary workaround, avoid using the
ImmediateIO and TransactionalIO types across threads to minimize the risk of data races. Restrict access to the Expander types to ensure they are not sent across threads, leading to potential data corruption.Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Max7301