Skip to content

fix: prevent UAF crash in setCertificateVerifyProc - #33204

Merged
nornagon merged 3 commits into
mainfrom
fix-setcertverifyproc-cancellation
Mar 11, 2022
Merged

nornagon merged 3 commits into
mainfrom
fix-setcertverifyproc-cancellation

Conversation

@nornagon

@nornagon nornagon commented Mar 9, 2022

Copy link
Copy Markdown
Contributor

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 recently label Mar 9, 2022
deepak1556
deepak1556 previously approved these changes Mar 9, 2022
@deepak1556
deepak1556 dismissed their stale review March 9, 2022 03:08

Compilation errors needs to be addressed.

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

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 recently 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

release-clerk Bot commented Mar 11, 2022

Copy link
Copy Markdown

Release Notes Persisted

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Mar 11, 2022

Copy link
Copy Markdown
Contributor

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

@lauw70

lauw70 commented Mar 22, 2022

Copy link
Copy Markdown

@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