Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Dec 27, 2025

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

Don't forget to edit the commit message before merging.

@picnixz picnixz changed the title gh-142557: fix UAF in bytearray.__mod__ via re-entrant argument's __repr__ gh-142557: fix UAF in bytearray.__mod__ when object is mutated while formatting %-style arguments Dec 27, 2025
@picnixz picnixz enabled auto-merge (squash) December 27, 2025 14:37
@picnixz picnixz merged commit 61ee048 into python:main Dec 27, 2025
46 checks passed
@miss-islington-app
Copy link

Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 27, 2025
…d while formatting `%`-style arguments (pythonGH-143213)

(cherry picked from commit 61ee04834b096be00678c6819b4957f3f4413a5e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@miss-islington-app
Copy link

Sorry, @picnixz, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 61ee04834b096be00678c6819b4957f3f4413a5e 3.13

@bedevere-app
Copy link

bedevere-app bot commented Dec 27, 2025

GH-143227 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Dec 27, 2025
@picnixz picnixz deleted the fix/bytearray/uaf-in-mod-142557 branch December 27, 2025 15:19
picnixz added a commit that referenced this pull request Dec 27, 2025
…ed while formatting `%`-style arguments (GH-143213) (#143227)

gh-142557: fix UAF in `bytearray.__mod__` when object is mutated while formatting `%`-style arguments (GH-143213)
(cherry picked from commit 61ee048)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
picnixz added a commit to picnixz/cpython that referenced this pull request Dec 27, 2025
… mutated while formatting `%`-style arguments (pythonGH-143213)

(cherry picked from commit 61ee048)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Dec 27, 2025

GH-143229 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 Dec 27, 2025
picnixz added a commit that referenced this pull request Dec 27, 2025
…ed while formatting `%`-style arguments (GH-143213) (#143229)

(cherry picked from commit 61ee048)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants