UBUNTU-CVE-2025-24898

Source
https://ubuntu.com/security/CVE-2025-24898
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24898.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-24898
Upstream
Published
2025-02-03T18:15:00Z
Modified
2025-09-08T17:08:11Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl@0.10.23-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.23-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-dev",
            "binary_version": "0.10.23-1"
        }
    ]
}

Ubuntu:Pro:20.04:LTS / rust-openssl-sys

Package

Name
rust-openssl-sys
Purl
pkg:deb/ubuntu/rust-openssl-sys@0.9.49-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.9.49-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-sys-dev",
            "binary_version": "0.9.49-1"
        }
    ]
}

Ubuntu:22.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl@0.10.36-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.29-1
0.10.36-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-dev",
            "binary_version": "0.10.36-1"
        }
    ]
}

Ubuntu:22.04:LTS / rust-openssl-sys

Package

Name
rust-openssl-sys
Purl
pkg:deb/ubuntu/rust-openssl-sys@0.9.67-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.9.55-2
0.9.67-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-sys-dev",
            "binary_version": "0.9.67-1"
        }
    ]
}

Ubuntu:24.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl@0.10.57-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.45-1
0.10.57-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-dev",
            "binary_version": "0.10.57-1"
        }
    ]
}

Ubuntu:24.04:LTS / rust-openssl-sys

Package

Name
rust-openssl-sys
Purl
pkg:deb/ubuntu/rust-openssl-sys@0.9.93-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.9.80-1
0.9.93-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-sys-dev",
            "binary_version": "0.9.93-1"
        }
    ]
}

Ubuntu:25.04 / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl@0.10.70-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.10.64-1
0.10.68-1
0.10.70-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-dev",
            "binary_version": "0.10.70-1"
        }
    ]
}

Ubuntu:25.04 / rust-openssl-sys

Package

Name
rust-openssl-sys
Purl
pkg:deb/ubuntu/rust-openssl-sys@0.9.105-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.9.101-1
0.9.104-1
0.9.105-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-openssl-sys-dev",
            "binary_version": "0.9.105-1"
        }
    ]
}