Skip to content

CVE-2025-24898 rust openssl ssl::select_next_proto use after free

MediumCVSS 6.3 EPSS 0.68%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
OpenSSLUbuntuDebian

Description

rust-openssl is a set of OpenSSL bindings for the Rust programming language. In affected versions ssl::select_next_proto can return a slice pointing into the server argument's buffer but with a lifetime bound to the client argument. In situations where the sever buffer's lifetime is shorter than the client buffer's, this can cause a use after free. This could cause the server to crash or to return arbitrary memory contents to the client. The crateopenssl version 0.10.70 fixes the signature of ssl::select_next_proto to properly constrain the output buffer's lifetime to that of both input buffers. Users are advised to upgrade. In standard usage of ssl::select_next_proto in the callback passed to SslContextBuilder::set_alpn_select_callback, code is only affected if the server buffer is constructed within the callback.

Upgrade path

12 packages: 5 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
azure linux python-cryptography(Azure Linux 3.0) All versions No fix listed No fix yet
azure linux rpm-ostree(Azure Linux 3.0) All versions No fix listed No fix yet
azure linux rust(Azure Linux 3.0) All versions No fix listed No fix yet
cbl-mariner rpm-ostree(CBL-Mariner 2.0) All versions No fix listed No fix yet
cbl-mariner rust(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/rust-openssl(Debian 12) = 0.10.45-1; = 0.10.57-1; = 0.10.64-1; = 0.10.68-1 +7 more No fix listed No fix yet
crates.io openssl(crates.io) >= 0.0.0-0, < 0.10.70; >= 0.10.0, < 0.10.70 0.10.70 Fixed
debian/rust-openssl(Debian 13) < 0.10.70-1 0.10.70-1 Fixed
debian/rust-openssl(Debian 14) < 0.10.70-1 0.10.70-1 Fixed
ubuntu/rust-openssl(Ubuntu 22.04) < 0.10.36-1ubuntu0.1~esm1 0.10.36-1ubuntu0.1~esm1 Fixed
ubuntu/rust-openssl(Ubuntu 24.04) < 0.10.57-1ubuntu0.1~esm1 0.10.57-1ubuntu0.1~esm1 Fixed
sfackler rust-openssl = >= 0.10.0, < 0.10.70 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
azure linux python-cryptography(Azure Linux:3.0) All versions No fix listed
azure linux rpm-ostree(Azure Linux:3.0) All versions No fix listed
cbl-mariner rpm-ostree(CBL-Mariner:2.0) All versions No fix listed
cbl-mariner rust(CBL-Mariner:2.0) All versions No fix listed
azure linux rust(Azure Linux:3.0) All versions No fix listed
crates.io openssl(crates.io) >= 0.10.0, < 0.10.70 0.10.70
crates.io openssl(crates.io) >= 0.0.0-0, < 0.10.70 0.10.70
debian/rust-openssl(Debian:12) All versions No fix listed
debian/rust-openssl(Debian:12) = 0.10.45-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.57-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.64-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.68-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.70-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.72-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.73-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.78-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.79-1 No fix listed
debian/rust-openssl(Debian:12) = 0.10.81-1 No fix listed
debian/rust-openssl(Debian:13) < 0.10.70-1 0.10.70-1
debian/rust-openssl(Debian:14) < 0.10.70-1 0.10.70-1
sfackler rust-openssl = >= 0.10.0, < 0.10.70 No fix listed
ubuntu/rust-openssl(Ubuntu:22.04) < 0.10.36-1ubuntu0.1~esm1 0.10.36-1ubuntu0.1~esm1
ubuntu/rust-openssl(Ubuntu:24.04) < 0.10.57-1ubuntu0.1~esm1 0.10.57-1ubuntu0.1~esm1

References