Описание
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 11 | redhat-ds:11/389-ds-base | Not affected | ||
| Red Hat Directory Server 12 | redhat-ds:12/389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 10 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 10 | bootc | Not affected | ||
| Red Hat Enterprise Linux 10 | clevis-pin-tpm2 | Not affected | ||
| Red Hat Enterprise Linux 10 | fido-device-onboard | Not affected | ||
| Red Hat Enterprise Linux 10 | keylime-agent-rust | Not affected | ||
| Red Hat Enterprise Linux 10 | rpm-ostree | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-afterburn | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-bootupd | Affected |
Показывать по
Дополнительная информация
Статус:
EPSS
4.8 Medium
CVSS3
Связанные уязвимости
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.
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.
rust-openssl is a set of OpenSSL bindings for the Rust programming lan ...
EPSS
4.8 Medium
CVSS3