# GHSA-7mcq-f592-pf7v: Slice Ring Buffer and Slice Deque contains four unique double-free vulnerabilities triggered through safe APIs

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-06-16T12:00:00.000Z
- Modified: 2025-10-28T06:29:23.693Z
- Also known as: RUSTSEC-2025-0044
- Weaknesses: CWE-415

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- slice-deque (crates.io): up to 0.3.0
- slice-ring-buffer (crates.io): up to 0.3.4; from 0.0.0-0

## References

- <https://github.com/LiquidityC/slice_ring_buffer/issues/12> (report, web)
- <https://github.com/gnzlbg/slice_deque> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0044.html> (advisory, web)
- <https://crates.io/crates/slice-ring-buffer> (package)

## Sources

- GitHub Advisory Database: [GHSA-7mcq-f592-pf7v](https://github.com/advisories/GHSA-7mcq-f592-pf7v), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0044](https://rustsec.org/advisories/RUSTSEC-2025-0044.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-7mcq-f592-pf7v · Whole record: https://cve.day/GHSA-7mcq-f592-pf7v.json · Rebuilt by cve.day 2026-11-25T22:56:43.259Z
