Email me

Rust advisories / slice-ring-buffer

Vulnerability HighRUSTSEC-2025-0044 · slice-ring-buffer

RUSTSEC-2025-0044: Four unique double-free vulnerabilities triggered via safe APIs

Short answerA security vulnerability in the slice-ring-buffer crate: Four unique double-free vulnerabilities triggered via safe APIs. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.

Crateslice-ring-buffer
TypeVulnerability (memory-corruption)
Affected versionsEvery version.
Fixed innone
SeverityHigh (GitHub rating)
Published2025-06-16
Last changed2025-10-28
Also known asGHSA-7mcq-f592-pf7v
Affected functionsslice_ring_buffer::IntoIter::clone, slice_ring_buffer::SliceRingBuffer::extend_from_slice, slice_ring_buffer::SliceRingBuffer::insert, slice_ring_buffer::SliceRingBuffer::shrink_to_fit

What to do

  1. Find who pulls it in: cargo tree -i slice-ring-buffer.
  2. Avoid the affected API (slice_ring_buffer::IntoIter::clone, slice_ring_buffer::SliceRingBuffer::extend_from_slice, slice_ring_buffer::SliceRingBuffer::insert, slice_ring_buffer::SliceRingBuffer::shrink_to_fit), or replace the crate.

Details from the advisory

The crate slice-ring-buffer was developed as a fork of slice-deque to continue maintenance and provide security patches, since the latter has been officially unmaintained (RUSTSEC-2020-0158).

While slice-ring-buffer has addressed some previously reported memory safety issues inherited from its fork origin (RUSTSEC-2021-0047), 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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