Skip to content

gh-126138: Fix UAF in asyncio.Task when task calls back to user defined cancel function #126305

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

Merged
merged 4 commits into from
Nov 2, 2024

Conversation

Nico-Posada
Copy link
Contributor

@Nico-Posada Nico-Posada commented Nov 1, 2024

No test cases because of how similar this is to #126120, but can add if needed. Blurb definitely needs some revision too because I'm bad at explaining things sometimes.

@Nico-Posada
Copy link
Contributor Author

Oh it seems I pulled in my change from #126230 too, don't think it'll cause any issues though. Can remove if needed.

Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch Nico! I gave you some suggestions for the comments but feel free to change where the line ends (hard to see where the 80-chars limit lie on GH Web UI).

@picnixz picnixz added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Nov 1, 2024
@kumaraditya303 kumaraditya303 merged commit f032f6b into python:main Nov 2, 2024
45 checks passed
@miss-islington-app
Copy link

Thanks @Nico-Posada for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 2, 2024
…attribute__` (pythonGH-126305)

(cherry picked from commit f032f6b)

Co-authored-by: Nico-Posada <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 2, 2024
…attribute__` (pythonGH-126305)

(cherry picked from commit f032f6b)

Co-authored-by: Nico-Posada <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Nov 2, 2024

GH-126324 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 2, 2024
@bedevere-app
Copy link

bedevere-app bot commented Nov 2, 2024

GH-126325 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 2, 2024
kumaraditya303 pushed a commit that referenced this pull request Nov 2, 2024
…tattribute__` (GH-126305) (#126325)

gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305)
(cherry picked from commit f032f6b)

Co-authored-by: Nico-Posada <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
kumaraditya303 pushed a commit that referenced this pull request Nov 2, 2024
…tattribute__` (GH-126305) (#126324)

gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305)
(cherry picked from commit f032f6b)

Co-authored-by: Nico-Posada <[email protected]>
Co-authored-by: Carol Willing <[email protected]>
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants