RUSTSEC-2020-0112

Source
https://rustsec.org/advisories/RUSTSEC-2020-0112
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0112.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0112
Aliases
Published
2020-12-18T12:00:00Z
Modified
2023-11-08T04:03:42.151494Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
ButtplugFutureStateShared allows data race to (!Send|!Sync) objects
Details

ButtplugFutureStateShared<T> implements Send & Sync regardless of T.

If T: !Send for ButtplugFutureStateShared<T>, it is possible to move non-Send types across thread boundaries (e.g. T=Rc<T>) and lead to undefined behavior. If T: !Sync for ButtplugFutureStateShared<T>, it is possible to cause data race to T (e.g. T=Arc<Cell<_>>) and lead to undefined behavior.

The flaw was corrected in version 1.0.4 by removing manual implementations of Send/Sync for ButtplugFutureStateShared<T> to let rustc generate auto trait implementations with correct trait bounds on T.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / buttplug

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
1.0.4

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "memory-corruption",
        "thread-safety"
    ]
}