CVE-2026-85091: 
rsync vulnerability analysis and mitigation

Overview

CVE-2026-85091 is a heap buffer overflow vulnerability in the gz_vacate() function of zlib, affecting versions 1.3.1.2 through 1.3.2. It is triggered when non-blocking gzwrite() operations stall with EAGAIN and the application subsequently calls gzprintf() or gzvprintf(), causing an unchecked memmove() to write up to ~983 KB beyond the internal 16,384-byte input buffer boundary. The vulnerability was published on September 3, 2026, and assigned by VulnCheck. It carries a CVSS v3.1 score of 7.4 (High) and a CVSS v4.0 score of 8.3 (High) (GitHub Advisory, Microsoft MSRC).

Technical details

The root cause (CWE-787: Out-of-bounds Write) lies in how gz_write() handles its two input paths differently. When the write length is ≥ state->size, gz_write() sets strm->next_in directly to the caller's external buffer for a zero-copy deflate feed. If gz_comp() returns -1 due to EAGAIN on a non-blocking descriptor, gz_write() exits without resetting strm->next_in or strm->avail_in, leaving a stale external pointer. gzclearerr() only resets state->err and state->msg — it does not repair these fields. When gzprintf() is subsequently called, it invokes gz_vacate(), which contains a guard comparing pointers from two unrelated malloc allocations using a relational operator — undefined behavior per C11 §6.5.8p5. On glibc, the guard typically evaluates false, and memmove(state->in, strm->next_in, strm->avail_in) fires with avail_in up to 983,041 bytes against a 16,384-byte destination buffer. A public proof-of-concept with both pipe-based and socket-based variants is available (PoC Gist, zlib Source).

Impact

Successful exploitation results in a heap buffer overflow of up to ~983 KB of caller-controlled data written past the state->in allocation, causing an unconditional process crash (high availability impact) on glibc systems. The overflow source is the application's own buffer, meaning heap data adjacent to state->in — including deflate internal state and other heap allocations — is overwritten with caller-controlled content, creating a potential for arbitrary code execution (high integrity impact). Crash dumps may expose heap contents including sensitive application data (confidentiality risk). The vulnerability is scoped to the affected process; no privilege boundary crossing occurs (PoC Gist).

Exploitability

A public proof-of-concept exists in the form of two C programs (pipe-based and socket-based) published on GitHub Gist, demonstrating the overflow with ASAN output confirming a WRITE of 983,041 bytes (PoC Gist). The NVD SSVC assessment classifies exploitation as 'poc' with technical impact rated 'total', though automatable is 'no' due to the three required preconditions. The EPSS score is approximately 0.0044 (0.44%), indicating low current exploitation probability. There is no evidence of in-the-wild exploitation or CISA KEV catalog inclusion at this time. Three conditions must hold simultaneously: the application must use a non-blocking file descriptor for gzip output, the stalling gzwrite() call must carry at least state->size bytes, and gzprintf() must be called after gzclearerr() on the same handle before the descriptor drains.

Exploitation steps

  1. Identify a target application: Find a server-side application that uses zlib 1.3.1.2–1.3.2 to write gzip-compressed data over a non-blocking network socket (e.g., a web server streaming compressed responses).
  2. Establish a connection and stall the receive buffer: Connect to the target service and stop reading data from the socket, causing the kernel send buffer to fill. This creates back-pressure that causes gz_comp() to return EAGAIN when the server calls gzwrite() with a large buffer (≥ state->size bytes, typically 8,192 or 16,384 bytes).
  3. Trigger the stale pointer condition: The server's gzwrite() call exits early via the state->again path, leaving strm->next_in pointing to the caller's external buffer and strm->avail_in holding the unconsumed byte count. The server may call gzclearerr() to clear the error state, but this does not reset the stale pointer.
  4. Trigger gz_vacate() via gzprintf(): Resume reading just enough data to allow the server to proceed, then stall again. When the server calls gzprintf() or gzvprintf() on the same gzip handle (e.g., to append a chunk boundary), gz_vacate() is invoked with the stale external pointer still in place.
  5. Heap buffer overflow fires: The guard in gz_vacate() at line 387 evaluates false (due to undefined pointer comparison behavior on glibc), and memmove(state->in, strm->next_in, strm->avail_in) writes up to ~983 KB of caller-controlled data past the 16,384-byte state->in allocation, crashing the process or potentially enabling code execution depending on heap layout (PoC Gist, zlib Source).

