PT-2025-5595 · Unknown+6 · Rust-Openssl+6

Mmastrac

·

Published

2025-02-02

·

Updated

2025-11-26

·

CVE-2025-24898

CVSS v4.0

6.3

Medium

VectorAV: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.

Exploit

Fix

Use After Free

Weakness Enumeration

Related Identifiers

ALSA-2025:7147
ALSA-2025:7160
ALSA-2025:7241
ALSA-2025:7313
ALSA-2025:7317
AZL-56427
BDU:2025-11081
CVE-2025-24898
DLA-4049-1
GHSA-RPMJ-RPGJ-QMPM
INFSA-2025_7147
INFSA-2025_7160
INFSA-2025_7241
INFSA-2025_7313
INFSA-2025_7317
OESA-2025-1120
OESA-2025-1121
OPENSUSE-SU-2025:14814-1
RHSA-2025:7147
RHSA-2025:7160
RHSA-2025:7241
RHSA-2025:7313
RHSA-2025:7317
RHSA-2025_7147
RHSA-2025_7160
RHSA-2025_7241
RHSA-2025_7313
RHSA-2025_7317
RUSTSEC-2025-0004
USN-7891-1

Affected Products

Almalinux
Debian
Linuxmint
Red Hat
Rocky Linux
Ubuntu
Rust-Openssl