From a07325e1c1ce9a6faee0c1cd5bc4e6aab53b182c Mon Sep 17 00:00:00 2001 From: Jungwon Lim Date: Mon, 18 Jan 2021 21:04:11 -0500 Subject: [PATCH 1/2] Add advisory for data race in may_queue --- crates/may_queue/RUSTSEC-0000-0000.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 crates/may_queue/RUSTSEC-0000-0000.md diff --git a/crates/may_queue/RUSTSEC-0000-0000.md b/crates/may_queue/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..1e9a09d --- /dev/null +++ b/crates/may_queue/RUSTSEC-0000-0000.md @@ -0,0 +1,19 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "may_queue" +date = "2020-11-10" +url = "https://github.com/Xudong-Huang/may/issues/88" +categories = ["memory-corruption"] +keywords = ["concurrency"] +informational = "unsound" + +[versions] +patched = [] +``` + +# may_queue's Queue lacks Send/Sync bound for its Send/Sync trait. + +Affected versions of `may_queue` implements `Send`/`Sync` for its `Queue` type without restricting it to `Send`able types and `Sync`able types. + +This allows non-`Sync` types such as `Cell` to be shared across threads leading to undefined behavior and memory corruption in concurrent programs. From fed89e1d0325f4a36ffa62f74489efe6732da633 Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Wed, 20 Jan 2021 20:28:21 +0100 Subject: [PATCH 2/2] Update RUSTSEC-0000-0000.md --- crates/may_queue/RUSTSEC-0000-0000.md | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/may_queue/RUSTSEC-0000-0000.md b/crates/may_queue/RUSTSEC-0000-0000.md index 1e9a09d..3f2a814 100644 --- a/crates/may_queue/RUSTSEC-0000-0000.md +++ b/crates/may_queue/RUSTSEC-0000-0000.md @@ -6,7 +6,6 @@ date = "2020-11-10" url = "https://github.com/Xudong-Huang/may/issues/88" categories = ["memory-corruption"] keywords = ["concurrency"] -informational = "unsound" [versions] patched = []