Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
….zoneinfo'; 'tzdata' is not a package
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-12-16-14-49-19.gh-issue-142783.VPV1ig.rst OutdatedShow resolvedHide resolved
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.
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. 👍
8307a14 intopython:mainUh 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 commit8307a14)Co-authored-by: wangxiaolei <fatelei@gmail.com>
…onGH-142790)(cherry picked from commit8307a14)Co-authored-by: wangxiaolei <fatelei@gmail.com>
GH-142861 is a backport of this pull request to the3.13 branch. |
GH-142862 is a backport of this pull request to the3.14 branch. |
bedevere-bot commentedDec 17, 2025
|
Uh oh!
There was an error while loading.Please reload this page.
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