RUSTSEC-2026-0398: `Seekable::decompress` sets a `Vec` length beyond its capacity for offsets past the end
13 affectedZSTD_seekable_decompress shortens the requested length to the end of the
data without checking that the offset is before it. For an offset past the
end, it returns a wrapped-around length without writing anything, and
Seekable::decompress passed that length to Vec::set_len.
With the seekable feature, whoever supplies the archive, or chooses the
offset, can leave the caller's Vec<u8> with a length far beyond its
capacity. Reading it then discloses neighbouring heap memory, and appending
to it corrupts memory. Offsets near u64::MAX can also hang the call.
The flaw was corrected by clamping requests to the end of the data, and by checking every count reported by the C library against the buffer capacity.
Affected Packages
zstd-safe 7.2.4
debian-repro-status 0.4.0-3
zstd-safe 7.2.4
doxx 0.1.4+ds-1
zstd-safe 7.2.4
git-cinnabar 0.7.3-2+b2
affected
⚠️
librust-zstd-safe-dev 7.2.4-1+b1
zstd-safe 7.2.4
miniserve 0.35.0-6
zstd-safe 7.2.4
protonup-rs 0.15.0-1+b2
zstd-safe 7.2.4
python3-polars 2.1.0-1
zstd-safe 7.2.4
rebuildctl 0.28.0-2
zstd-safe 7.2.4
rebuilderd 0.28.0+ds-2+b2
zstd-safe 7.2.4
rebuilderd-worker 0.28.0-1+b2
zstd-safe 7.2.4
rustup 1.27.1-8+b3
zstd-safe 7.2.4
samply 0.13.1-1+b2
zstd-safe 7.2.4
ty 0.0.85+ruff0.16.10+ds-2