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

fix: prevent UAF crash in setCertificateVerifyProc #33204

Merged
merged 3 commits into from Mar 11, 2022

Conversation

nornagon
Copy link
Member

@nornagon nornagon commented Mar 9, 2022

Description of Change

This fixes a bug with the RemoteCertVerifier patch that drives the
ses.setCertificateVerifyProc API. When an in-flight request was cancelled
after the procedure was invoked but before the result was received, a
use-after-free could occur.

Fixes #31675.

Checklist

Release Notes

Notes: Fixed a network service crash that could occur when using setCertificateVerifyProc.

@nornagon nornagon requested review from a team as code owners March 9, 2022 00:27
@nornagon nornagon added semver/patch backwards-compatible bug fixes target/15-x-y labels Mar 9, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 9, 2022
@deepak1556 deepak1556 dismissed their stale review March 9, 2022 03:08

Compilation errors needs to be addressed.

Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

Looks like tests are legitimately failing.

@nornagon nornagon requested a review from jkleinsc March 9, 2022 22:59
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 10, 2022
@nornagon nornagon merged commit cdc27a3 into main Mar 11, 2022
@nornagon nornagon deleted the fix-setcertverifyproc-cancellation branch March 11, 2022 19:35
@release-clerk
Copy link

release-clerk bot commented Mar 11, 2022

Release Notes Persisted

Fixed a network service crash that could occur when using setCertificateVerifyProc.

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

I was unable to backport this PR to "16-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/16-x-y label Mar 11, 2022
@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

I was unable to backport this PR to "15-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

I was unable to backport this PR to "17-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

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

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

@nornagon has manually backported this PR to "17-x-y", please check out #33254

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

@nornagon has manually backported this PR to "15-x-y", please check out #33256

@trop
Copy link
Contributor

trop bot commented Mar 11, 2022

@nornagon has manually backported this PR to "16-x-y", please check out #33255

@lauw70
Copy link

lauw70 commented Mar 22, 2022

@nornagon do you have any idea when we could expect this fix to land in a 17+.x.y stable release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Network service crashed, restarting service.
4 participants