Affected versions
Version ranges need review.
Rust / Cargoowning_ref
- Affected versions
- >=0.0.0-0
- Fixed version
- Not reported
Rust / Cargoowning_ref
- Affected versions
- <= 0.4.1
- Fixed version
- Not reported
Description
OwningRef::map_with_owneris unsound and may result in a use-after-free.OwningRef::mapis unsound and may result in a use-after-free.OwningRefMut::as_ownerandOwningRefMut::as_owner_mutare 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
noaliasattribute.
No patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.
Links
- https://crates.io/crates/owning_ref
- https://github.com/Kimundi/owning-ref-rs
- https://github.com/Kimundi/owning-ref-rs/issues/49
- https://github.com/Kimundi/owning-ref-rs/issues/61
- https://github.com/Kimundi/owning-ref-rs/issues/71
- https://github.com/Kimundi/owning-ref-rs/issues/77
- https://github.com/advisories/GHSA-9qxh-258v-666c
- https://github.com/noamtashma/owning-ref-unsoundness
- https://rustsec.org/advisories/RUSTSEC-2022-0040.html

