RUSTSEC-2020-0148

Source
https://rustsec.org/advisories/RUSTSEC-2020-0148
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0148.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0148
Aliases
Published
2020-12-10T12:00:00Z
Modified
2024-03-15T00:05:22.909466Z
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
Multiple soundness issues in `Ptr`
Details

Affected versions of this crate have the following issues:

  1. Ptr implements Send and Sync for all types, this can lead to data races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable references to the same object.

  3. Ptr::write uses non-atomic writes to the underlying pointer. This means that when used across threads it can lead to data races.

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

Affected packages

crates.io / cgc

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

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"
    ]
}