CVE-2026-85091

NameCVE-2026-85091
Descriptionzlib 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6613-1
Debian Bugs1146895

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
zlib (PTS)bookworm1:1.2.13.dfsg-1vulnerable
trixie, trixie (security)1:1.3.dfsg+really1.3.1-1+deb13u1fixed
forky, sid1:1.3.dfsg+really1.3.2-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
zlibsourcetrixie1:1.3.dfsg+really1.3.1-1+deb13u1DSA-6613-1
zlibsource(unstable)1:1.3.dfsg+really1.3.2-41146895

Notes

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)

Search for package or bug name: Reporting problems