UBUNTU-CVE-2026-41676

Source
https://ubuntu.com/security/CVE-2026-41676
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-41676
Upstream
  • CVE-2026-41676
Published
2026-04-24T18:16:00Z
Modified
2026-05-20T16:25:42.423587453Z
Severity
  • 7.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U CVSS Calculator
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVPPKEYderive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.

References

Affected packages

Ubuntu:Pro:20.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Ffocal

Affected ranges

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

Affected versions

0.*
0.10.23-1
0.10.23-1ubuntu0.1~esm1

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"

Ubuntu:Pro:22.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fjammy

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
0.10.36-1ubuntu0.1~esm1

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"

Ubuntu:Pro:24.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fnoble

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
0.10.57-1ubuntu0.1~esm1

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"

Ubuntu:25.10 / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl?arch=source&distro=questing

Affected ranges

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

Affected versions

0.*
0.10.70-1
0.10.72-1

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"

Ubuntu:26.04:LTS / rust-openssl

Package

Name
rust-openssl
Purl
pkg:deb/ubuntu/rust-openssl?arch=source&distro=resolute

Affected ranges

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

Affected versions

0.*
0.10.72-1
0.10.73-1

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41676.json"