Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

`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.

Products
zstd-safe
Affected versions
Not specified
Fixed versions
8.2.0
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 14:47 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 16 Oct 2026, 12:00 UTC

`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.

osv:RUSTSEC-2026-0396

zstd-safe

Fixed versions: 8.2.0

Complete source record
{
  "id": "13b5f71589672e4f4cb19ed7b51912855b95ff2577876f788c64ed138c4efa35",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2026-0396",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "`Seekable` reads a NULL or out-of-bounds seek table",
    "summary": "`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.",
    "evidence": "osv:RUSTSEC-2026-0396",
    "products": [
      {
        "name": {
          "value": "zstd-safe",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "8.2.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2026-0396",
      "aliases": [
        "RUSTSEC-2026-0396"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "7.2.2"
                },
                {
                  "fixed": "8.2.0"
                }
              ]
            }
          ],
          "package": {
            "name": "zstd-safe",
            "purl": "pkg:cargo/zstd-safe",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0396.json",
            "categories": [
              "memory-corruption"
            ],
            "informational": "unsound"
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": [
                "zstd_safe::seekable::SeekTable::frame_decompressed_size",
                "zstd_safe::seekable::Seekable::decompress",
                "zstd_safe::seekable::Seekable::decompress_frame",
                "zstd_safe::seekable::Seekable::frame_decompressed_size",
                "zstd_safe::seekable::Seekable::offset_to_frame_index"
              ]
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-26T14:00:05.789682118Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/zstd-safe",
        "https://rustsec.org/advisories/RUSTSEC-2026-0396.html",
        "https://github.com/gyscos/zstd-rs/commit/a9626069d6f2e90b782b8f627f57a361cfe8ef85",
        "https://github.com/gyscos/zstd-rs/pull/384"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 454201,
  "published_at": "2026-10-16T12:00:00+00:00"
}