RUSTSEC-2021-0113

Source
https://rustsec.org/advisories/RUSTSEC-2021-0113
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0113.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0113
Aliases
Published
2021-04-07T12:00:00Z
Modified
2023-11-08T04:07:22.868706Z
Summary
AtomicBucket<T> unconditionally implements Send/Sync
Details

In the affected versions of the crate, AtomicBucket<T> unconditionally implements Send/Sync traits. Therefore, users can create a data race to the inner T: !Sync by using the AtomicBucket::data_with() API. Such data races can potentially cause memory corruption or other undefined behavior.

The flaw was fixed in commit 8e6daab by adding appropriate Send/Sync bounds to the Send/Sync impl of struct Block<T> (which is a data type contained inside AtomicBucket<T>).

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

Affected packages

crates.io / metrics-util

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.7.0

Ecosystem specific

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

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "memory-corruption",
        "thread-safety"
    ]
}