Incorrect Calculation of Buffer Size in Zlib - #VU171582
Published: December 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt memory in an application that uses zlib to resynchronize a compressed stream.
The vulnerability exists due to incorrect buffer sizing in inflateSync() when resynchronizing a stream whose decompression window size is not yet known. A remote attacker can supply compressed input that reaches the affected recovery path to potentially cause writes past the allocated window and corrupt application memory.