CVE-2026-6100 Details
Description
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.
A use-after-free vulnerability has been identified in the CPython implementation of the LZMA, BZ2, and Gzip decompressor classes. This vulnerability occurs when a memory allocation fails, raising a MemoryError, and the decompressor instance is reused. Under memory pressure, this scenario can be exploited, leading to potential memory corruption. The issue is not present when using the one-shot decompression functions, as they create a new decompressor instance for each call.
The vulnerability has been fixed in the CPython repository. Users should update to the latest version of Python where this issue has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-825 | Expired Pointer Dereference | redhat-SADP |
Affected Products
No affected product data is available for this CVE.
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 13, 2026 | CVE Modified | [email protected] |
| Aug 10, 2026 | CVE Modified | redhat-SADP |
| Aug 5, 2026 | CVE Modified | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Apr 14, 2026 | CVE Modified | [email protected] |
| Apr 13, 2026 | CVE Modified | CVE |
| Apr 13, 2026 | New CVE Received | [email protected] |