RUSTSEC-2026-0397
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 package | Versions | Reported by |
|---|---|---|
| zstd-safe (crates.io) | from 4.0.0 before 7.4.0, from 8.0.0-0 before 8.2.0 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0397 changed 2026-11-02 | CC0-1.0 |