GenericMutexGuard<T> was given the Sync auto trait as long as T is Send due to its contained members. However, since the guard is supposed to represent an acquired lock and allows concurrent access to the underlying data from different threads, it should only be Sync when the underlying data is.
This is a soundness issue and allows data races, potentially leading to crashes and segfaults from safe Rust code.
The flaw was corrected by adding a T: Send + Sync bound for GenericMutexGuard's Sync trait.
{ "nvd_published_at": null, "cwe_ids": [ "CWE-362" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2021-08-19T20:49:04Z" }