p PatchFirst

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.

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 | sh
Check your server for free →

Channels 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

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

Original sources

Check your server →