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

UAF / Use-After-Destroy for Mutexes #1100

Open
michael-schwarz opened this issue Jul 8, 2023 · 0 comments
Open

UAF / Use-After-Destroy for Mutexes #1100

michael-schwarz opened this issue Jul 8, 2023 · 0 comments

Comments

@michael-schwarz
Copy link
Member

michael-schwarz commented Jul 8, 2023

This would equally apply to using a mutex after pthread_mutex_destroy has been called, and also using a condition variable after pthread_cond_destroy has been called. The additional complication is that these appear mostly in multi-threaded code, so it is not immediately obvious if @vogler's automata based approach would work here.

In fact, there one would probably require that due to MHP information it can be excluded that any accesses happen after the destroy has happened.

Originally posted by @michael-schwarz in #200 (comment)

Since #200 was solved by #1050, I transferred this to a separate issue. The same techniques developed for #1050 (and its extension to multi-threaded programs which is still to come) could probably be adapted to this usage too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant