Advisory

GHSA-9qxh-258v-666c

Also known as: RUSTSEC-2022-0040

Summary

owning_ref vulnerable to multiple soundness issues

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.

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-08-10 17:26 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

owning_ref

crates.io · All systems

Affected

  • introduced 0, last affected 0.4.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences