Security mailing lists by PureSourceCode

GHSA-9qxh-258v-666c

MEDIUM

owning_ref vulnerable to multiple soundness issues

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

Published
26 Jan 2022
Last modified
8 Nov 2023
Also known as
RUSTSEC-2022-0040
Sources
OSVJSONOSV RUSTSEC-2022-0040JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io owning_ref <= 0.4.1
OSV crates.io owning_ref >= 0.0.0-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jan 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Aug 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.