RUSTSEC-2022-0040

    Dashboard / Vulnerabilities / RUSTSEC-2022-0040

    RUSTSEC-2022-0040

    Published: 26 Jan 2022Last Modified: 8 Nov 2023

    Summary: Multiple soundness issues in `owning_ref`

    Details: - `OwningRef::map_with_owner` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/77) and may result in a use-after-free. - `OwningRef::map` is [unsound](https://github.com/Kimundi/owning-ref-rs/issues/71) and may result in a use-after-free. - `OwningRefMut::as_owner` and `OwningRefMut::as_owner_mut` are [unsound](https://github.com/Kimundi/owning-ref-rs/issues/61) and may result in a use-after-free. - The crate [violates Rust's aliasing rules](https://github.com/Kimundi/owning-ref-rs/issues/49), 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.

    Affected packages

    Package

    Name: owning_ref

    Purl: pkg:cargo/owning_ref

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RUSTSEC-2022-0040 | CVE-DB