zlib 1.4 released with the following security fixes: - Non-blocking gzwrite() ha...
Harry Sintonen @harrysintonen@infosec.exchange
zlib 1.4 released with the following security fixes:
- Non-blocking gzwrite() had a buffer overflow; CVE-2026-85091 (reported by mat-mo; also TOB-ZLIB-003).
- inflateGetDictionary() could write up to 8 MB past the caller's 32K buffer (Theorem THM-ZLIB-001). This took a zlib header with an invalid window size, then inflateReset() or inflateSync(). Affects 1.3.1 and 1.3.2.
- inflateSync() before the window size was known allocated a one-byte window that could later be overrun (TOB-ZLIB-004).
- inflatePrime() could lead inflate() to read before the start of the input (TOB-ZLIB-014).
- Repeated deflatePrime() calls could write past the pending buffer (TOB-ZLIB-013).
- inflateBack() failed to detect distances too far back, and copied uninitialized memory to the output (reported by Kornel LesiĆski).
- gzseek() forward before any data was written could write uninitialized memory to the gzip output (found by Claude Opus 5.5).
- deflateResetKeep() used mid-stream could read outside the window (reported by Jason Gross).
- gzdopen() now sets close-on-exec with the correct flag (TOB-ZLIB-008).