RUSTSEC-2020-0104

Source
https://rustsec.org/advisories/RUSTSEC-2020-0104
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0104.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0104
Aliases
Published
2020-12-08T12:00:00Z
Modified
2023-11-08T04:03:41.780192Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ImageChunkMut needs bounds on its Send and Sync traits
Details

In the affected versions of this crate, ImageChunkMut<'_, T> unconditionally implements Send and Sync, allowing to create data races.

This can result in a memory corruption or undefined behavior when non thread-safe types are moved and referenced across thread boundaries.

The flaw was corrected in commit e7fb2f5 by adding T: Send bound to the Send impl and adding T: Sync bound to the Sync impl.

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

Affected packages

crates.io / gfwx

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.3.0

Ecosystem specific

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

Database specific

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