]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-148395: Fix a possible UAF in `{LZMA,BZ2}Decompressor` (GH-148396) (#148505) 3.10
authorStan Ulbrych <stan@python.org>
Mon, 13 Apr 2026 21:42:24 +0000 (22:42 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 21:42:24 +0000 (22:42 +0100)
commit47128e64f98c3a20271138a98c2922bea2a3ee0e
tree6e187f26f69646f159b807807c0259ab78b93de8
parentc5767a72838a8dda9d6dc5d3558075b055c56bca
[3.10] gh-148395: Fix a possible UAF in `{LZMA,BZ2}Decompressor` (GH-148396) (#148505)

Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress

(cherry picked from commit 8fc66aef6d7b3ae58f43f5c66f9366cc8cbbfcd2)
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