From 1e1e0538a83032a44a33a7c4e596ff9e4dc47b17 Mon Sep 17 00:00:00 2001 From: JOE1994 Date: Tue, 19 Jan 2021 10:45:33 -0500 Subject: [PATCH 1/2] eventio: Input' can send non-Send types to other threads --- crates/eventio/RUSTSEC-0000-0000.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 crates/eventio/RUSTSEC-0000-0000.md diff --git a/crates/eventio/RUSTSEC-0000-0000.md b/crates/eventio/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..eb49727 --- /dev/null +++ b/crates/eventio/RUSTSEC-0000-0000.md @@ -0,0 +1,20 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "eventio" +date = "2020-12-20" +url = "https://github.com/petabi/eventio/issues/33" +categories = ["memory-corruption"] + +[versions] +patched = [] +``` + +# Soundness issue: Input can be misused to create data race to an object + +`Input` implements `Send` without requiring `R: Send`. + +Affected versions of this crate allows users to send non-Send types to other threads, +which can lead to undefined behavior such as data race and memory corruption. + +The flaw was corrected in the PR(https://github.com/petabi/eventio/pull/34) by adding `R: Send` bound to the `Send` impl of `Input`. From 77017364dbdec309451f04131fe49b8531890669 Mon Sep 17 00:00:00 2001 From: Youngsuk Kim Date: Tue, 19 Jan 2021 20:52:47 -0500 Subject: [PATCH 2/2] Fix for eventio published in new version 0.5.1 --- crates/eventio/RUSTSEC-0000-0000.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eventio/RUSTSEC-0000-0000.md b/crates/eventio/RUSTSEC-0000-0000.md index eb49727..c1cbdcb 100644 --- a/crates/eventio/RUSTSEC-0000-0000.md +++ b/crates/eventio/RUSTSEC-0000-0000.md @@ -7,7 +7,7 @@ url = "https://github.com/petabi/eventio/issues/33" categories = ["memory-corruption"] [versions] -patched = [] +patched = [">= 0.5.1"] ``` # Soundness issue: Input can be misused to create data race to an object @@ -17,4 +17,4 @@ patched = [] Affected versions of this crate allows users to send non-Send types to other threads, which can lead to undefined behavior such as data race and memory corruption. -The flaw was corrected in the PR(https://github.com/petabi/eventio/pull/34) by adding `R: Send` bound to the `Send` impl of `Input`. +The flaw was corrected in version 0.5.1 by adding `R: Send` bound to the `Send` impl of `Input`.