Uh oh!
There was an error while loading. Please reload this page.
gh-142783: Fix possible use after free in zoneinfo module - #142790
Conversation
….zoneinfo'; 'tzdata' is not a package
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks @fatelei for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @fatelei for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…onGH-142790) (cherry picked from commit 8307a14) Co-authored-by: wangxiaolei <fatelei@gmail.com>
…onGH-142790) (cherry picked from commit 8307a14) Co-authored-by: wangxiaolei <fatelei@gmail.com>
GH-142861 is a backport of this pull request to the 3.13 branch. |
GH-142862 is a backport of this pull request to the 3.14 branch. |
bedevere-bot
commented
Dec 17, 2025
|
When _weak_cache is a descriptor that creates a new object each time it's accessed, get_weak_cache() incorrectly assumed it could return a borrowed reference and immediately decremented the reference count. This caused the newly created cache object to be freed too early, leading to use-after-free when the cache object was subsequently accessed.
zoneinfo.get_weak_cachevia weak DECREF assumption #142783