REDHAT-BUG-2494159: Buffer Overflow

Published Jun 29, 2026
·
Updated

GNU gzip contains a global buffer overflow vulnerability in the LZH decompression logic caused by improper reuse of shared global state between different decompression formats within a single execution. GNU gzip maintains a global array that is shared across the LZ77, LZW, and LZH decompression routines and is not reinitialized between files processed in the same invocation. By decompressing a specially crafted LZW file followed by a specially crafted LZH file in a single gzip -d command, an attacker can poison the shared global state and subsequently trigger an out‑of‑bounds read in the LZH decoder. The LZH decompression logic follows stale values left in the shared array, causing reads past the end of the allocated global buffer.

This issue has been fixed in the commit 63dbf6b3b9e6e781df1a6a64e609b10e23969681

Affected Software

1 affected component
GNU gzip

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 63dbf6b3b9e6e781df1a6a64e609b10e23969681

Event History

Jun 29, 2026
Data Sourced
via Red Hat·12:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input and invocation sequence are required to trigger the issue?

An attacker needs to cause a single `gzip -d` invocation to process a specially crafted LZW file followed by a specially crafted LZH file. The first file poisons shared global state, and the second causes the LZH decoder to read beyond the global buffer.

2

Is decompressing only one crafted archive enough to trigger it?

No. The described condition depends on state being retained between different files processed in the same invocation, specifically a crafted LZW file followed by a crafted LZH file.

3

What can be done if an update cannot be applied immediately?

Avoid processing untrusted LZW and LZH compressed files together in the same `gzip -d` command. Decompress such files in separate invocations so shared decompression state is not carried from an LZW input to an LZH input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203