Ubuntu CVE Tracker
UBUNTU-CVE-2026-6100
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.4 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.6 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:20.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.9 | All versions, no fix listed |
| Ubuntu:22.04:LTS | python3.10 | All versions before 3.10.12-1~22.04.16 (fixed in 3.10.12-1~22.04.16) |
| Ubuntu:Pro:22.04:LTS | python3.11 | All versions, no fix listed |
| Ubuntu:24.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:24.04:LTS | python3.12 | All versions before 3.12.3-1ubuntu0.15 (fixed in 3.12.3-1ubuntu0.15) |
| Ubuntu:25.10 | pypy3 | All versions, no fix listed |
| Ubuntu:25.10 | python3.13 | All versions, no fix listed |
| Ubuntu:25.10 | python3.14 | All versions, no fix listed |
| Ubuntu:26.10 | pypy3 | All versions, no fix listed |
| Ubuntu:26.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:26.04:LTS | python3.14 | All versions before 3.14.4-1ubuntu0.1 (fixed in 3.14.4-1ubuntu0.1) |