9.1critical
Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure
- Severity
- 9.1critical CVSS:4.0 by PSF
- Exploit likelihood
- 0.81% (higher than 54% of CVEs)
- Published
- Last changed
- Assigned by
- PSF
- Also known as
- PSF-0000-CVE-2026-6100BIT-LIBPYTHON-2026-6100BIT-PYTHON-2026-6100BIT-PYTHON-MIN-2026-6100PSF-2026-18
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Python Software Foundation CPython | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.14, from 3.14.0a1 before 3.14.5rc1, from 3.15.0a1 before 3.15.0b1 | CVE List |
| python3.12 | Not specified Not affected: from 0:3.12.12-3.el10_1.3 before *, from 0:3.12.13-2.el10_2 before *, from 0:3.12.9-2.el10_0.9 before *, from 0:3.12.13-2.el8_10 before *, from 0:3.12.12-4.el9_7.3 before *, from 0:3.12.13-2.el9_8 before * | CVE List |
| python3.14 | Not specified Not affected: from 0:3.14.4-2.el10_2 before *, from 0:3.14.4-2.el9_8 before * | CVE List |
| python3.11 | Not specified Not affected: from 0:3.11.13-7.el8_10 before *, from 0:3.11.2-2.el8_8.10 before *, from 0:3.11.13-5.3.el9_7 before *, from 0:3.11.13-9.el9_8 before *, from 0:3.11.2-2.el9_2.12 before *, from 0:3.11.7-1.el9_4.13 before * | CVE List |
| python3 | Not specified Not affected: from 0:3.6.8-76.el8_10 before *, from 0:3.6.8-39.el8_4.11 before *, from 0:3.6.8-47.el8_6.13 before *, from 0:3.6.8-51.el8_8.15 before * | CVE List |
| python3.9 | Not specified Not affected: from 0:3.9.25-3.el9_7.3 before *, from 0:3.9.25-7.el9_8 before *, from 0:3.9.10-4.el9_0.11 before *, from 0:3.9.16-1.el9_2.14 before *, from 0:3.9.18-3.el9_4.13 before *, from 0:3.9.21-2.el9_6.6 before * | CVE List |
| rhpam-7/rhpam-businesscentral-monitoring-rhel8 | Not specified Not affected: from 7.13.5-4.1777325677 before * | CVE List |
| rhpam-7/rhpam-businesscentral-rhel8 | Not specified Not affected: from 7.13.5-4.1777325711 before * | CVE List |
| rhpam-7/rhpam-controller-rhel8 | Not specified Not affected: from 7.13.5-4.1777325710 before * | CVE List |
| rhpam-7/rhpam-dashbuilder-rhel8 | Not specified Not affected: from 7.13.5-3.1777325680 before * | CVE List |
| rhpam-7/rhpam-kieserver-rhel8 | Not specified Not affected: from 7.13.5-4.1777325709 before * | CVE List |
| rhpam-7/rhpam-process-migration-rhel8 | Not specified Not affected: from 7.13.5-4.1777325680 before * | CVE List |
| rhpam-7/rhpam-smartrouter-rhel8 | Not specified Not affected: from 7.13.5-4.1777325708 before * | CVE List |
| rhaiis/model-opt-cuda-rhel9 | Not specified Not affected: from 1780681984 before *, from 1782352950 before * | CVE List |
| rhaiis/vllm-spyre-rhel9 | Not specified Not affected: from 1782352919 before * | CVE List |
| rhaiis/vllm-rocm-rhel9 | Not specified Not affected: from 1782353093 before * | CVE List |
| rhaiis/vllm-cuda-rhel9 | Not specified Not affected: from 1782352847 before * | CVE List |
| rhelai3/bootc-aws-cuda-rhel9 | Not specified Not affected: from 1776871984 before * | CVE List |
| rhelai3/bootc-azure-cuda-rhel9 | Not specified Not affected: from 1776871985 before * | CVE List |
| rhelai3/bootc-azure-rocm-rhel9 | Not specified Not affected: from 1776872005 before * | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified Not affected: from 1776773390 before * | CVE List |
| rhelai3/bootc-gcp-cuda-rhel9 | Not specified Not affected: from 1776871987 before * | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified Not affected: from 1776773505 before * | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified Not affected: from 1776938871 before * | CVE List |
| python3-13-main | Not specified Not affected: from 3.13.13-1.1.hum1 before * | CVE List |
| python3-11-main | Not specified Not affected: from 3.11.15-4.hum1 before * | CVE List |
| python3-12-main | Not specified Not affected: from 3.12.13-3.hum1 before * | CVE List |
| python3-14-main | Not specified Not affected: from 3.14.4-2.hum1 before * | CVE List |
| rhui5/cds-kubernetes-tp-rhel9 | Not specified Not affected: from 1777459441 before * | CVE List |
| rhui5/installer-tp-rhel9 | Not specified Not affected: from 1777454300 before * | CVE List |
| rhui5/rhua-tp-rhel9 | Not specified Not affected: from 1777459504 before * | CVE List |
| rhui5/cds-rhel9 | Not specified Not affected: from 1779798159 before * | CVE List |
| rhui5/haproxy-rhel9 | Not specified Not affected: from 1779798164 before * | CVE List |
| rhui5/installer-rhel9 | Not specified Not affected: from 1779798165 before * | CVE List |
| rhui5/rhua-rhel9 | Not specified Not affected: from 1779798222 before * | CVE List |
| python | Not specified | CVE List |
| python36:3.6/python36 | Not specified | CVE List |
| python39-devel:3.9/python39 | Not specified | CVE List |
| redhat-user-workloads/bootc-cuda-aws-3-3 | Not specified | CVE List |
| redhat-user-workloads/bootc-cuda-azure-3-3 | Not specified | CVE List |
| redhat-user-workloads/bootc-cuda-gcp-3-3 | Not specified | CVE List |
| redhat-user-workloads/bootc-rocm-azure-3-3 | Not specified | CVE List |
| https://github.com/python/cpython | before 6a5f79c8d7bbf22b083b240910c7a8781a59437d, before 8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2, before c3cf71c3366fe49acb776a639405c0eea6169c20, before 47128e64f98c3a20271138a98c2922bea2a3ee0e, before e20c6c9667c99ecaab96e1a2b3767082841ffc8b, before ea8d735eb084cf8cc021df1a30e90d10a8f052e3 | Python Software Foundation |
| python python | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.14, from 3.14.0 before 3.14.5, 3.15.0 | NVD |
| redhat ai_inference_server | from 3.2.0 before 3.2.2, from 3.3.0 before 3.3.5 | NVD |
| redhat hardened_images | Not specified | NVD |
| redhat openshift_ai | from 3.4 before 3.4.3 | NVD |
| redhat openshift_container_platform | from 4.10 up to 4.12.103 | NVD |
| redhat update_infrastructure | from 5.0 before 5.2 | NVD |
| redhat enterprise_linux | 6.0, 7.0, 8.0, 9.0, 10.0 | NVD |
| redhat enterprise_linux_ai | 3.0, 3.3 | NVD |
| redhat enterprise_linux_els | 7.0 | NVD |
| redhat enterprise_linux_eus | 8.4, 9.6, 10.0 | NVD |
| redhat enterprise_linux_for_update_services_for_sap_solutions | 9.2 | NVD |
| redhat enterprise_linux_server_tus | 8.6 | NVD |
| redhat enterprise_linux_server_update_services_for_sap_solutions | 8.6 | NVD |
| redhat enterprise_linux_tus | 8.8 | NVD |
| redhat enterprise_linux_update_services_for_sap_solutions | 8.8 | NVD |
| libpython (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.14, from 3.14.0 before 3.14.5 | Bitnami Vulnerability Database |
| python (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.14, from 3.14.0 before 3.14.5 | Bitnami Vulnerability Database |
| python-min (Bitnami) | before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.14, from 3.14.0 before 3.14.5 | Bitnami Vulnerability Database |
All scores
| PSF | 9.1critical CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Uso después de liberación (UAF) era posible en ’lzma.LZMADecompressor’, ’bz2.BZ2Decompressor’ y ’gzip.GzipFile’ cuando una asignación de memoria falla con un ’MemoryError’ y la instancia de descompresión se reutiliza. Este escenario puede activarse si el proceso está bajo presión de memoria. La corrección limpia el puntero colgante en esta condición de error específica. La vulnerabilidad solo está presente si el programa reutiliza instancias del descompresor a través de múltiples llamadas de descompresión incluso después de que se genere un ’MemoryError’ durante la descompresión. El uso de las funciones auxiliares para descomprimir datos de una sola vez, como ’lzma.decompress()’, ’bz2.decompress()’, ’gzip.decompress()’ y ’zlib.decompress()’, no se ve afectado, ya que se utiliza una nueva instancia de descompresor por cada llamada. Si la instancia del descompresor no se reutiliza después de una condición de error, este uso tampoco es vulnerable.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-6100 changed 2026-08-13 | CVE Terms of Use |
| Python Software Foundation | PSF-0000-CVE-2026-6100 changed 2026-07-06 | CC-BY-4.0 |
| Python Software Foundation | PSF-2026-18 changed 2026-08-05 | CC-BY-4.0 |
| NVD | CVE-2026-6100 changed 2026-11-30 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2026-6100 changed 2026-08-19 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2026-6100 changed 2026-08-19 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2026-6100 changed 2026-08-19 | Apache-2.0 |