All reports
Medium

owning_ref vulnerable to multiple soundness issues

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_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.

No patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.

Links