RUSTSEC-2019-0011

Source
https://rustsec.org/advisories/RUSTSEC-2019-0011
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0011.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0011
Aliases
Published
2019-07-16T12:00:00Z
Modified
2023-11-08T04:01:14.285412Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Flaw in offset_of and span_of causes SIGILL, drops uninitialized memory of arbitrary type on panic in client code
Details

Affected versions of this crate caused traps and/or memory unsafety by zero-initializing references. They also could lead to uninitialized memory being dropped if the field for which the offset is requested was behind a deref coercion, and that deref coercion caused a panic.

The flaw was corrected by using MaybeUninit.

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

Affected packages

crates.io / memoffset

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.5.0

Ecosystem specific

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

Database specific

{
    "cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
    "informational": "unsound",
    "categories": []
}