Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2025-24898

Опубликовано: 03 фев. 2025
Источник: redhat
CVSS3: 4.8
EPSS Низкий

Описание

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 crateopenssl 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.

A flaw was found in the rust-openssl package. In certain 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 error. This could cause the server to crash or return arbitrary memory contents to the client.

Отчет

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.

Меры по смягчению последствий

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.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
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

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-416
https://bugzilla.redhat.com/show_bug.cgi?id=2343573rust-openssl: rust openssl ssl::select_next_proto use after free

EPSS

Процентиль: 53%
0.00676
Низкий

4.8 Medium

CVSS3

Связанные уязвимости

ubuntu
почти 2 года назад

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.

nvd
почти 2 года назад

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.

msrc
10 месяцев назад

rust openssl ssl::select_next_proto use after free

debian
почти 2 года назад

rust-openssl is a set of OpenSSL bindings for the Rust programming lan ...

rocky
около 1 года назад

Moderate: python3.12-cryptography security update

EPSS

Процентиль: 53%
0.00676
Низкий

4.8 Medium

CVSS3