Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions crates/slice-ring-buffer/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
```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.

Unfortunately, the maintainer doesn't have much availability to resolve these issues so there's no concrete timeline for fixes. Community contributions towards fixing these vulnerabilities would be much appreciated.