CVE-2025-24898
CVE-2025-24898 · rust openssl ssl::select_next_proto use after free
CVSS 6.3 · Medium · EPSS 0.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- rust-opensslNo fix published
- rust-openssl Debian 12No fix published
- rust-openssl Debian 13Update to 0.10.70-1
- rust-openssl Debian 14Update to 0.10.70-1
- and 3 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-openssl"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2026:23070-1 · SUSE Linux Micro 6.1 ·
- SUSE-SU-2026:23036-1 · SUSE Linux Micro 6.0 ·
- openSUSE-SU-2026:21464-1 · openSUSE Leap 16.0 ·
- USN-7891-1 · Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS ·
- RLSA-2025:7160 · Rocky Linux 9 ·
- RLSA-2025:7241 · Rocky Linux 9 ·
- RLSA-2025:7313 · Rocky Linux 9 ·
- RLSA-2025:7317 · Rocky Linux 9 ·
- RHSA-2025:7317 · Red Hat Enterprise Linux 9 appstream ·
- RHSA-2025:7313 · Red Hat Enterprise Linux 9 appstream ·
- RHSA-2025:7241 · Red Hat Enterprise Linux 9 appstream ·
- RHSA-2025:7160 · Red Hat Enterprise Linux 9 appstream ·
- RHSA-2025:7147 · Red Hat Enterprise Linux 9 appstream ·
- ALSA-2025:7147 · AlmaLinux 9 ·
- ALSA-2025:7160 · AlmaLinux 9 ·
- ALSA-2025:7241 · AlmaLinux 9 ·
- ALSA-2025:7313 · AlmaLinux 9 ·
- ALSA-2025:7317 · AlmaLinux 9 ·
- openSUSE-SU-2025:14814-1 · openSUSE Tumbleweed ·
- DLA-4049-1 · Debian 11 ·
Stack: system
Affected products and versions
rust-openssl
- Versions
- >= 0.10.0, < 0.10.70: Affected
No fix published
rust-openssl Debian 12
- Versions
- 0.10.45-1
- 0.10.57-1
- 0.10.64-1
- 0.10.68-1
- 0.10.70-1
- 0.10.72-1
All versions (10)
- 0.10.73-1
- 0.10.78-1
- 0.10.79-1
- 0.10.81-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-openssl Debian 13
- Affected ranges
- ECOSYSTEM: < 0.10.70-1
Update to 0.10.70-1
rust-openssl Debian 14
- Affected ranges
- ECOSYSTEM: < 0.10.70-1
Update to 0.10.70-1
rust-openssl Ubuntu Pro 20.04 LTS
- Versions
- 0.10.23-1
- Affected ranges
- ECOSYSTEM: < 0.10.23-1ubuntu0.1~esm1
Update to 0.10.23-1ubuntu0.1~esm1
rust-openssl Ubuntu Pro 22.04 LTS
- Versions
- 0.10.29-1
- 0.10.36-1
- Affected ranges
- ECOSYSTEM: < 0.10.36-1ubuntu0.1~esm1
Update to 0.10.36-1ubuntu0.1~esm1
rust-openssl Ubuntu Pro 24.04 LTS
- Versions
- 0.10.45-1
- 0.10.57-1
- Affected ranges
- ECOSYSTEM: < 0.10.57-1ubuntu0.1~esm1
Update to 0.10.57-1ubuntu0.1~esm1