cve.bz

CVE-2025-24898 sfackler rust-openssl: Use After Free

6.3 mediumEPSS 0.7%Fix available

Medium (6.3) in sfackler rust-openssl. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in openssl 0.10.70.

On this page
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.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-24898 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24898?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24898?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24898 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
sfackler rust-openssl>= 0.10.0, < 0.10.70

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rpmj-rpgj-qmpmcrates.ioopenssl>=0.10.0 <0.10.700.10.70
RUSTSEC-2025-0004crates.ioopenssl>=0.0.0-0 <0.10.700.10.70

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rust-openssl0.10.29-1+deb11u1DLA-4049-1
Debian12rust-opensslno fix listedDEBIAN-CVE-2025-24898
Debian13, 14rust-openssl0.10.70-1DEBIAN-CVE-2025-24898
UbuntuPro:20.04:LTSrust-openssl0.10.23-1ubuntu0.1~esm1UBUNTU-CVE-2025-24898 USN-7891-1
UbuntuPro:22.04:LTSrust-openssl0.10.36-1ubuntu0.1~esm1UBUNTU-CVE-2025-24898 USN-7891-1
UbuntuPro:24.04:LTSrust-openssl0.10.57-1ubuntu0.1~esm1UBUNTU-CVE-2025-24898 USN-7891-1
Red Hatenterprise_linux:9::appstreambootc, bootc-debuginfo, bootc-debugsource and 2 more0:1.1.6-3.el9_6RHSA-2025:7160
Red Hatenterprise_linux:9::appstreambootupd, rust-bootupd, bootupd-debuginfo and 1 more0:0.2.27-3.el9RHSA-2025:7241
Red Hatenterprise_linux:9::appstreamkeylime-agent-rust, keylime-agent-rust-debuginfo, keylime-agent-rust-debugsource0:0.2.2-2.el9RHSA-2025:7313
Red Hatenterprise_linux:9::appstreampython3.12-cryptography, python3.12-cryptography-debuginfo, python3.12-cryptography-debugsource0:41.0.7-2.el9RHSA-2025:7317
Red Hatenterprise_linux:9::appstreamrpm-ostree, rpm-ostree-libs, rpm-ostree-debuginfo and 2 more0:2025.5-1.el9RHSA-2025:7147
SUSELinux Micro 6.0libkrun1.4.10-2.1SUSE-SU-2026:23036-1
SUSELinux Micro 6.1libkrun1.4.10-slfo.1.1_2.1SUSE-SU-2026:23070-1
openSUSELeap 16.0libkrun1.4.10-160000.3.1openSUSE-SU-2026:21464-1
openSUSETumbleweedobs-service-cargo4.5.0-2.1openSUSE-SU-2025:14814-1
AlmaLinux9bootc, system-reinstall-bootc1.1.6-3.el9_6ALSA-2025:7160
AlmaLinux9bootupd0.2.27-3.el9ALSA-2025:7241
AlmaLinux9keylime-agent-rust0.2.2-2.el9ALSA-2025:7313
AlmaLinux9python3.12-cryptography41.0.7-2.el9ALSA-2025:7317
AlmaLinux9rpm-ostree, rpm-ostree-libs2025.5-1.el9ALSA-2025:7147
Rocky Linux9bootc0:1.1.6-3.el9_6RLSA-2025:7160
Rocky Linux9keylime-agent-rust0:0.2.2-2.el9RLSA-2025:7313
Rocky Linux9python3.12-cryptography0:41.0.7-2.el9RLSA-2025:7317
Rocky Linux9rust-bootupd0:0.2.27-3.el9RLSA-2025:7241
Azure Linux3389-ds-baseno fix listedAZL-56427

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate-impact flaw affects Red Hat products that use the vulnerable rust-openssl functionality. In affected versions, ssl::select_next_proto can return a slice into the server buffer while its lifetime is tied only to the client buffer; if the server buffer is created within the callback and has a shorter lifetime, this can cause a use-after-free, potentially crashing the server or returning arbitrary memory contents to the client. Current affects identify affected records in Red Hat Enterprise Linux for rust-bootupd, python3.12-cryptography, bootc, keylime-agent-rust, and rpm-ostree, with trustee-guest-components and fido-device-onboard marked DEFER; the RHEL 8.4, 8.6, 8.8, and 8.10 python3.12-cryptography records and RHEL 9.6 sevctl record have delegated NOTAFFECTED resolutions, including vulnerable code not in the execute path where specified. Other Red Hat Enterprise Linux, Red Hat Directory Server, and Community Projects records are not affected because the vulnerable code is not present or not in the execute path. The Red Hat CVSS assessment is Moderate (4.8, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L), consistent with the upstream Moderate rating.

Red Hat's mitigation

Users should upgrade to an available vendor-provided update. Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9rpm-ostree-0:2025.5-1.el9Fixed 2025-05-13RHSA-2025:7147
Red Hat Enterprise Linux 9bootc-0:1.1.6-3.el9_6Fixed 2025-05-13RHSA-2025:7160
Red Hat Enterprise Linux 9rust-bootupd-0:0.2.27-3.el9Fixed 2025-05-13RHSA-2025:7241
Red Hat Enterprise Linux 9keylime-agent-rust-0:0.2.2-2.el9Fixed 2025-05-13RHSA-2025:7313
Red Hat Enterprise Linux 9python3.12-cryptography-0:41.0.7-2.el9Fixed 2025-05-13RHSA-2025:7317
Red Hat Directory Server 11redhat-ds:11/389-ds-baseNot affected
Red Hat Directory Server 12redhat-ds:12/389-ds-baseNot affected
Red Hat Enterprise Linux 10389-ds-baseNot affected
Red Hat Enterprise Linux 10bootcNot affected
Red Hat Enterprise Linux 10clevis-pin-tpm2Not affected
Red Hat Enterprise Linux 10fido-device-onboardNot affected
Red Hat Enterprise Linux 10keylime-agent-rustNot affected
Red Hat Enterprise Linux 10rpm-ostreeNot affected
Red Hat Enterprise Linux 10rust-afterburnNot affected
Red Hat Enterprise Linux 10rust-bootupdAffected
Red Hat Enterprise Linux 10rust-rpm-sequoiaNot affected
Red Hat Enterprise Linux 10rust-sevctlNot affected
Red Hat Enterprise Linux 10s390utilsNot affected
Red Hat Enterprise Linux 8389-ds:1.4/389-ds-baseNot affected
Red Hat Enterprise Linux 8python3.12-cryptographyNot affected
4 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-24898.

References

Check your stackJSON