p PatchFirst

CVE-2026-41898

CVE-2026-41898 · rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network peer

CVSS 8.3 · High · EPSS 0.3% · 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 provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, the FFI trampolines behind SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb forwarded the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] that was handed to the closure. This can lead to buffer overflows and other unintended consequences. This vulnerability is fixed in 0.10.78.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • rust-openssl

    Versions
    • >= 0.9.24, < 0.10.78: 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

    Versions
    • 0.10.72-1
    • 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 14

    Versions
    • 0.10.72-1
    • 0.10.73-1
    Affected ranges
    • ECOSYSTEM: < 0.10.78-1

    Update to 0.10.78-1

  • rust-openssl Ubuntu Pro 20.04 LTS

    Versions
    • 0.10.23-1
    • 0.10.23-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu Pro 22.04 LTS

    Versions
    • 0.10.29-1
    • 0.10.36-1
    • 0.10.36-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu Pro 24.04 LTS

    Versions
    • 0.10.45-1
    • 0.10.57-1
    • 0.10.57-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu 25.10

    Versions
    • 0.10.70-1
    • 0.10.72-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu 26.10

    Versions
    • 0.10.73-1
    • 0.10.81-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu 26.04 LTS

    Versions
    • 0.10.72-1
    • 0.10.73-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →