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.
Configurations

No configuration.

History

13 Nov 2026, 15:17

Type Values Removed Values Added
Summary (en) zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() function when processing non-blocking gzwrite() operations with stale external buffer pointers. Attackers can trigger the overflow by calling gzprintf() or gzvprintf() after a write stall, causing an unchecked memmove() to write beyond the internal input buffer boundary. (en) 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.
References
  • () https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148 -

03 Sep 2026, 13:06

Type Values Removed Values Added
New CVE

Information

Published : 2026-09-03 13:06

Updated : 2026-11-13 15:17


NVD link : CVE-2026-85091

Mitre link : CVE-2026-85091

CVE.ORG link : CVE-2026-85091


JSON object : View

Products Affected

No product.

CWE
CWE-787

Out-of-bounds Write