CVE-2026-85091: libs-sys: heap buffer overflow

Published Sep 3, 2026
·
Updated

zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gzwrite() returns without resetting strm.nextin, 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.

Other sources

zlib 1.3.1.2 through 1.3.2 Heap Buffer Overflow via gzvacate

— Microsoft

zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gzvacate() 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.

— Ubuntu

Affected Software

25 affected componentsFixes available
zlib zlib>=1.3.1.2<=1.3.2
All of the following
azurelinux/zlib<1.3.2-2
1.3.2-2
Microsoft Azure Linux=3.0
alpine/zlib<1.3.2-r1
1.3.2-r1
alpine/zlib<1.3.2-r1
1.3.2-r1
alpine/zlib<1.3.2-r1
1.3.2-r1
alpine/zlib<1.3.2-r1
1.3.2-r1
rust/libz-sys>=1.1.25<1.1.33
1.1.33
ubuntu/klibc*
ubuntu/zlib*
ubuntu/klibc*
ubuntu/rsync*
ubuntu/klibc*
ubuntu/rsync*
ubuntu/klibc*
ubuntu/rsync*
ubuntu/zlib<1:1.3.dfsg-3.1ubuntu2.3
1:1.3.dfsg-3.1ubuntu2.3
ubuntu/klibc*
ubuntu/zlib<1:1.3.dfsg+really1.3.2-3ubuntu1.1
1:1.3.dfsg+really1.3.2-3ubuntu1.1
ubuntu/zsync*
ubuntu/zlib<1:1.3.dfsg+really1.3.1-1ubuntu3.2
1:1.3.dfsg+really1.3.1-1ubuntu3.2
debian/zlib<1:1.2.13.dfsg-1+deb12u1
1:1.2.13.dfsg-1+deb12u1
debian/zlib<1:1.3.dfsg+really1.3.1-1+deb13u1
1:1.3.dfsg+really1.3.1-1+deb13u1
debian/zlib<1:1.3.dfsg+really1.3.2-4
1:1.3.dfsg+really1.3.2-4
debian/zlib<=1:1.2.13.dfsg-1
1:1.2.13.dfsg-1+deb12u11:1.3.dfsg+really1.3.1-1+deb13u11:1.3.dfsg+really1.3.2-4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/zlib to a version that resolves this vulnerability.

    Fixed in 1.3.2-2
  2. Upgrade

    Upgrade alpine/zlib to a version that resolves this vulnerability.

    Fixed in 1.3.2-r1
  3. Upgrade

    Upgrade rust/libz-sys to a version that resolves this vulnerability.

    Fixed in 1.1.33
  4. Upgrade

    Upgrade ubuntu/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.3.dfsg-3.1ubuntu2.3
  5. Upgrade

    Upgrade ubuntu/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.3.dfsg+really1.3.2-3ubuntu1.1
  6. Upgrade

    Upgrade ubuntu/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.3.dfsg+really1.3.1-1ubuntu3.2
  7. Upgrade

    Upgrade debian/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.2.13.dfsg-1+deb12u1
  8. Upgrade

    Upgrade debian/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.3.dfsg+really1.3.1-1+deb13u1
  9. Upgrade

    Upgrade debian/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.3.dfsg+really1.3.2-4
  10. Upgrade

    Upgrade debian/zlib to a version that resolves this vulnerability.

    Fixed in 1:1.2.13.dfsg-1+deb12u1Fixed in 1:1.3.dfsg+really1.3.1-1+deb13u1Fixed in 1:1.3.dfsg+really1.3.2-4
  11. Operational

    For zlib versions before 1.3.1.2, call gzclearerr() after a failed write.

Event History

Sep 3, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·01:04 AM
Data Sourced
via MITRE·01:04 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:06 PM
DescriptionSeverityWeakness
Event
via NVD·01:06 PM
Exploit Published
via CISA·01:21 PM
Sep 5, 2026
Data Sourced
via Microsoft·08:25 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:25 AM
Affected Software
Updated
via Microsoft·08:25 AM
Affected Software
Oct 22, 2026
Updated
via Ubuntu·12:00 AM
Description
Nov 6, 2026
Data Sourced
via OSV·01:49 PM
Affected Software
Nov 7, 2026
Updated
via OSV·11:00 AM
Affected Software
Nov 9, 2026
Updated
via OSV·12:52 PM
Affected Software
Nov 11, 2026
Updated
via OSV·09:41 AM
Affected Software
Advisory Published
via OSV·12:00 PM
Nov 13, 2026
Updated
via MITRE·02:15 PM
Description
Updated
via NVD·03:17 PM
Description
Nov 14, 2026
Updated
via OSV·06:00 AM
Description
Nov 17, 2026
Updated
via OSV·06:23 PM
Affected Software
Nov 18, 2026
Updated
via OSV·02:19 PM
Description
Nov 29, 2026
Updated
via OSV·03:00 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

Which application workflows are exposed to this issue?

Applications using affected zlib versions are exposed when they perform non-blocking gzwrite() operations, encounter a write stall, and subsequently call gzprintf() or gzvprintf(). The issue involves stale external buffer pointers during that sequence.

2

Does exploitation require authentication or user interaction?

The supplied severity vector indicates network attackability with no privileges required and no user interaction required. It also rates attack complexity as high.

3

How can I determine whether my deployment is affected?

Verify whether the deployed zlib version is from 1.3.1.2 through 1.3.2 and whether the application uses the affected non-blocking gzwrite() workflow followed by gzprintf() or gzvprintf() after write stalls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203