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.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | RedHat | python3.12-0:3.12.12-3.el10_1.3 | * |
| Red Hat Enterprise Linux 10 | RedHat | python3.14-0:3.14.4-2.el10_2 | * |
| Red Hat Enterprise Linux 10 | RedHat | python3.12-0:3.12.13-2.el10_2 | * |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | python3.12-0:3.12.9-2.el10_0.9 | * |
| Red Hat Enterprise Linux 8 | RedHat | python3.12-0:3.12.13-2.el8_10 | * |
| Red Hat Enterprise Linux 8 | RedHat | python3.11-0:3.11.13-7.el8_10 | * |
| Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-76.el8_10 | * |
| Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-76.el8_10 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | python3-0:3.6.8-39.el8_4.11 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | python3-0:3.6.8-39.el8_4.11 | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | python3-0:3.6.8-47.el8_6.13 | * |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | RedHat | python3-0:3.6.8-47.el8_6.13 | * |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | RedHat | python3-0:3.6.8-47.el8_6.13 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | python3-0:3.6.8-51.el8_8.15 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | python3.11-0:3.11.2-2.el8_8.10 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | python3-0:3.6.8-51.el8_8.15 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | python3.11-0:3.11.2-2.el8_8.10 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.12-0:3.12.12-4.el9_7.3 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.11-0:3.11.13-5.3.el9_7 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.25-3.el9_7.3 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.11-0:3.11.13-9.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.14-0:3.14.4-2.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.12-0:3.12.13-2.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.25-7.el9_8 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.25-3.el9_7.3 | * |
| Red Hat Enterprise Linux 9 | RedHat | python3.9-0:3.9.25-7.el9_8 | * |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | RedHat | python3.9-0:3.9.10-4.el9_0.11 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | python3.11-0:3.11.2-2.el9_2.12 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | python3.9-0:3.9.16-1.el9_2.14 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.11-0:3.11.7-1.el9_4.13 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.12-0:3.12.1-4.el9_4.13 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python3.9-0:3.9.18-3.el9_4.13 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | python3.11-0:3.11.11-2.el9_6.7 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | python3.12-0:3.12.9-1.el9_6.8 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | python3.9-0:3.9.21-2.el9_6.6 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-businesscentral-monitoring-rhel8:7.13.5-4.1777325677 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-businesscentral-rhel8:7.13.5-4.1777325711 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-controller-rhel8:7.13.5-4.1777325710 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-dashbuilder-rhel8:7.13.5-3.1777325680 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-kieserver-rhel8:7.13.5-4.1777325709 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-process-migration-rhel8:7.13.5-4.1777325680 | * |
| RHEL-8 based Middleware Containers | RedHat | rhpam-7/rhpam-smartrouter-rhel8:7.13.5-4.1777325708 | * |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/model-opt-cuda-rhel9:1780681984 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-aws-cuda-rhel9:1776871984 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-azure-cuda-rhel9:1776871985 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-azure-rocm-rhel9:1776872005 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-cuda-rhel9:1776773390 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-gcp-cuda-rhel9:1776871987 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/bootc-rocm-rhel9:1776773505 | * |
| Red Hat Enterprise Linux AI 3.3 | RedHat | rhelai3/disk-image-cuda-rhel9:1776938871 | * |
| Red Hat Hardened Images | RedHat | python3-13-main-3.13.13-1.1.hum1 | * |
| Red Hat Hardened Images | RedHat | python3-11-main-3.11.15-4.hum1 | * |
| Red Hat Hardened Images | RedHat | python3-12-main-3.12.13-3.hum1 | * |
| Red Hat Hardened Images | RedHat | python3-14-main-3.14.4-2.hum1 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/cds-kubernetes-tp-rhel9:1777459441 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/installer-tp-rhel9:1777454300 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-tp-rhel9:1777459504 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/cds-rhel9:1779798159 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/haproxy-rhel9:1779798164 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/installer-rhel9:1779798165 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-rhel9:1779798222 | * |
| Python2.7 | Ubuntu | esm-infra/xenial | * |
| Python3.13 | Ubuntu | upstream | * |
| Python3.14 | Ubuntu | devel | * |
| Python3.14 | Ubuntu | upstream | * |
| Python3.5 | Ubuntu | esm-infra/xenial | * |