]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-148395: Fix a possible UAF in `{LZMA,BZ2}Decompressor` (GH-148396) (#148504) 3.11 98846/head
authorStan Ulbrych <stan@python.org>
Mon, 13 Apr 2026 21:42:36 +0000 (22:42 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 21:42:36 +0000 (22:42 +0100)
commite20c6c9667c99ecaab96e1a2b3767082841ffc8b
treecb577c242f77cfaa742b08635e5b3dbc39057c60
parentf4654824ae0850ac87227fb270f9057477946769
[3.11] gh-148395: Fix a possible UAF in `{LZMA,BZ2}Decompressor` (GH-148396) (#148504)

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