Indicators of compromise

  • Network: Connections from a remote peer that establish a session and then stop reading data (zero-window or stalled TCP receive), particularly against services known to use zlib gzip streaming; repeated connection attempts that stall mid-transfer.
  • Process: Unexpected SIGSEGV or SIGABRT crashes in server processes that use zlib for gzip output; crash dumps showing a faulting address immediately after a 16,384-byte heap allocation attributed to gz_init in gzwrite.c.
  • Logs: Application error logs showing Z_ERRNO errors with EAGAIN/EWOULDBLOCK followed by subsequent gzprintf-related errors or abrupt process termination; ASAN output containing heap-buffer-overflow WRITE in gz_vacate gzwrite.c:393 if the binary is instrumented.
  • File System: Core dump files generated by the affected server process, potentially containing heap contents including sensitive application data from the overwritten region.

Mitigation and workarounds

Update zlib to a version newer than 1.3.2 once an official patch is released by the zlib project. Microsoft has issued a security update addressing this CVE as part of its September 2026 Patch Tuesday for affected Microsoft products (Microsoft MSRC). As a workaround, applications using zlib for gzip output should avoid calling gzprintf() or gzvprintf() after a non-blocking write stall without fully resetting the gzip stream state, or should avoid using non-blocking file descriptors with the gz* API. Vendors and downstream distributors (e.g., Yocto Project, Chainguard) should apply available patches from their respective security channels. Review all applications bundling zlib 1.3.1.2–1.3.2 and prioritize updating those that use non-blocking gzip write operations.

Community reactions

Mark Adler (zlib maintainer) engaged directly with the PoC author on the GitHub Gist, asking clarifying questions about the F_SETPIPE_SZ requirement for macOS reproducibility, indicating active upstream awareness of the issue (PoC Gist). The vulnerability was covered in BleepingComputer's September 2026 Patch Tuesday roundup, which noted 966 flaws addressed by Microsoft. The Yocto Project security mailing list discussed the issue across multiple threads, reflecting concern among embedded Linux distributors. VulnCheck served as the assigning CNA, and the issue was tracked by ENISA's EUVD database as EUVD-2026-70301.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

zlib

Affected

sid

zlib: 1:1.3.dfsg+really1.3.2-4

Fixed

trixie

zlib: 1:1.3.dfsg+really1.3.1-1+deb13u1

Fixed

Ubuntu

Fixed

bionic (esm-apps)

zsync

Not Affected

bionic (esm-infra)

rsync

Affected

devel

zlib

Affected

focal (esm-apps)

zsync

Not Affected

focal (esm-infra)

rsync

Affected

jammy

zlib

Not Affected

jammy (esm-apps)

zsync

Not Affected

noble

zlib: 1:1.3.dfsg-3.1ubuntu2.3

Fixed

RHEL / CentOS

Affected

OpenShift

Not Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Alpine

Fixed

edge

zlib: 1.3.2-r1

Fixed

v3.21

zlib: 1.3.2-r1

Fixed

v3.22

zlib: 1.3.2-r1

Fixed

v3.23

zlib: 1.3.2-r1

Fixed

Source: This report was generated using AI

Related rsync vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-119741HIGH8.7
  • rsync logorsync
  • net-misc/rsync
NoYesNov 03, 2026
CVE-2026-70464HIGH8.7
  • rsync logorsync
  • rsync-rrsync
NoYesAug 13, 2026
CVE-2026-70463HIGH8.6
  • rsync logorsync
  • cpe:2.3:a:google:cloud_sql_sqlserver
NoYesAug 13, 2026
CVE-2026-85091HIGH8.3
  • rsync logorsync
  • minizip-compat
NoYesSep 03, 2026
CVE-2026-18743LOW2.5
  • rsync logorsync
  • popt
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management