| Name | CVE-2026-6100 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4532-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| pypy3 (PTS) | bullseye | 7.3.5+dfsg-2+deb11u2 | fixed |
| bullseye (security) | 7.3.5+dfsg-2+deb11u5 | fixed | |
| bookworm | 7.3.11+dfsg-2+deb12u3 | fixed | |
| trixie | 7.3.19+dfsg-2 | fixed | |
| forky | 7.3.21+dfsg-4 | fixed | |
| sid | 7.3.22+dfsg-1 | fixed | |
| python2.7 (PTS) | bullseye | 2.7.18-8+deb11u1 | vulnerable |
| python3.11 (PTS) | bookworm | 3.11.2-6+deb12u6 | vulnerable |
| bookworm (security) | 3.11.2-6+deb12u3 | vulnerable | |
| python3.13 (PTS) | trixie | 3.13.5-2 | vulnerable |
| forky, sid | 3.13.12-1 | vulnerable | |
| python3.14 (PTS) | forky, sid | 3.14.4-2 | vulnerable |
| python3.9 (PTS) | bullseye | 3.9.2-1 | vulnerable |
| bullseye (security) | 3.9.2-1+deb11u6 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| pypy3 | source | (unstable) | (not affected) | |||
| python2.7 | source | bullseye | (unfixed) | end-of-life | ||
| python2.7 | source | (unstable) | (unfixed) | |||
| python3.11 | source | (unstable) | (unfixed) | |||
| python3.13 | source | (unstable) | (unfixed) | |||
| python3.14 | source | (unstable) | (unfixed) | |||
| python3.9 | source | bullseye | 3.9.2-1+deb11u6 | DLA-4532-1 | ||
| python3.9 | source | (unstable) | (unfixed) |
[bullseye] - python2.7 <end-of-life> (not supported in bullseye)
- pypy3 <not-affected> (pypy uses a different implementation in pure Python)
https://mail.python.org/archives/list/security-announce@python.org/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/
https://github.com/python/cpython/issues/148395
https://github.com/python/cpython/pull/148396
Fixed by: https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2 (main)
Fixed by: https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d (3.14 branch)
Fixed by: https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20 (3.13 branch)
Fixed by: https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8b (3.11 branch)