Vulnerability
CVE-2026-85091
zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then derives a position from the stale pointer and writes past a heap allocation; any write() failure reaches it, including EPIPE on a blocking descriptor, and in versions before 1.3.1.2 the failed write must be followed by a gzclearerr() call.
23 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2026-85091
zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then…
- ALPINE-EDGE-CVE-2026-85091
-
AZL-99090
CVE-2026-85091 affecting package zlib for versions less than 1.3.2-2
-
AZL-99174
CVE-2026-85091 affecting package cloud-hypervisor 52.0.187-1
-
AZL-99234
CVE-2026-85091 affecting package kata-containers 4.1.0.kata2-1
-
AZL-99276
CVE-2026-85091 affecting package mariadb 10.11.18-1
-
AZL-99294
CVE-2026-85091 affecting package mysql 8.0.46-1
- CGA-495r-7mf9-p4m3
- CGA-4wpx-467r-fh3j
- CGA-64hx-6x96-r8f7
- CGA-6ph6-75jp-484p
- CGA-7955-fhww-9pv3
- CGA-8pq5-rm52-wxcm
- CGA-jq86-8338-vxq7
- CGA-m46g-37hm-gpgh
- CGA-q5h9-37rw-9fp8
- CGA-q858-gr6r-ppw3
-
DEBIAN-CVE-2026-85091
zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then…
-
DSA-6613-1
zlib - security update
-
RUSTSEC-2026-0544
libs-sys: heap buffer overflow
-
UBUNTU-CVE-2026-85091
zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then…
-
USN-8954-1
zlib vulnerability
-
openSUSE-SU-2026:12206-1
trivy-0.76.0-1.1 on GA media
References
- https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490
- https://github.com/madler/zlib
- https://github.com/madler/zlib/blob/v1.3.2/gzwrite.c#L393
- https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148
- https://www.vulncheck.com/advisories/zlib-1.3.1.2-through-1.3.2-heap-buffer-overflow-via-gz-vacate