cve.bz

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

8.3 highEPSS 0.5%Fix available

High (8.3) in zlib zlib. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in libz-sys 1.1.33.

On this page
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.

Severity

CVSS 4.0

8.3 high
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

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
Assigned by
VulnCheck (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-85091 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-85091?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-85091?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-85091 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
zlibfrom 1.2.11 through 1.3.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
RUSTSEC-2026-0544crates.iolibz-sys>=1.1.25 <1.1.331.1.33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12zlibno fix listedDEBIAN-CVE-2026-85091
Debian13zlib1:1.3.dfsg+really1.3.1-1+deb13u1DEBIAN-CVE-2026-85091 DSA-6613-1
Debian14zlib1:1.3.dfsg+really1.3.2-4DEBIAN-CVE-2026-85091
Ubuntu24.04:LTSzlib1:1.3.dfsg-3.1ubuntu2.3UBUNTU-CVE-2026-85091 USN-8954-1
Ubuntu26.04:LTSzlib1:1.3.dfsg+really1.3.1-1ubuntu3.2UBUNTU-CVE-2026-85091 USN-8954-1
Ubuntu26.10klibc, zsyncno fix listedUBUNTU-CVE-2026-85091
Ubuntu26.10zlib1:1.3.dfsg+really1.3.2-3ubuntu1.1UBUNTU-CVE-2026-85091 USN-8954-1
UbuntuPro:14.04:LTSzlib, klibcno fix listedUBUNTU-CVE-2026-85091
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSklibc, rsyncno fix listedUBUNTU-CVE-2026-85091
openSUSETumbleweedtrivy0.76.0-1.1openSUSE-SU-2026:12206-1
Alpinev3.21, v3.22, v3.23 and 1 morezlib1.3.2-r1ALPINE-CVE-2026-85091
Azure Linux3cloud-hypervisorno fix listedAZL-99174
Azure Linux3kata-containersno fix listedAZL-99234
Azure Linux3mariadbno fix listedAZL-99276
Azure Linux3mysqlno fix listedAZL-99294
Azure Linux3zlib1.3.2-2AZL-99090
Alpaquita25, streamzlib1.3.2-r1BELL-CVE-2026-85091
BellSoft Hardened Containers25, streamzlib1.3.2-r1BELL-CVE-2026-85091

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important severity because memory corruption within a widely linked core library can potentially result in arbitrary code execution or service crashes without requiring authentication. Exploitation requires specific timing conditions involving stalled non-blocking output routines, raising the attack complexity. However, because zlib is embedded across numerous network services and system utilities in Red Hat enterprise environments, applications handling untrusted data streams under asynchronous I/O could expose the underlying host to severe compromise.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-85091.

References

Check your stackJSON