PT-2025-5595

CVE-2025-24898

·

Published

2025-02-02

·

Updated

2026-09-14

Description by

CVSS 4.0
6.3
Medium
MetricsAV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions rust-openssl versions prior to 0.10.70
Description The issue arises when ssl::select next proto returns a slice pointing into the server argument's buffer but with a lifetime bound to the client argument. If the server buffer's lifetime is shorter than the client buffer's, this can cause a use after free, potentially leading to the server crashing or returning arbitrary memory contents to the client. The function ssl::select next proto is typically used in the callback passed to SslContextBuilder::set alpn select callback. Code is only affected if the server buffer is constructed within the callback.
Recommendations To resolve the issue, update to version 0.10.70 or later of the openssl crate, which fixes the signature of ssl::select next proto to properly constrain the output buffer's lifetime to that of both input buffers. For versions prior to 0.10.70, ensure that the server buffer outlives the handshake or has a static lifetime to avoid the use after free issue.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-RPMJ-RPGJ-QMPM
ALSA-2025:7147
ALSA-2025:7160
ALSA-2025:7241
ALSA-2025:7313
ALSA-2025:7317
AZL-56427
DLA-4049-1
INFSA-2025_7147
INFSA-2025_7160
INFSA-2025_7241
INFSA-2025_7313
INFSA-2025_7317
OESA-2025-1120
OESA-2025-1121
OESA-2026-3710
OESA-2026-3711
OESA-2026-3712
OPENSUSE-SU-2025:14814-1
OPENSUSE-SU-2026:21464-1
RHSA-2025:7147
RHSA-2025_7147
RHSA-2025:7160
RHSA-2025_7160
RHSA-2025:7241
RHSA-2025_7241
RHSA-2025:7313
RHSA-2025_7313
RHSA-2025:7317
RHSA-2025_7317
RUSTSEC-2025-0004
SUSE-SU-2026:23036-1
SUSE-SU-2026:23070-1
USN-7891-1
Found an issue in the description? Have something to add? Feel free to write us 👾