This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Update Rust crate openssl to v0.10.70 [SECURITY] #140
+6
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=0.10.68->=0.10.70GitHub Vulnerability Alerts
CVE-2025-24898
Impact
ssl::select_next_protocan return a slice pointing into theserverargument's buffer but with a lifetime bound to theclientargument. In situations where theserverbuffer's lifetime is shorter than theclientbuffer's, this can cause a use after free. This could cause the server to crash or to return arbitrary memory contents to the client.Patches
openssl0.10.70 fixes the signature ofssl::select_next_prototo properly constrain the output buffer's lifetime to that of both input buffers.Workarounds
In standard usage of
ssl::select_next_protoin the callback passed toSslContextBuilder::set_alpn_select_callback, code is only affected if theserverbuffer is constructed within the callback. For example:Not vulnerable - the server buffer has a
'staticlifetime:Not vulnerable - the server buffer outlives the handshake:
Vulnerable - the server buffer is freed when the callback returns:
References
https://github.com/sfackler/rust-openssl/pull/2360
Release Notes
sfackler/rust-openssl (openssl)
v0.10.70: openssl v0.10.70Compare Source
What's Changed
SslMethod::{dtls_client,dtls_server}by @alex in https://github.com/sfackler/rust-openssl/pull/2358Full Changelog: rust-openssl/rust-openssl@openssl-v0.10.69...openssl-v0.10.70
v0.10.69: openssl v0.10.69Compare Source
What's Changed
openssl-macroto version0.1.1by @caspermeijn in https://github.com/sfackler/rust-openssl/pull/2324New Contributors
Full Changelog: rust-openssl/rust-openssl@openssl-v0.10.68...openssl-v0.10.69
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.