REDHAT-BUG-2457932: Use After Free

Published Apr 13, 2026
·
Updated

Use-after-free (UAF) was possible in the lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile when a memory allocation fails with a MemoryError and the decompression instance is re-used. This scenario can be triggered if the process is under memory pressure. The fix cleans up the dangling pointer in this specific error condition.

The vulnerability is only present if the program re-uses decompressor instances across multiple decompression calls even after a MemoryError is raised during decompression. Using the helper functions to one-shot decompress data such as lzma.decompress(), bz2.decompress(), gzip.decompress(), and zlib.decompress() are not affected as a new decompressor instance is used per call. If the decompressor instance is not re-used after an error condition, this usage is similarly not vulnerable.

Affected Software

3 affected components
Python Python (lzma.LZMADecompressor)
Python Python (bz2.BZ2Decompressor)
Python Python (gzip.GzipFile)

Event History

Apr 13, 2026
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2457932?

The severity of REDHAT-BUG-2457932 is considered high due to the potential for a use-after-free vulnerability that can be exploited under memory pressure.

2

How do I fix REDHAT-BUG-2457932?

To fix REDHAT-BUG-2457932, update your Python installation to the latest version that addresses this memory allocation issue.

3

Which software is affected by REDHAT-BUG-2457932?

REDHAT-BUG-2457932 affects the lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile components of Python.

4

What could happen if REDHAT-BUG-2457932 is exploited?

If exploited, REDHAT-BUG-2457932 could lead to unexpected application behavior, crashes, or the potential for remote code execution.

5

How can I determine if my environment is impacted by REDHAT-BUG-2457932?

You can determine if your environment is impacted by REDHAT-BUG-2457932 by checking if your application uses the affected components under conditions of high memory usage.

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