CVE-2026-41676 rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- OpenSSLUbuntuDebian
Description
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 EVP_PKEY_derive, 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.
Upgrade path
15 packages: 3 fixed, 11 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux clamav(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux rpm-ostree(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| cbl-mariner rpm-ostree(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| cbl-mariner rust(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/rust-openssl(Debian 12) | = 0.10.45-1; = 0.10.57-1; = 0.10.64-1; = 0.10.68-1 +7 more | No fix listed | No fix yet |
| debian/rust-openssl(Debian 13) | = 0.10.72-1; = 0.10.73-1; = 0.10.78-1; = 0.10.79-1 +2 more | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io openssl(crates.io) | >= 0.9.27, < 0.10.78 | 0.10.78 | Fixed |
| debian/rust-openssl(Debian 14) | < 0.10.78-1; = 0.10.72-1; = 0.10.73-1 | 0.10.78-1 | Fixed |
| rust-openssl project rust-openssl | >= 0.9.27, < 0.10.78 | 0.10.78 | Fixed |
| rust-openssl | = >= 0.9.27, < 0.10.78 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rust-openssl | = >= 0.9.27, < 0.10.78 | No fix listed |
| debian/rust-openssl(Debian:12) | All versions | No fix listed |
| debian/rust-openssl(Debian:14) | < 0.10.78-1 | 0.10.78-1 |
| debian/rust-openssl(Debian:13) | All versions | No fix listed |
| cbl-mariner rpm-ostree(CBL-Mariner:2.0) | All versions | No fix listed |
| cbl-mariner rust(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux rpm-ostree(Azure Linux:3.0) | All versions | No fix listed |
| azure linux clamav(Azure Linux:3.0) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
| crates.io openssl(crates.io) | >= 0.9.27, < 0.10.78 | 0.10.78 |
| ubuntu/rust-openssl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rust-openssl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rust-openssl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-openssl(Ubuntu:26.10) | All versions | No fix listed |
| rust-openssl project rust-openssl | >= 0.9.27, < 0.10.78 | 0.10.78 |
| debian/rust-openssl(Debian:12) | = 0.10.45-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.57-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.64-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.68-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.70-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.73-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.78-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.79-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.81-1 | No fix listed |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rust-openssl(Debian:13) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.73-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.78-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.79-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.81-1 | No fix listed |
| debian/rust-openssl(Debian:14) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:14) | = 0.10.73-1 | No fix listed |
References
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5 vendor-advisory
- Debian Security Tracker CVE-2026-41676 vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- crates.io product
- rustsec.org vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org