rust-libp2p
rust-libp2p copied to clipboard
RUSTSEC-2022-0040: Multiple soundness issues in `owning_ref`
Multiple soundness issues in
owning_ref
Details | |
---|---|
Package | owning_ref |
Version | 0.4.1 |
URL | https://github.com/noamtashma/owning-ref-unsoundness |
Date | 2022-01-26 |
-
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
andOwningRefMut::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.
See advisory page for additional details.
Hello team! I am one of the contributors from Pyrsia! I was investigating through the issue and as per my understanding of the usage of prometheus_client in misc/metrics
. The library uses Owning_Ref which affects the library!
Hello team! I am one of the contributors from Pyrsia!
:wave: great to have you here.
I was investigating through the issue and as per my understanding of the usage of prometheus_client in misc/metrics. The library uses Owning_Ref which affects the library!
That is correct.
Disclaimer, I am a maintainer of the libp2p
crate and the maintainer of the prometheus-client
crate.
I documented my thoughts here https://github.com/prometheus/client_rust/issues/77#issuecomment-1204650788. Help much appreciated.
Since the above was merged, libp2p updating to prometheus-client 0.18.0 should fix this.