gh-148395: Fix a possible UAF in {LZMA,BZ2,_Zlib}Decompressor#148396
gh-148395: Fix a possible UAF in {LZMA,BZ2,_Zlib}Decompressor#148396gpshead merged 4 commits intopython:mainfrom
{LZMA,BZ2,_Zlib}Decompressor#148396Conversation
emmatyping
left a comment
There was a problem hiding this comment.
Thank you for fixing this!
{LZMA, BZ2, _Zlib}Decompressor{LZMA,BZ2,_Zlib}Decompressor
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…pythonGH-148396) Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress (cherry picked from commit 8fc66ae) Co-authored-by: Stan Ulbrych <stan@python.org>
|
GH-148479 is a backport of this pull request to the 3.13 branch. |
…pythonGH-148396) Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress (cherry picked from commit 8fc66ae) Co-authored-by: Stan Ulbrych <stan@python.org>
|
GH-148480 is a backport of this pull request to the 3.14 branch. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @StanFromIreland and @gpshead, I could not cleanly backport this to |
…pythonGH-148396) Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress (cherry picked from commit 8fc66ae) Co-authored-by: Stan Ulbrych <stan@python.org>
|
GH-148503 is a backport of this pull request to the 3.12 branch. |
|
Sorry, @StanFromIreland and @gpshead, I could not cleanly backport this to |
…ressor` (pythonGH-148396) Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress (cherry picked from commit 8fc66ae) Co-authored-by: Stan Ulbrych <stan@python.org>
|
GH-148504 is a backport of this pull request to the 3.11 branch. |
…pythonGH-148396) Fix dangling input pointer after `MemoryError` in _lzma/_bz2/_ZlibDecompressor.decompress (cherry picked from commit 8fc66ae)
|
GH-148505 is a backport of this pull request to the 3.10 branch. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Thanks @StanFromIreland for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Sorry, @StanFromIreland and @gpshead, I could not cleanly backport this to |
|
Sorry, @StanFromIreland and @gpshead, I could not cleanly backport this to |
|
Apologies, I was working on an old version of the page without the 3.11/3.10 backports. Ignore the noise. |
Fix critical use-after-free bug in LZMA/BZ2/ZLib decompressor routines when reusing decompressor instances after a MemoryError was raised from one. See <https://mail.python.org/archives/list/security-announce@python.org/thread/HTWB2Z6KT5QQX4RYEZAFININDHNOSIF3/> <https://www.cve.org/CVERecord?id=CVE-2026-6100> <python/cpython#148396> Obtained from: python/cpython@c8d8173 Security: CVE-2026-6100 Security: b8e9f33c-375d-11f1-a119-e36228bfe7d4 While here: - fix DEBUG build/package (several %%ABI%% were in the wrong place in pkg-plist that caused failed installs) - switch to using system textproc/expat2 library - issue warnings in pre-test that IPV6, PYMALLOC are required and DEBUG also breaks one self-test - bump PORTREVISION - drop LTOFULL again and make LTO use =full
{LZMA,BZ2,_Zlib}Decompressor#148395