CVEfocus › CVE database › CVE-2025-24898

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

CVSS 6.3 MediumEPSS 0.9% (higher than 60% of CVEs)Published 2025-02-03Updated 2025-02-12Assigner: GitHub_M

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 crate`openssl` 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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, crates.io: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

22Fixed
14Fix pending
63Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04rust-opensslNot affected
vulnerable_code_not_present
Ubuntu 26.04rust-openssl-sysNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-opensslNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-openssl-sysNot affected
vulnerable_code_not_present
Ubuntu 24.04rust-opensslFix pending0.10.57-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-24898
Ubuntu 24.04rust-openssl-sysNot affected
vulnerable_code_not_present
Ubuntu 22.04rust-opensslFix pending0.10.36-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-24898
Ubuntu 22.04rust-openssl-sysNot affected
vulnerable_code_not_present
Ubuntu 20.04rust-opensslFix pending0.10.23-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-24898
Ubuntu 20.04rust-openssl-sysFix pending
Debian 14rust-opensslFixed0.10.70-1DEBIAN-CVE-2025-24898
Debian 13rust-opensslFixed0.10.70-1DEBIAN-CVE-2025-24898
Debian 12rust-opensslFix pendingDEBIAN-CVE-2025-24898
Red Hat Enterprise Linux 10389-ds-baseNot affected
Red Hat Enterprise Linux 10389-ds-base-bdbNot affected
Red Hat Enterprise Linux 10389-ds-base-develNot affected
Red Hat Enterprise Linux 10389-ds-base-libsNot affected
Red Hat Enterprise Linux 10389-ds-base-snmpNot affected
Red Hat Enterprise Linux 10afterburnNot affected
Red Hat Enterprise Linux 10afterburn-dracutNot affected
Red Hat Enterprise Linux 10bootcNot affected
Red Hat Enterprise Linux 10bootupdFix pending
Affected
Red Hat Enterprise Linux 10clevis-pin-tpm2Not affected
Red Hat Enterprise Linux 10fdo-admin-cliNot affected
Red Hat Enterprise Linux 10fdo-clientNot affected
Red Hat Enterprise Linux 10fdo-initNot affected
Red Hat Enterprise Linux 10fdo-manufacturing-serverNot affected
Red Hat Enterprise Linux 10fdo-owner-cliNot affected
Red Hat Enterprise Linux 10fdo-owner-onboarding-serverNot affected
Red Hat Enterprise Linux 10fdo-rendezvous-serverNot affected
Red Hat Enterprise Linux 10keylime-agent-rustNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-commonNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-ima-emulatorNot affected
Red Hat Enterprise Linux 10keylime-agent-rust-pushNot affected
Red Hat Enterprise Linux 10python3-lib389Not affected
Red Hat Enterprise Linux 10rpm-ostreeNot affected
Red Hat Enterprise Linux 10rpm-ostree-libsNot affected
Red Hat Enterprise Linux 10rpm-sequoiaNot affected
Red Hat Enterprise Linux 10rpm-sequoia-develNot affected
Red Hat Enterprise Linux 10rust-rpm-sequoiaNot affected
Red Hat Enterprise Linux 10s390utilsNot affected
Red Hat Enterprise Linux 10s390utils-baseNot affected
Red Hat Enterprise Linux 10s390utils-chreipl-fcp-mpathNot affected
Red Hat Enterprise Linux 10s390utils-cmsfs-fuseNot affected
Red Hat Enterprise Linux 10s390utils-coreNot affected
Red Hat Enterprise Linux 10s390utils-cpacfstatsdNot affected
Red Hat Enterprise Linux 10s390utils-cpuplugdNot affected
Red Hat Enterprise Linux 10s390utils-develNot affected
Red Hat Enterprise Linux 10s390utils-hmcdrvfsNot affected
Red Hat Enterprise Linux 10s390utils-iucvtermNot affected
Red Hat Enterprise Linux 10s390utils-mon_statdNot affected
Red Hat Enterprise Linux 10s390utils-osasnmpdNot affected
Red Hat Enterprise Linux 10s390utils-se-dataNot affected
Red Hat Enterprise Linux 10s390utils-zdsfsNot affected
Red Hat Enterprise Linux 10s390utils-ziomonNot affected
Red Hat Enterprise Linux 10sevctlNot affected
Red Hat Enterprise Linux 10system-reinstall-bootcNot affected
Red Hat Enterprise Linux 9389-ds-baseNot affected
Red Hat Enterprise Linux 9389-ds-base-develNot affected
Red Hat Enterprise Linux 9389-ds-base-libsNot affected
Red Hat Enterprise Linux 9389-ds-base-snmpNot affected
Red Hat Enterprise Linux 9bootcFixed0:1.1.6-3.el9_6RHSA-2025:7160
Red Hat Enterprise Linux 9bootupdFixed0:0.2.27-3.el9RHSA-2025:7241
Red Hat Enterprise Linux 9fdo-admin-cliFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-clientFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-initFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-manufacturing-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-owner-cliFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-owner-onboarding-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9fdo-rendezvous-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9keylime-agent-rustFixed0:0.2.2-2.el9RHSA-2025:7313
Red Hat Enterprise Linux 9python3-lib389Not affected
Red Hat Enterprise Linux 9python3.12-cryptographyFixed0:41.0.7-2.el9RHSA-2025:7317
Red Hat Enterprise Linux 9rpm-ostreeFixed0:2025.5-1.el9RHSA-2025:7147
Red Hat Enterprise Linux 9rpm-ostree-libsFixed0:2025.5-1.el9RHSA-2025:7147
Red Hat Enterprise Linux 9rust-bootupdFixed0:0.2.27-3.el9RHSA-2025:7241
Red Hat Enterprise Linux 9sevctlNot affected
Red Hat Enterprise Linux 9system-reinstall-bootcFixed0:1.1.6-3.el9_6RHSA-2025:7160
Red Hat Enterprise Linux 9trustee-guest-componentsFix pending
Fix deferred
Red Hat Enterprise Linux 8389-ds-baseNot affected
Red Hat Enterprise Linux 8389-ds-base-develNot affected
Red Hat Enterprise Linux 8389-ds-base-legacy-toolsNot affected
Red Hat Enterprise Linux 8389-ds-base-libsNot affected
Red Hat Enterprise Linux 8389-ds-base-snmpNot affected
Red Hat Enterprise Linux 8cockpit-389-dsNot affected
Red Hat Enterprise Linux 8python3-lib389Not affected
Red Hat Enterprise Linux 8python3.12-cryptographyNot affected
AlmaLinux 9bootcFixed1.1.6-3.el9_6ALSA-2025:7160
AlmaLinux 9bootupdFixed0.2.27-3.el9ALSA-2025:7241
AlmaLinux 9keylime-agent-rustFixed0.2.2-2.el9ALSA-2025:7313
AlmaLinux 9python3.12-cryptographyFixed41.0.7-2.el9ALSA-2025:7317
AlmaLinux 9rpm-ostreeFixed2025.5-1.el9ALSA-2025:7147
AlmaLinux 9rpm-ostree-libsFixed2025.5-1.el9ALSA-2025:7147
AlmaLinux 9system-reinstall-bootcFixed1.1.6-3.el9_6ALSA-2025:7160
Rocky Linux 9bootcFixed0:1.1.6-3.el9_6RLSA-2025:7160
Rocky Linux 9keylime-agent-rustFixed0:0.2.2-2.el9RLSA-2025:7313
Rocky Linux 9python3.12-cryptographyFixed0:41.0.7-2.el9RLSA-2025:7317
Rocky Linux 9rust-bootupdFixed0:0.2.27-3.el9RLSA-2025:7241
crates.io libraryopensslFixed0.10.70RUSTSEC-2025-0004

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.