You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
advisoryAn advisory for a library sillybos stands in front of; needs triagelikely-not-reachedA noise filter matched: the text names code that opening a file never runs
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.
advisoryAn advisory for a library sillybos stands in front of; needs triagelikely-not-reachedA noise filter matched: the text names code that opening a file never runs
Activity