-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] Use-after-free in CommissioningWindowOpener #22765
Comments
bzbarsky-apple
added a commit
to bzbarsky-apple/connectedhomeip
that referenced
this issue
Sep 20, 2022
Once we call back into our client, it can delete us, so we need to do any logging that uses `mSetupPayload` before we do that. Fixes project-chip#22765
andy31415
pushed a commit
that referenced
this issue
Sep 21, 2022
Once we call back into our client, it can delete us, so we need to do any logging that uses `mSetupPayload` before we do that. Fixes #22765
andy31415
pushed a commit
to andy31415/connectedhomeip
that referenced
this issue
Sep 23, 2022
Once we call back into our client, it can delete us, so we need to do any logging that uses `mSetupPayload` before we do that. Fixes project-chip#22765
andy31415
added a commit
that referenced
this issue
Sep 23, 2022
Once we call back into our client, it can delete us, so we need to do any logging that uses `mSetupPayload` before we do that. Fixes #22765 Co-authored-by: Boris Zbarsky <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
CommissioningWindowOpener::OnOpenCommissioningWindowSuccess
does this:but the call to
mCall
above can (and usually does) deleteself
. So theself->mSetupPayload
use is use-after-free.What I can't figure out is why neither TSAN nor ASAN is catching it....
Bug prevalence
Any time ECM windows are opened via CommisioningWindowOpener
GitHub hash of the SDK that was being used
685c4d5
Platform
core
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: