Skip to content
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

chore: cherry-pick cf90db14f2 from chromium #38277

Merged
merged 2 commits into from
May 18, 2023

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented May 12, 2023

[M112] Fix ScopedObservation UaF in BubbleDialogDelegate::AnchorWidgetObserver

A ScopedObservation can outlive the aura::Window it observes, leading to
a use-after-free error in ~ScopedObservation(). The problem occurs in
BubbleDialogDelegate::AnchorWidgetObserver. This fix listens for
OnWindowDestroying() and resets the observation to prevent the UaF.

(cherry picked from commit 72bd6a1018548ee63a2ec06d6c7714d3a8cdf8a8)

Bug: 1423360
Change-Id: I742b4624b2664dea3fd97db7b399fcd15e45c8fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4455016
Code-Coverage: Findit findit-for-me@appspot.gserviceaccount.com
Reviewed-by: Elly Fong-Jones ellyjones@chromium.org
Commit-Queue: Keren Zhu kerenzhu@chromium.org
Cr-Original-Commit-Position: refs/heads/main@{#1133511}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4466947
Reviewed-by: Allen Bauer kylixrd@chromium.org
Cr-Commit-Position: refs/branch-heads/5615@{#1353}
Cr-Branched-From: 9c6408ef696e83a9936b82bbead3d41c93c82ee4-refs/heads/main@{#1109224}

Release Notes

Notes: Security: backported fix for 1423360.

@ppontes ppontes added security 🔒 semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking 22-x-y labels May 12, 2023
@ppontes ppontes requested a review from a team as a code owner May 12, 2023 22:19
@ppontes ppontes force-pushed the cherry-pick/22-x-y/chromium/cf90db14f2 branch from f63a00a to dbd2449 Compare May 15, 2023 23:06
@jkleinsc jkleinsc force-pushed the cherry-pick/22-x-y/chromium/cf90db14f2 branch from 03adf14 to ceec65a Compare May 18, 2023 00:03
@jkleinsc jkleinsc merged commit b07f2f0 into 22-x-y May 18, 2023
13 checks passed
@jkleinsc jkleinsc deleted the cherry-pick/22-x-y/chromium/cf90db14f2 branch May 18, 2023 15:30
@release-clerk
Copy link

release-clerk bot commented May 18, 2023

Release Notes Persisted

Security: backported fix for 1423360.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
22-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants