- Reported
-
- Issued
-
- Package
-
libz-sys
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#zlib
#gzwrite
#gzprintf
#heap-overflow
#non-blocking
- Aliases
-
- References
-
- Patched
-
- Unaffected
-
Description
zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() 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.
Advisory available under CC0-1.0
license.