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.
{
"cna_assigner": "PSF",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6100.json",
"cwe_ids": [
"CWE-416",
"CWE-787"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.13.14"
},
{
"introduced": "3.14.0a1"
},
{
"fixed": "3.14.5rc1"
},
{
"introduced": "3.15.0a1"
},
{
"fixed": "3.15.0b1"
}
],
"source": [
"AFFECTED_FIELD",
"REFERENCES"
]
}
"2026-08-10T08:34:17Z"
[
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "84589999674251724155468361044613684778",
"length": 2206.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d",
"id": "CVE-2026-6100-20b48da3",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "274786089459037806290187256381705341170",
"length": 2221.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2",
"id": "CVE-2026-6100-274a173b",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "137817026754399672328269279492351081878",
"length": 2174.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0e",
"id": "CVE-2026-6100-3f4ee08e",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "84589999674251724155468361044613684778",
"length": 2206.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8b",
"id": "CVE-2026-6100-5345bf48",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "137817026754399672328269279492351081878",
"length": 2174.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d",
"id": "CVE-2026-6100-59ee1e2b",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "84589999674251724155468361044613684778",
"length": 2206.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20",
"id": "CVE-2026-6100-643d6667",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/zlibmodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "197439806431788498051156381226726719416",
"length": 2238.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3",
"id": "CVE-2026-6100-6e47e0ec",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "137817026754399672328269279492351081878",
"length": 2174.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3",
"id": "CVE-2026-6100-75190ade",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "285947837918045169759164635510724021861",
"length": 2244.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2",
"id": "CVE-2026-6100-86dedb9f",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "84589999674251724155468361044613684778",
"length": 2206.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/47128e64f98c3a20271138a98c2922bea2a3ee0e",
"id": "CVE-2026-6100-906ff074",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "137817026754399672328269279492351081878",
"length": 2174.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/e20c6c9667c99ecaab96e1a2b3767082841ffc8b",
"id": "CVE-2026-6100-9cdcb6f4",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_lzmamodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "137817026754399672328269279492351081878",
"length": 2174.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20",
"id": "CVE-2026-6100-9e46e21d",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/zlibmodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "288422572817338439511797407182616984687",
"length": 2277.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2",
"id": "CVE-2026-6100-c16b4d22",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/zlibmodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "197439806431788498051156381226726719416",
"length": 2238.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/6a5f79c8d7bbf22b083b240910c7a8781a59437d",
"id": "CVE-2026-6100-c46813d4",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/zlibmodule.c",
"function": "decompress"
},
"digest": {
"function_hash": "197439806431788498051156381226726719416",
"length": 2238.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/c3cf71c3366fe49acb776a639405c0eea6169c20",
"id": "CVE-2026-6100-ea7af3c2",
"deprecated": false
},
{
"signature_version": "v1",
"target": {
"file": "Modules/_bz2module.c",
"function": "decompress"
},
"digest": {
"function_hash": "84589999674251724155468361044613684778",
"length": 2206.0
},
"signature_type": "Function",
"source": "https://github.com/python/cpython/commit/ea8d735eb084cf8cc021df1a30e90d10a8f052e3",
"id": "CVE-2026-6100-fdfa63b1",
"deprecated": false
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-6100.json"