| Name | CVE-2026-85091 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6613-1 |
| Debian Bugs | 1146895 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| zlib (PTS) | bookworm | 1:1.2.13.dfsg-1 | vulnerable |
| trixie, trixie (security) | 1:1.3.dfsg+really1.3.1-1+deb13u1 | fixed | |
| forky, sid | 1:1.3.dfsg+really1.3.2-4 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| zlib | source | trixie | 1:1.3.dfsg+really1.3.1-1+deb13u1 | DSA-6613-1 | ||
| zlib | source | (unstable) | 1:1.3.dfsg+really1.3.2-4 | 1146895 |
https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490
https://github.com/madler/zlib/issues/1310
https://github.com/madler/zlib/pull/1317
Fixed by: https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148 (v1.4)
Discussion on affected range: https://github.com/madler/zlib/issues/1310#issuecomment-5979623265
Support non-blocking devices in the gz* routines introduced with:
https://github.com/madler/zlib/commit/81cc0bebedd935daeb81b0b6e475d8786b51af3d (v1.3.1.2)