CVE-2025-24898rust openssl ssl::select_next_proto use after free
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | rust-openssl | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | rust-openssl-sys | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-openssl | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-openssl-sys | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | rust-openssl | Fix pending | 0.10.57-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-24898 |
| Ubuntu 24.04 | rust-openssl-sys | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | rust-openssl | Fix pending | 0.10.36-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-24898 |
| Ubuntu 22.04 | rust-openssl-sys | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | rust-openssl | Fix pending | 0.10.23-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-24898 |
| Ubuntu 20.04 | rust-openssl-sys | Fix pending | ||
| Debian 14 | rust-openssl | Fixed | 0.10.70-1 | DEBIAN-CVE-2025-24898 |
| Debian 13 | rust-openssl | Fixed | 0.10.70-1 | DEBIAN-CVE-2025-24898 |
| Debian 12 | rust-openssl | Fix pending | DEBIAN-CVE-2025-24898 | |
| Red Hat Enterprise Linux 10 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-bdb | Not affected | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | afterburn | Not affected | ||
| Red Hat Enterprise Linux 10 | afterburn-dracut | Not affected | ||
| Red Hat Enterprise Linux 10 | bootc | Not affected | ||
| Red Hat Enterprise Linux 10 | bootupd | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | clevis-pin-tpm2 | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-admin-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-client | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-init | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-manufacturing-server | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-owner-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-owner-onboarding-server | Not affected | ||
| Red Hat Enterprise Linux 10 | fdo-rendezvous-server | Not affected | ||
| Red Hat Enterprise Linux 10 | keylime-agent-rust | Not affected | ||
| Red Hat Enterprise Linux 10 | keylime-agent-rust-common | Not affected | ||
| Red Hat Enterprise Linux 10 | keylime-agent-rust-ima-emulator | Not affected | ||
| Red Hat Enterprise Linux 10 | keylime-agent-rust-push | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 10 | rpm-ostree | Not affected | ||
| Red Hat Enterprise Linux 10 | rpm-ostree-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | rpm-sequoia | Not affected | ||
| Red Hat Enterprise Linux 10 | rpm-sequoia-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-rpm-sequoia | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-base | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-chreipl-fcp-mpath | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-cmsfs-fuse | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-core | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-cpacfstatsd | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-cpuplugd | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-hmcdrvfs | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-iucvterm | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-mon_statd | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-osasnmpd | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-se-data | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-zdsfs | Not affected | ||
| Red Hat Enterprise Linux 10 | s390utils-ziomon | Not affected | ||
| Red Hat Enterprise Linux 10 | sevctl | Not affected | ||
| Red Hat Enterprise Linux 10 | system-reinstall-bootc | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | bootc | Fixed | 0:1.1.6-3.el9_6 | RHSA-2025:7160 |
| Red Hat Enterprise Linux 9 | bootupd | Fixed | 0:0.2.27-3.el9 | RHSA-2025:7241 |
| Red Hat Enterprise Linux 9 | fdo-admin-cli | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-init | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-manufacturing-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-owner-cli | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-owner-onboarding-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | fdo-rendezvous-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | keylime-agent-rust | Fixed | 0:0.2.2-2.el9 | RHSA-2025:7313 |
| Red Hat Enterprise Linux 9 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 9 | python3.12-cryptography | Fixed | 0:41.0.7-2.el9 | RHSA-2025:7317 |
| Red Hat Enterprise Linux 9 | rpm-ostree | Fixed | 0:2025.5-1.el9 | RHSA-2025:7147 |
| Red Hat Enterprise Linux 9 | rpm-ostree-libs | Fixed | 0:2025.5-1.el9 | RHSA-2025:7147 |
| Red Hat Enterprise Linux 9 | rust-bootupd | Fixed | 0:0.2.27-3.el9 | RHSA-2025:7241 |
| Red Hat Enterprise Linux 9 | sevctl | Not affected | ||
| Red Hat Enterprise Linux 9 | system-reinstall-bootc | Fixed | 0:1.1.6-3.el9_6 | RHSA-2025:7160 |
| Red Hat Enterprise Linux 9 | trustee-guest-components | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-legacy-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-389-ds | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 8 | python3.12-cryptography | Not affected | ||
| AlmaLinux 9 | bootc | Fixed | 1.1.6-3.el9_6 | ALSA-2025:7160 |
| AlmaLinux 9 | bootupd | Fixed | 0.2.27-3.el9 | ALSA-2025:7241 |
| AlmaLinux 9 | keylime-agent-rust | Fixed | 0.2.2-2.el9 | ALSA-2025:7313 |
| AlmaLinux 9 | python3.12-cryptography | Fixed | 41.0.7-2.el9 | ALSA-2025:7317 |
| AlmaLinux 9 | rpm-ostree | Fixed | 2025.5-1.el9 | ALSA-2025:7147 |
| AlmaLinux 9 | rpm-ostree-libs | Fixed | 2025.5-1.el9 | ALSA-2025:7147 |
| AlmaLinux 9 | system-reinstall-bootc | Fixed | 1.1.6-3.el9_6 | ALSA-2025:7160 |
| Rocky Linux 9 | bootc | Fixed | 0:1.1.6-3.el9_6 | RLSA-2025:7160 |
| Rocky Linux 9 | keylime-agent-rust | Fixed | 0:0.2.2-2.el9 | RLSA-2025:7313 |
| Rocky Linux 9 | python3.12-cryptography | Fixed | 0:41.0.7-2.el9 | RLSA-2025:7317 |
| Rocky Linux 9 | rust-bootupd | Fixed | 0:0.2.27-3.el9 | RLSA-2025:7241 |
| crates.io library | openssl | Fixed | 0.10.70 | RUSTSEC-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.
- sfackler rust-openssl: affected: >= 0.10.0, < 0.10.70
References
- https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm
- https://github.com/sfackler/rust-openssl/pull/2360
- https://crates.io/crates/openssl
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.