-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-142783: Fix possible use after free in zoneinfo module #142790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
….zoneinfo'; 'tzdata' is not a package
Misc/NEWS.d/next/Library/2025-12-16-14-49-19.gh-issue-142783.VPV1ig.rst
Outdated
Show resolved
Hide resolved
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
|
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. |
|
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