You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected versions of futures-rs had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.
This could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.
The issue was fixed by fixing Send and Sync implementations, and by adding a PhantomData<&'a mut U> marker to the MappedMutexGuard type to tell the compiler that the guard is over U too.
This is affecting future-rs 0.3.2 through 0.3.6 and fixed in futures-rs 0.3.7 onwards.
WS-2020-0189 - Medium Severity Vulnerability
Common utilities and extension traits for the futures-rs library.
Library home page: https://crates.io/api/v1/crates/futures-util/0.3.5/download
Dependency Hierarchy:
Found in HEAD commit: 03a13931029c029c2e33c800cb84ed638aa401db
Found in base branch: master
Affected versions of futures-rs had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.
This could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.
The issue was fixed by fixing Send and Sync implementations, and by adding a PhantomData<&'a mut U> marker to the MappedMutexGuard type to tell the compiler that the guard is over U too.
This is affecting future-rs 0.3.2 through 0.3.6 and fixed in futures-rs 0.3.7 onwards.
Publish Date: 2020-11-02
URL: WS-2020-0189
Base Score Metrics:
Type: Upgrade version
Origin: rust-lang/futures-rs#2239
Release Date: 2020-11-02
Fix Resolution: 0.3.7
The text was updated successfully, but these errors were encountered: