CVE-2026-6100

NameCVE-2026-6100
DescriptionUse-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4532-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypy3 (PTS)bullseye7.3.5+dfsg-2+deb11u2fixed
bullseye (security)7.3.5+dfsg-2+deb11u5fixed
bookworm7.3.11+dfsg-2+deb12u3fixed
trixie7.3.19+dfsg-2fixed
forky7.3.21+dfsg-4fixed
sid7.3.22+dfsg-1fixed
python2.7 (PTS)bullseye2.7.18-8+deb11u1vulnerable
python3.11 (PTS)bookworm3.11.2-6+deb12u6vulnerable
bookworm (security)3.11.2-6+deb12u3vulnerable
python3.13 (PTS)trixie3.13.5-2vulnerable
forky, sid3.13.12-1vulnerable
python3.14 (PTS)forky, sid3.14.4-2vulnerable
python3.9 (PTS)bullseye3.9.2-1vulnerable
bullseye (security)3.9.2-1+deb11u6fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypy3source(unstable)(not affected)
python2.7sourcebullseye(unfixed)end-of-life
python2.7source(unstable)(unfixed)
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.9sourcebullseye3.9.2-1+deb11u6DLA-4532-1
python3.9source(unstable)(unfixed)

Notes

[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)

Search for package or bug name: Reporting problems