RUSTSEC-2022-0040

Source
https://rustsec.org/advisories/RUSTSEC-2022-0040
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0040.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0040
Aliases
Published
2022-01-26T12:00:00Z
Modified
2023-11-08T04:18:04.747199Z
Summary
Multiple soundness issues in `owning_ref`
Details
  • OwningRef::map_with_owner is unsound and may result in a use-after-free.
  • OwningRef::map is unsound and may result in a use-after-free.
  • OwningRefMut::as_owner and OwningRefMut::as_owner_mut are unsound and may result in a use-after-free.
  • The crate violates Rust's aliasing rules, which may cause miscompilations on recent compilers that emit the LLVM noalias attribute.

safer_owning_ref is a replacement crate which fixes these issues. No patched versions of the original crate are available, and the maintainer is unresponsive.

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

Affected packages

crates.io / owning_ref

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

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

Database specific

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