Skip to content

RUSTSEC-2026-0396: Seekable reads a NULL or out-of-bounds seek table #39

Closed

Description

@github-actions

Seekable reads a NULL or out-of-bounds seek table

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

Seekable did not record whether it was initialized. On a fresh Seekable,
or one whose init_buff() failed, decompress, offset_to_frame_index and
frame_decompressed_size made the C library read a NULL seek table. After a
failed re-initialization, decompress returned data from the refused buffer
using the previous seek table.

Separately, frame_decompressed_size(num_frames()), on Seekable and
SeekTable, read one entry past the end of the seek table.

The flaw was corrected by refusing to use a Seekable until an
initialization succeeded, and by checking the frame index.

See advisory page for additional details.

Activity

  1. adwk67 commented on Oct 27, 2026

    @adwk67
    Member

    fixed by #42

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions