Out-of-bounds read in rust-openssl - CVE-2026-41898

 

Out-of-bounds read in rust-openssl - CVE-2026-41898

Published: April 20, 2026


Vulnerability identifier: #VU126494
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41898
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper bounds checking in the FFI trampolines for SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb when forwarding callback-returned lengths to OpenSSL. A remote attacker can trigger processing of a callback that returns an excessive length to disclose sensitive information.

The issue stems from passing the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] buffer provided to the closure.


Affected software

rust-openssl
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
Fedora
Public Cloud Module
Python 3 Module
Development Tools Module
openSUSE Leap
rust-eif_build
rust-ingredients
keylime-agent-rust
rust-keylime
rust-keylime-debuginfo
rust-oo7-cli
rust-cargo-vendor-filterer
rust-rpki
rust-nu
python311-maturin
aws-nitro-enclaves-cli-debuginfo
aws-nitro-enclaves-cli
aws-nitro-enclaves-cli-debugsource
system-group-ne
aws-nitro-enclaves-binaryblobs-upstream
aws-nitro-enclaves-binaryblobs-upstream-debuginfo
rust-tealdeer
rustup-debugsource
rustup-debuginfo
rustup
python311-cryptography

How to mitigate CVE-2026-41898

Install security update from vendor's website.

rust-openssl - update to 0.10.78
rust-eif_build - addressed in versions 0.2.1-7.el9, 0.2.1-7.fc43, 0.2.1-7.fc44
rust-ingredients - update to 0.2.2-4.fc43
keylime-agent-rust - addressed in versions 0.2.9-2.fc43, 0.2.9-2.fc44
rust-keylime - addressed in versions 0.2.9+49-150400.3.19.1, 0.2.9+49-150400.3.21.1, 0.2.9+49-150500.3.19.1
rust-keylime-debuginfo - addressed in versions 0.2.9+49-150400.3.19.1, 0.2.9+49-150400.3.21.1, 0.2.9+49-150500.3.19.1
rust-oo7-cli - update to 0.4.3-5.fc44
rust-cargo-vendor-filterer - addressed in versions 0.5.18-5.el9, 0.5.18-5.el10_2, 0.5.18-5.el10_3, 0.5.18-5.fc43, 0.5.18-5.fc44
rust-rpki - addressed in versions 0.18.6-4.el9, 0.18.6-4.el10_2, 0.18.6-4.el10_3, 0.18.6-4.fc43, 0.18.6-4.fc44
rust-nu - addressed in versions 0.99.1-17.el9, 0.99.1-17.fc43, 0.99.1-17.fc44
python311-maturin - update to 1.4.0-150600.3.15.1
aws-nitro-enclaves-cli-debuginfo - update to 1.4.5~git0.18a5f6f-150600.10.12.1
aws-nitro-enclaves-cli - update to 1.4.5~git0.18a5f6f-150600.10.12.1
aws-nitro-enclaves-cli-debugsource - update to 1.4.5~git0.18a5f6f-150600.10.12.1
system-group-ne - update to 1.4.5~git0.18a5f6f-150600.10.12.1
aws-nitro-enclaves-binaryblobs-upstream - update to 1.4.5~git0.18a5f6f-150600.10.12.1
aws-nitro-enclaves-binaryblobs-upstream-debuginfo - update to 1.4.5~git0.18a5f6f-150600.10.12.1
rust-tealdeer - addressed in versions 1.7.3-2.fc43, 1.7.3-2.fc44
rustup-debugsource - update to 1.28.2~0-150600.10.13.1
rustup-debuginfo - update to 1.28.2~0-150600.10.13.1
rustup - update to 1.28.2~0-150600.10.13.1
rustup - addressed in versions 1.29.0-4.fc43, 1.29.0-4.fc44
python311-cryptography - addressed in versions 41.0.3-150400.16.25.1, 41.0.3-150600.23.9.1

External References

Related Security Bulletins