Skip to content

CVE-2026-76844: zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns withou… #21

Closed

Description

@github-actions
Advisory CVE-2026-76844
Aliases none
Package zlib (Debian)
Published 2026-08-24
Severity CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
OSV DEBIAN-CVE-2026-76844

Labels

  • likely-not-reached: the words save/encode/write/append: write, writes

Summary

(none given)

Details

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.

Triage

Would a bounded header check, or what pdfinfo, pdfimages -list or
pdffonts report, have kept the triggering file from the decoder? Answer
that in a line, tick one bucket, and close the issue; the definitions and
what each bucket leads to are in docs/advisories/README.md.

  • A already refused by an existing check
  • B preventable from a header field our readers can see: a policy field and a corpus case
  • B2 preventable only by a coarse policy on what pdfimages -list or pdffonts report
  • C needs decoding to detect; out of this library's reach
  • D reaches pdfinfo itself
  • N the check is not in the path: no file carries the trigger
  • U a reserved CVE with no text yet; re-checked weekly

Finding: N. In zlib's gz file layer (gz_write), triggered by the program's own failed write(), not by anything a file carries; nothing in the image stack calls that layer (libpng and libtiff use the raw deflate stream, Pillow references no gz write function, Python's zlib has no gz API). A sibling of CVE-2026-85091. Recorded in #22.

Activity

  1. added
    advisory
    likely-not-reached
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    advisorylikely-not-reached

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions