RUSTSEC-2026-0397
JSON

Not scored

`OutBuffer::around_pos` exposes uninitialized memory

Severity
Not scored
Published
Last changed

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.

Affected

Product or packageVersionsReported by
zstd-safe (crates.io)from 4.0.0 before 7.4.0, from 8.0.0-0 before 8.2.0RustSec Advisory Database

References

Sources

SourceRecordLicence
RustSec Advisory DatabaseRUSTSEC-2026-0397 changed 2026-11-02CC0-1.0