RUSTSEC-2022-0040
MEDIUMowning_ref vulnerable to multiple soundness issues
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.
- Published
- 26 Jan 2022
- Last modified
- 8 Nov 2023
- Also known as
- GHSA-9qxh-258v-666c
- Sources
- OSV GHSA-9qxh-258v-666cJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | owning_ref | <= 0.4.1 | |
| OSV | crates.io | owning_ref | >= 0.0.0-0 |
References
- https://github.com/Kimundi/owning-ref-rs · PACKAGE
- https://github.com/noamtashma/owning-ref-unsoundness · WEB
- https://rustsec.org/advisories/RUSTSEC-2022-0040.html · WEB, ADVISORY
- https://crates.io/crates/owning_ref · PACKAGE
- https://github.com/Kimundi/owning-ref-rs/issues/49 · REPORT
- https://github.com/Kimundi/owning-ref-rs/issues/61 · REPORT
- https://github.com/Kimundi/owning-ref-rs/issues/71 · REPORT
- https://github.com/Kimundi/owning-ref-rs/issues/77 · REPORT
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)