# CVE-2025-24898: rust openssl ssl::select\_next\_proto use after free

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-03 · Modified: 2025-02-12
- Aliases: RHSA-2025:7147, RHSA-2025:7160, RHSA-2025:7241, RHSA-2025:7313, RHSA-2025:7317, UBUNTU-CVE-2025-24898, DEBIAN-CVE-2025-24898, DLA-4049-1, CGA-4gw5-7f3x-vhc7, CGA-52qx-2rcj-wvfm, CGA-67fx-qcw2-qrwf, CGA-6g5w-6pmr-82xp, CGA-6vpv-qv5h-cwq3, CGA-8wjh-crhr-g9rj, CGA-cg44-pfcv-hwpv, CGA-fjgw-r8c7-xrjq, CGA-hcvg-cpcv-2wxf, CGA-hp4j-hcp5-876v, CGA-hq8m-jc87-2f9w, CGA-m6cf-hfc2-624h, CGA-p874-m95v-gphh, CGA-q943-4j98-vh4h, CGA-r963-h63r-q6f6, CGA-rw2q-vq6q-x7cc, CGA-v3mf-8jvw-fg2m, CGA-v9jw-3367-874v, CGA-vcjw-jj8x-93fm, CGA-w79m-5627-9gw3, CGA-wj8q-2hr8-wmmq, CGA-xj4r-4v67-pv67, openSUSE-SU-2025:14814-1, GHSA-rpmj-rpgj-qmpm, RUSTSEC-2025-0004
- Record: https://cvemate.com/vulnerability/CVE-2025-24898 · JSON: https://cvemate.com/vulnerability/CVE-2025-24898/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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.676%, percentile 53.622%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 47)

- chainguard berg (Chainguard): \< 0.4.7-r1
- chainguard linkerd-extension-init (Chainguard): \< 0.1.2-r1
- chainguard linkerd2 (Chainguard): \< 25.1.2-r1
- chainguard lychee (Chainguard): \< 0.18.0-r1
- chainguard nushell (Chainguard): \< 0.102.0-r0
- chainguard nushell-plugins (Chainguard): \< 0.102.0-r0
- chainguard rustup (Chainguard): \< 1.27.1-r5
- chainguard sccache (Chainguard): \< 0.9.1-r1
- chainguard sdp-identity-service (Chainguard): \< 1.3.7-r5
- chainguard sdp-k8s-injector (Chainguard): \< 1.3.7-r5
- chainguard zed (Chainguard): \< 0.171.6-r1
- wolfi berg (Wolfi): \< 0.4.7-r1
- wolfi linkerd-extension-init (Wolfi): \< 0.1.2-r1
- wolfi linkerd2 (Wolfi): \< 25.1.2-r1
- wolfi lychee (Wolfi): \< 0.18.0-r1
- wolfi nushell (Wolfi): \< 0.102.0-r0
- wolfi nushell-plugins (Wolfi): \< 0.102.0-r0
- wolfi rustup (Wolfi): \< 1.27.1-r5
- wolfi sccache (Wolfi): \< 0.9.1-r1
- wolfi sdp-identity-service (Wolfi): \< 1.3.7-r5

## References (first 20 of 34)

- <https://github.com/sfackler/rust-openssl/security/advisories/GHSA-rpmj-rpgj-qmpm>
- <https://github.com/sfackler/rust-openssl/pull/2360>
- <https://crates.io/crates/openssl>
- <https://lists.debian.org/debian-lts-announce/2025/02/msg00009.html>
- <https://access.redhat.com/errata/RHSA-2025:7147>
- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.6_release_notes/index>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2343573>
- <https://issues.redhat.com/browse/RHEL-59716>
- <https://issues.redhat.com/browse/RHEL-68131>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7147.json>
- <https://access.redhat.com/security/cve/CVE-2025-24898>
- <https://www.cve.org/CVERecord?id=CVE-2025-24898>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24898>
- <https://access.redhat.com/errata/RHSA-2025:7160>
- <https://issues.redhat.com/browse/RHEL-63018>
- <https://issues.redhat.com/browse/RHEL-66258>
- <https://issues.redhat.com/browse/RHEL-72862>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7160.json>
- <https://access.redhat.com/errata/RHSA-2025:7241>

---

Data as of 2026-12-05T07:37:27.183Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
