diff --git a/crates/disrustor/RUSTSEC-0000-0000.md b/crates/disrustor/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..537846a --- /dev/null +++ b/crates/disrustor/RUSTSEC-0000-0000.md @@ -0,0 +1,21 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "disrustor" +date = "2020-12-17" +url = "https://github.com/sklose/disrustor/issues/1" +categories = ["memory-corruption", "thread-safety"] + +[versions] +patched = [] +``` + +# RingBuffer can create multiple mutable references and cause data races + +The `RingBuffer` type retrieves mutable references from the `DataProvider` in a +non-atomic manner, potentially allowing the creation of multiple mutable +references. `RingBuffer` also implements the `Send` and `Sync` traits for all +types `T`. + +This allows undefined behavior from the aliased mutable references as well +as data races.