CVE-2026-42770FFC-DH Peer Validation Uses Attacker-Supplied q
Issue summary: When EVP_PKEY_derive_set_peer() is called with a DHX (X9.42) peer key, the peer key is not properly checked for the subgroup membership. Impact summary: A malicious peer which presents an X9.42 key carrying the victim's p and g parameters, a forged q = r (a small prime factor of the cofactor (p−1)/q_local), and a public value Y of order r can recover the victim's private key after a small number of key exchange attempts. When EVP_PKEY_derive_set_peer() is called with a DHX (X9.42) peer key, the subgroup membership check Y^q ≡ 1 (mod p) is performed using the peer's own q parameter, not the local key's q. The peer's domain parameters are then matched against the domain parameters of the private key, but the value of q is not compared. A malicious peer who presents an X9.42 key carrying the victim's p, g, a forged q = r (a small prime factor of the cofactor), and a public value Y of order r passes all checks. The shared secret then takes only r distinct values, leaking priv mod r. Repeating for each small-prime factor of the cofactor and combining via CRT recovers the full private key (Lim–Lee / small-subgroup-confinement attack). The realistic attack surface is narrow: principally CMP deployments with long-lived RA/CA DHX keys and bespoke enterprise or government applications using X9.42 DHX static keys with interactive protocols and therefore this issue was assigned Low severity. The FIPS modules in 4.0, 3.6, 3.5, 3.4, 3.1.2 and 3.0 are affected by this issue.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | edk2 | Fix pending | UBUNTU-CVE-2026-42770 | |
| Ubuntu 26.10 | edk2-hwe | Fix pending | UBUNTU-CVE-2026-42770 | |
| Ubuntu 26.04 | edk2 | Under investigation | UBUNTU-CVE-2026-42770 | |
| Ubuntu 26.04 | edk2-hwe | Under investigation | UBUNTU-CVE-2026-42770 | |
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | openssl | Fixed | 3.5.5-1ubuntu3.2 | UBUNTU-CVE-2026-42770 |
| Ubuntu 25.10 | edk2 | Will not fix edk2 in jammy embeds OpenSSL 1.1.1j edk2 in noble embeds OpenSSL 3.0.9 edk2 in plucky embeds OpenSSL 3.4.0 edk2 in questing embeds OpenSSL 3.4.0 nodejs in… | UBUNTU-CVE-2026-42770 | |
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | openssl | Fixed | 3.5.3-1ubuntu3.4 | UBUNTU-CVE-2026-42770 |
| Ubuntu 24.04 | edk2 | Under investigation | UBUNTU-CVE-2026-42770 | |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Fixed | 3.0.13-0ubuntu3.11 | UBUNTU-CVE-2026-42770 |
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | nodejs | Fix pending | UBUNTU-CVE-2026-42770 | |
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.25 | UBUNTU-CVE-2026-42770 |
| Debian 14 | openssl | Fixed | 3.6.3-1 | DEBIAN-CVE-2026-42770 |
| Debian 13 | openssl | Fixed | 3.5.6-1~deb13u2 | DEBIAN-CVE-2026-42770 |
| Debian 12 | openssl | Fixed | 3.0.20-1~deb12u2 | DEBIAN-CVE-2026-42770 |
| Red Hat Enterprise Linux 10 | edk2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | edk2-ovmf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | edk2-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mokutil | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | openssl | Fixed | 1:3.5.5-4.el10_2 | RHSA-2026:25237 |
| Red Hat Enterprise Linux 10 | openssl-devel | Fixed | 1:3.5.5-4.el10_2 | RHSA-2026:25237 |
| Red Hat Enterprise Linux 10 | openssl-libs | Fixed | 1:3.5.5-4.el10_2 | RHSA-2026:25237 |
| Red Hat Enterprise Linux 10 | openssl-perl | Fixed | 1:3.5.5-4.el10_2 | RHSA-2026:25237 |
| Red Hat Enterprise Linux 10 | shim-aa64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-aarch64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.5.5-4.el9_8 | RHSA-2026:25239 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.5.5-4.el9_8 | RHSA-2026:25239 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.5.5-4.el9_8 | RHSA-2026:25239 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.5.5-4.el9_8 | RHSA-2026:25239 |
| Red Hat Enterprise Linux 9 | shim | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | edk2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | openssl-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | AAVMF | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | OVMF | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ovmf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | openssl-static | Fix pending Fix deferred | ||
| AlmaLinux 10 | openssl | Fixed | 1:3.5.5-4.el10_2.alma.1 | ALSA-2026:25237 |
| AlmaLinux 10 | openssl-devel | Fixed | 1:3.5.5-4.el10_2.alma.1 | ALSA-2026:25237 |
| AlmaLinux 10 | openssl-libs | Fixed | 1:3.5.5-4.el10_2.alma.1 | ALSA-2026:25237 |
| AlmaLinux 10 | openssl-perl | Fixed | 1:3.5.5-4.el10_2.alma.1 | ALSA-2026:25237 |
| AlmaLinux 9 | openssl | Fixed | 1:3.5.5-4.el9_8 | ALSA-2026:25239 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.5.5-4.el9_8 | ALSA-2026:25239 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.5.5-4.el9_8 | ALSA-2026:25239 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.5.5-4.el9_8 | ALSA-2026:25239 |
| Rocky Linux 10 | openssl | Fixed | 1:3.5.5-4.el10_2 | RLSA-2026:25237 |
| Rocky Linux 9 | openssl | Fixed | 1:3.5.5-4.el9_8 | RLSA-2026:25239 |
| Alpine Linux 3.24 | openssl | Fixed | 3.5.7-r0 | ALPINE-CVE-2026-42770 |
| Alpine Linux 3.23 | openssl | Fixed | 3.5.7-r0 | ALPINE-CVE-2026-42770 |
| Alpine Linux 3.22 | openssl | Fixed | 3.5.7-r0 | ALPINE-CVE-2026-42770 |
| Alpine Linux 3.21 | openssl | Fixed | 3.3.7-r1 | ALPINE-CVE-2026-42770 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 4.0.0 to before 4.0.1, 3.6.0 to before 3.6.3, 3.5.0 to before 3.5.7, 3.4.0 to before 3.4.6, 3.0.0 to before 3.0.21; fixed in
4.0.1,3.6.3,3.5.7,3.4.6,3.0.21
Vendor advisories:
- https://openssl-library.org/news/secadv/20260609.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/3da5a516cd2635a320ff748503db2cef7c4b0f02 (patch)
- https://github.com/openssl/openssl/commit/3ddbb7ab50bd93dfc59cbe08e269a67605aeebdb (patch)
- https://github.com/openssl/openssl/commit/ca2237ab5615641b662183b077f62c08d75e8070 (patch)
- https://github.com/openssl/openssl/commit/5f452bba2c681423d8fcffd120a19b757ee42e3c (patch)
- https://github.com/openssl/openssl/commit/7fbfde7677ed8808828bf00ff01c937ca04bdda2 (patch)
References
- https://openssl-library.org/news/secadv/20260609.txt
- https://github.com/openssl/openssl/commit/3da5a516cd2635a320ff748503db2cef7c4b0f02
- https://github.com/openssl/openssl/commit/3ddbb7ab50bd93dfc59cbe08e269a67605aeebdb
- https://github.com/openssl/openssl/commit/ca2237ab5615641b662183b077f62c08d75e8070
- https://github.com/openssl/openssl/commit/5f452bba2c681423d8fcffd120a19b757ee42e3c
- https://github.com/openssl/openssl/commit/7fbfde7677ed8808828bf00ff01c937ca04bdda2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.