]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-148395: Fix a possible UAF in `{LZMA,BZ2,_Zlib}Decompressor` (GH-148396...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Apr 2026 01:35:24 +0000 (03:35 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 01:35:24 +0000 (01:35 +0000)
commitc3cf71c3366fe49acb776a639405c0eea6169c20
treeaef7b6e567ff2e0f8090ec25501b568ffd5eef3a
parent74be9e2c7624d117d4d77f6bf67546a05b64b25c
[3.13] gh-148395: Fix a possible UAF in `{LZMA,BZ2,_Zlib}Decompressor` (GH-148396) (#148479)

gh-148395: Fix a possible UAF in `{LZMA,BZ2,_Zlib}Decompressor` (GH-148396)

Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress
(cherry picked from commit 8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2)

Co-authored-by: Stan Ulbrych <stan@python.org>
Misc/NEWS.d/next/Security/2026-04-10-16-28-21.gh-issue-148395.kfzm0G.rst [new file with mode: 0644]
Modules/_bz2module.c
Modules/_lzmamodule.c
Modules/zlibmodule.c