# CVE-2026-85091: zlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Write

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-09-03 · Modified: 2026-11-13
- Aliases: ALPINE-CVE-2026-85091, UBUNTU-CVE-2026-85091, DEBIAN-CVE-2026-85091, 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, USN-8954-1, RUSTSEC-2026-0544, openSUSE-SU-2026:12684-1
- Record: https://cvemate.com/vulnerability/CVE-2026-85091 · JSON: https://cvemate.com/vulnerability/CVE-2026-85091/json

## Description

```text
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.
```

## Signals

- CVSS: 8.3 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.495%, percentile 44.081%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine zlib (Alpine Linux): \< 1.3.2-r1
- chainguard minizip (Chainguard): \< 1.3.2.1\_rc20260601-r0
- chainguard zlib (Chainguard): \< 1.3.2.1\_rc20260601-r0
- chainguard zlib-dev (Chainguard): \< 1.3.2.1\_rc20260601-r0
- chainguard zlib-doc (Chainguard): \< 1.3.3-r0 \| \< 1.3.2.1\_rc20260601-r0
- chainguard zlib-static (Chainguard): \< 1.3.3-r0 \| \< 1.3.2.1\_rc20260601-r0
- wolfi minizip (Wolfi): \< 1.3.2.1\_rc20260601-r0
- wolfi zlib (Wolfi): \< 1.3.2.1\_rc20260601-r0
- wolfi zlib-dev (Wolfi): \< 1.3.2.1\_rc20260601-r0
- wolfi zlib-doc (Wolfi): \< 1.3.3-r0 \| \< 1.3.2.1\_rc20260601-r0
- wolfi zlib-static (Wolfi): \< 1.3.3-r0 \| \< 1.3.2.1\_rc20260601-r0
- Crates.Io libz-sys (Crates.Io): ≥ 1.1.25, \< 1.1.33
- debian zlib (Debian): All versions (No fix recorded) \| \< 1:1.2.13.dfsg-1+deb12u1 \| \< 1:1.3.dfsg+really1.3.1-1+deb13u1 \| \< 1:1.3.dfsg+really1.3.2-4
- ubuntu klibc (Ubuntu): All versions (No fix recorded)
- ubuntu rsync (Ubuntu): All versions (No fix recorded)
- ubuntu zlib (Ubuntu): All versions (No fix recorded) \| \< 1:1.3.dfsg-3.1ubuntu2.3 \| \< 1:1.3.dfsg+really1.3.2-3ubuntu1.1 \| \< 1:1.3.dfsg+really1.3.1-1ubuntu3.2
- ubuntu zsync (Ubuntu): All versions (No fix recorded)
- opensuse gitoxide&distro=openSUSE Tumbleweed (openSUSE): \< 0.62.0-1.1
- zlib zlib: ≥ 1.2.11, ≤ 1.3.2

## References

- <https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490>
- <https://github.com/madler/zlib/blob/v1.3.2/gzwrite.c#L393>
- <https://github.com/madler/zlib>
- <https://www.vulncheck.com/advisories/zlib-1.3.1.2-through-1.3.2-heap-buffer-overflow-via-gz-vacate>
- <https://security.alpinelinux.org/vuln/CVE-2026-85091>
- <https://ubuntu.com/security/CVE-2026-85091>
- <https://www.cve.org/CVERecord?id=CVE-2026-85091>
- <https://security-tracker.debian.org/tracker/CVE-2026-85091>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85091.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85091>
- <https://ubuntu.com/security/notices/USN-8954-1>
- <https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148>
- <https://crates.io/crates/libz-sys>
- <https://rustsec.org/advisories/RUSTSEC-2026-0544.html>
- <https://github.com/madler/zlib/issues/1310>
- <https://github.com/rust-lang/libz-sys/commit/b161d77050c00c6eeb7dd4b66ea14d4524d73dc4>
- <https://github.com/rust-lang/libz-sys/commit/8827cadbe2b560233909212527c291827fb34512>
- <https://www.suse.com/security/cve/CVE-2026-85091>

---

Data as of 2026-12-05T04:47:13.490Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
