Skip to main content
← All vulnerabilities
RUSTSEC-2026-0397

`OutBuffer::around_pos` exposes uninitialized memory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.2.0
None on Exploit-DB, Metasploit or GitHub

Summary

The affected software is the Rust `OutBuffer` component used for streaming data processing, where `OutBuffer::around_pos` could be called with a position beyond the buffer's initialized length. The flaw could let safe code read leftover, uninitialized heap memory, potentially exposing sensitive data from earlier program activity.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

`OutBuffer::around_pos` accepted a position past the initialized length of a `Vec<u8>`. The next streaming call then marked everything before the position as initialized, so safe code could read stale heap memory between the vector's previous length and that position. The flaw was corrected by zero-filling that gap.

Timeline

  1. Advisory published
  2. Record last updated

Affected versions

  • zstd-safecrates.io

    From 4.0.0 · fixed in 8.2.0

References 4

crates.io

rustsec.org

GitHub · gyscos/zstd-rs