diff --git a/crates/slice-ring-buffer/RUSTSEC-0000-0000.md b/crates/slice-ring-buffer/RUSTSEC-0000-0000.md new file mode 100644 index 000000000..0d1b99fb3 --- /dev/null +++ b/crates/slice-ring-buffer/RUSTSEC-0000-0000.md @@ -0,0 +1,27 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "slice-ring-buffer" +date = "2025-06-16" + +url = "https://github.com/LiquidityC/slice_ring_buffer/issues/12" +categories = ["memory-corruption"] +keywords = ["memory-safety", "double-free"] + +[affected.functions] +"slice_ring_buffer::SliceRingBuffer::extend_from_slice" = ["<= 0.3.4"] +"slice_ring_buffer::SliceRingBuffer::shrink_to_fit" = ["<= 0.3.4"] +"slice_ring_buffer::SliceRingBuffer::insert" = ["<= 0.3.4"] +"slice_ring_buffer::IntoIter::clone" = ["<= 0.3.4"] + +[versions] +patched = [] +``` + +# Four unique double-free vulnerabilities triggered via safe APIs + +The crate [`slice-ring-buffer`](https://crates.io/crates/slice-ring-buffer) was developed as a fork of [`slice-deque`](https://crates.io/crates/slice-deque) to continue maintenance and provide security patches, since the latter has been officially unmaintained ([RUSTSEC-2020-0158](https://rustsec.org/advisories/RUSTSEC-2020-0158.html)). + +While `slice-ring-buffer` has addressed some previously reported memory safety issues inherited from its fork origin ([RUSTSEC-2021-0047](https://rustsec.org/advisories/RUSTSEC-2021-0047.html)), it still retains multiple unresolved memory corruption vulnerabilities. + +Specifically, we have discovered four new memory safety bugs, each resulting in double-free violations that can occur when only safe APIs are invoked. These vulnerabilities correspond to four distinct safe APIs in the crate, each exposing unsound and vulnerable behavior due to incorrect usage of unsafe code internally. \ No newline at end of file