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 lifetimes in ssl::select_next_proto #2360

Merged
merged 1 commit into from
Feb 2, 2025
Merged

Conversation

sfackler
Copy link
Owner

@sfackler sfackler commented Feb 2, 2025

SSL_select_next_proto can return a pointer into either the client or server buffers, but the type signature of the function previously only bound the output buffer to the client buffer. This can result in a UAF in situations where the server slice does not point to a long-lived allocation.

Thanks to Matt Mastracci for reporting this issue.

@sfackler sfackler merged commit f014afb into master Feb 2, 2025
67 checks passed
@sfackler sfackler deleted the fix-alpn-lifetimes branch February 2, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant