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 e2123a8e0943 from chromium #30452

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

StevenEBarbaro
Copy link
Contributor

Manually post task to bind FileUtilitiesHost.

The FileUtilitiesHost binder is posted to a separate sequence, and the
ServiceWorkerHost may be destroyed by the time the it runs, causing a
UAF.
This CL changes it so that, when we try to bind a new receiver, the
host's worker_process_id() is obtained first (on the service worker's
core thread) and then a task is posted to do the actual binding on a
USER_VISIBLE task runner.

Credit: This issue was first reported (with analysis) by
soulchen8650@gmail.com.

Bug: 1229298
Change-Id: I6d5c05a830ba30f6cb98bf2df70a3df3333f3dd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041006
Reviewed-by: Kinuko Yasuda kinuko@chromium.org
Reviewed-by: Kouhei Ueno kouhei@chromium.org
Commit-Queue: Tal Pressman talp@google.com
Cr-Commit-Position: refs/heads/master@{#903832}

Notes: Security: backported fix for 1229298.

@StevenEBarbaro StevenEBarbaro requested a review from a team as a code owner August 9, 2021 03:59
@StevenEBarbaro StevenEBarbaro added 13-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes labels Aug 9, 2021
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Aug 9, 2021
@codebytere codebytere merged commit 9f80f4a into 13-x-y Aug 9, 2021
@codebytere codebytere deleted the cherry-pick/13-x-y/chromium/e2123a8e0943 branch August 9, 2021 07:50
@release-clerk
Copy link

release-clerk bot commented Aug 9, 2021

Release Notes Persisted

Security: backported fix for 1229298.

@zcbenz
Copy link
Contributor

zcbenz commented Aug 18, 2021

/trop run

@zcbenz
Copy link
Contributor

zcbenz commented Aug 18, 2021

/trop run backport

@trop
Copy link
Contributor

trop bot commented Aug 18, 2021

The backport process for this PR has been manually initiated - here we go! :D

@trop
Copy link
Contributor

trop bot commented Aug 18, 2021

I have automatically backported this PR to "11-x-y", please check out #30579

@trop
Copy link
Contributor

trop bot commented Aug 18, 2021

I have automatically backported this PR to "12-x-y", please check out #30580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13-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.

3 participants