# RUSTSEC-2026-0544: libs-sys: heap buffer overflow

- Database: RustSec
- Published: 2026-11-11
- Modified: 2026-11-17

## Tracked as

- [CVE-2026-85091](https://cve.now/CVE-2026-85091.md): zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write

## Affected versions

- libz-sys (crates.io): from 1.1.25, fixed in 1.1.33

## Description

zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() function when processing non-blocking gzwrite() operations with stale external buffer pointers. Attackers can trigger the overflow by calling gzprintf() or gzvprintf() after a write stall, causing an unchecked memmove() to write beyond the internal input buffer boundary.

## References

- https://crates.io/crates/libz-sys
- https://rustsec.org/advisories/RUSTSEC-2026-0544.html
- https://github.com/madler/zlib/issues/1310
- https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148
- https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4
- https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512

Page: https://cve.now/RUSTSEC-2026-0544

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
