Skip to content

RUSTSEC-2026-0397: OutBuffer::around_pos exposes uninitialized memory #66

Open

Description

@github-actions

OutBuffer::around_pos exposes uninitialized memory

Details
Status unsound
Package zstd-safe
Version 7.2.4
URL gyscos/zstd-rs@5827de2
Date 2026-10-16

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.

See advisory page for additional details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions