Skip to content
OpenAdvisories
High · 8.3 CVE-2026-41898 EUVD-2026-25587GHSA-hppc-g8h3-xhp3RUSTSEC-2026-0478

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

Published Apr 24, 2026 · Updated Apr 24, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
rust-openssl rust-openssl >= 0.9.24, < 0.10.78 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-openssl 0.10.78-1 —
Debian 13 rust-openssl No fix yet —
Debian 12 rust-openssl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-openssl No fix yet —
Ubuntu 26.04 LTS rust-openssl No fix yet —
Ubuntu 25.10 rust-openssl No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS rust-openssl No fix yet —
Ubuntu Pro 22.04 LTS rust-openssl No fix yet —
Ubuntu Pro 20.04 LTS rust-openssl No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-150600.10.12.1 SUSE-SU-2026:3152-1
SLES 15 SP7 rustup 1.28.2~0-150600.10.13.1 SUSE-SU-2026:2832-1
SLES 15 SP7 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES 15 SP7 snpguest 0.10.0-150700.3.6.1 SUSE-SU-2026:3791-1
SLES 15 SP7 snphost 0.6.1-150700.3.6.1 SUSE-SU-2026:3642-1
SLES 15 SP6 aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-150600.10.12.1 SUSE-SU-2026:3152-1
SLES 15 SP6 himmelblau 2.3.14+git0.e23b4c54-150500.11.12.1 SUSE-SU-2026:3576-1
SLES 15 SP6 python-cryptography 41.0.3-150600.23.9.1 SUSE-SU-2026:3026-1
SLES 15 SP6 rustup 1.28.2~0-150600.10.13.1 SUSE-SU-2026:2832-1
SLES 15 SP6 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES 15 SP5 himmelblau 2.3.14+git0.e23b4c54-150500.11.12.1 SUSE-SU-2026:3576-1
SLES 15 SP5 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLES 15 SP5 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
SLES 15 SP4 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLES 15 SP4 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
SLES 3 python-cryptography 41.0.3-150600.23.9.1 SUSE-SU-2026:3026-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22827-1
SLES for SAP 16.0 agama 17+647.daf9950fc-160000.12.1 SUSE-SU-2026:22622-1
SLES for SAP 16.0 aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-160000.1.1 SUSE-SU-2026:22841-1
SLES for SAP 16.0 python-cryptography 44.0.3-160000.4.1 SUSE-SU-2026:22624-1
SLES for SAP 16.0 python-maturin 1.8.7-160000.5.1 SUSE-SU-2026:22615-1
SLES for SAP 16.0 rust-keylime 0.2.9+49-160000.1.1 SUSE-SU-2026:22583-1
SLES for SAP 16.0 rustup 1.29.1~0-160000.1.1 SUSE-SU-2026:24014-1
SLES for SAP 16.0 sccache 0.18.0~2-160000.1.1 SUSE-SU-2026:23983-1
SLES for SAP 16.0 snpguest 0.10.0-160000.2.1 SUSE-SU-2026:23236-1
SLES for SAP 16.0 snphost 0.6.0-160000.3.1 SUSE-SU-2026:23327-1
SLES for SAP 15 SP6 himmelblau 2.3.14+git0.e23b4c54-150500.11.12.1 SUSE-SU-2026:3576-1
SLES for SAP 15 SP6 python-cryptography 41.0.3-150600.23.9.1 SUSE-SU-2026:3026-1
SLES for SAP 15 SP6 rustup 1.28.2~0-150600.10.13.1 SUSE-SU-2026:2832-1
SLES for SAP 15 SP6 sccache 0.16.0~0-150600.10.11.1 SUSE-SU-2026:3022-1
SLES for SAP 15 SP5 himmelblau 2.3.14+git0.e23b4c54-150500.11.12.1 SUSE-SU-2026:3576-1
SLES for SAP 15 SP5 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLES for SAP 15 SP5 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
SLES for SAP 15 SP4 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLES for SAP 15 SP4 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
SLES 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22827-1
SLES 16.0 agama 17+647.daf9950fc-160000.12.1 SUSE-SU-2026:22622-1
SLES 16.0 aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-160000.1.1 SUSE-SU-2026:22841-1
SLES 16.0 python-cryptography 44.0.3-160000.4.1 SUSE-SU-2026:22624-1
SLES 16.0 python-maturin 1.8.7-160000.5.1 SUSE-SU-2026:22615-1
SLES 16.0 rust-keylime 0.2.9+49-160000.1.1 SUSE-SU-2026:22583-1
SLES 16.0 rustup 1.29.1~0-160000.1.1 SUSE-SU-2026:24014-1
SLES 16.0 sccache 0.18.0~2-160000.1.1 SUSE-SU-2026:23983-1
SLES 16.0 snpguest 0.10.0-160000.2.1 SUSE-SU-2026:23236-1
SLES 16.0 snphost 0.6.0-160000.3.1 SUSE-SU-2026:23327-1
SLE Micro 6.2 afterburn 5.10.0.git73.b97f772-160000.1.1 SUSE-SU-2026:22787-1
SLE Micro 6.2 python-cryptography 44.0.3-160000.4.1 SUSE-SU-2026:22593-1
SLE Micro 6.2 python-maturin 1.8.7-160000.5.1 SUSE-SU-2026:22589-1
SLE Micro 6.2 rust-keylime 0.2.9+49-160000.1.1 SUSE-SU-2026:22554-1
SLE Micro 6.1 afterburn 5.10.0.git73.b97f772-slfo.1.1_1.1 SUSE-SU-2026:23071-1
SLE Micro 6.1 libkrun 1.4.10-slfo.1.1_2.1 SUSE-SU-2026:23070-1
SLE Micro 6.1 python-cryptography 42.0.4-slfo.1.1_5.1 SUSE-SU-2026:22895-1
SLE Micro 6.1 rust-keylime 0.2.9+49-slfo.1.1_1.1 SUSE-SU-2026:22898-1
SLE Micro 6.0 afterburn 5.10.0.git73.b97f772-1.1 SUSE-SU-2026:22917-1
SLE Micro 6.0 libkrun 1.4.10-2.1 SUSE-SU-2026:23036-1
SLE Micro 6.0 python-cryptography 42.0.4-5.1 SUSE-SU-2026:22801-1
SLE Micro 6.0 rust-keylime 0.2.9+49-1.1 SUSE-SU-2026:22921-1
SLE Micro 5.5 afterburn 5.10.0.git73.b97f772-150500.3.6.1 SUSE-SU-2026:2975-1
SLE Micro 5.5 rust-keylime 0.2.9+49-150500.3.19.1 SUSE-SU-2026:2807-1
SLE Micro 5.4 afterburn 5.10.0.git73.b97f772-150400.3.6.1 SUSE-SU-2026:2977-1
SLE Micro 5.4 rust-keylime 0.2.9+49-150400.3.19.1 SUSE-SU-2026:2826-1
SLE Micro 5.3 afterburn 5.10.0.git73.b97f772-150400.3.6.1 SUSE-SU-2026:2976-1
SLE Micro 5.3 rust-keylime 0.2.9+49-150400.3.21.1 SUSE-SU-2026:2825-1
SLE HPC 15 SP5 himmelblau 2.3.14+git0.e23b4c54-150500.11.12.1 SUSE-SU-2026:3576-1
SLE HPC 15 SP5 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLE HPC 15 SP5 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
SLE HPC 15 SP4 python-cryptography 41.0.3-150400.16.25.1 SUSE-SU-2026:3040-1
SLE HPC 15 SP4 rustup 1.28.2~0-150400.3.13.1 SUSE-SU-2026:2831-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed afterburn 5.10.0.git73.b97f772-1.1 openSUSE-SU-2026:11255-1
openSUSE Tumbleweed aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-1.1 openSUSE-SU-2026:11275-1
openSUSE Tumbleweed cargo-c 0.10.23-1.1 openSUSE-SU-2026:11210-1
openSUSE Tumbleweed python-maturin 1.14.1-1.1 openSUSE-SU-2026:11237-1
openSUSE Tumbleweed rust-keylime 0.2.9+49-1.1 openSUSE-SU-2026:11222-1
openSUSE Tumbleweed rustup 1.28.2~0-5.1 openSUSE-SU-2026:11223-1
openSUSE Tumbleweed sccache 0.16.0~0-3.1 openSUSE-SU-2026:11224-1
openSUSE Tumbleweed sdbootutil 1+git20260713.d869cf8-1.1 openSUSE-SU-2026:11262-1
openSUSE Tumbleweed snpguest 0.10.0-3.1 openSUSE-SU-2026:11653-1
openSUSE Tumbleweed snphost 0.7.0-3.1 openSUSE-SU-2026:11654-1
openSUSE Leap 16.0 afterburn 5.10.0.git73.b97f772-160000.1.1 openSUSE-SU-2026:21386-1
openSUSE Leap 16.0 agama 17+647.daf9950fc-160000.12.1 openSUSE-SU-2026:21292-1
openSUSE Leap 16.0 aws-nitro-enclaves-cli 1.4.5~git0.18a5f6f-160000.1.1 openSUSE-SU-2026:21406-1
openSUSE Leap 16.0 libkrun 1.4.10-160000.3.1 openSUSE-SU-2026:21464-1
openSUSE Leap 16.0 python-cryptography 44.0.3-160000.4.1 openSUSE-SU-2026:21294-1
openSUSE Leap 16.0 python-maturin 1.8.7-160000.5.1 openSUSE-SU-2026:21285-1
openSUSE Leap 16.0 rust-keylime 0.2.9+49-160000.1.1 openSUSE-SU-2026:21274-1
openSUSE Leap 16.0 rustup 1.29.1~0-160000.1.1 openSUSE-SU-2026:22016-1
openSUSE Leap 16.0 sccache 0.18.0~2-160000.1.1 openSUSE-SU-2026:21982-1
openSUSE Leap 16.0 sdbootutil 1+git20260908.c641fc2-160000.1.1 openSUSE-SU-2026:21933-1
openSUSE Leap 16.0 snpguest 0.10.0-160000.2.1 openSUSE-SU-2026:21579-1
openSUSE Leap 16.0 snphost 0.6.0-160000.3.1 openSUSE-SU-2026:21638-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 389-ds-base No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling deno 2.7.13-r0 —
Wolfi rolling rpm-sequoia 1.10.1-r10 —
Wolfi rolling rustup 1.29.0-r5 —
Wolfi rolling sccache 0.14.0-r4 —
Wolfi rolling sdp-identity-service 1.3.10-r5 —
Wolfi rolling sqlx 0.8.6-r5 —
Wolfi rolling vector 0.55.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io openssl >= 0.9.24, < 0.10.78 0.10.78 GHSA-hppc-g8h3-xhp3

Advisories 50

References