REDHAT-BUG-2427688: Buffer Overflow
zlib versions up to and including 1.3.1.2 contain a global buffer overflow in the untgz utility. The TGZfname() function copies an attacker-supplied archive name from argv[] into a fixed-size 1024-byte static global buffer using an unbounded strcpy() call without length validation. Supplying an archive name longer than 1024 bytes results in an out-of-bounds write that can lead to memory corruption, denial of service, and potentially code execution depending on compiler, build flags, architecture, and memory layout. The overflow occurs prior to any archive parsing or validation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
zlib untgz utilityto a version that resolves this vulnerability.Fixed in 1.3.1.2
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2427688?
The severity of REDHAT-BUG-2427688 is classified as high with a score of 7.
How do I fix REDHAT-BUG-2427688?
To fix REDHAT-BUG-2427688, you should upgrade to a patched version of zlib that addresses the buffer overflow vulnerability.
What impact does REDHAT-BUG-2427688 have on systems?
REDHAT-BUG-2427688 can allow an attacker to execute arbitrary code due to the global buffer overflow in the untgz utility.
Which versions of zlib are affected by REDHAT-BUG-2427688?
zlib versions up to and including 1.3.1.2 are affected by REDHAT-BUG-2427688.
What type of vulnerability is REDHAT-BUG-2427688 classified as?
REDHAT-BUG-2427688 is classified as a Buffer Overflow vulnerability.