CVE-2026-31790Incorrect Failure Handling in RSA KEM RSASVE Encapsulation
Issue summary: Applications using RSASVE key encapsulation to establish a secret encryption key can send contents of an uninitialized memory buffer to a malicious peer. Impact summary: The uninitialized buffer might contain sensitive data from the previous execution of the application process which leads to sensitive data leakage to an attacker. RSA_public_encrypt() returns the number of bytes written on success and -1 on error. The affected code tests only whether the return value is non-zero. As a result, if RSA encryption fails, encapsulation can still return success to the caller, set the output lengths, and leave the caller to use the contents of the ciphertext buffer as if a valid KEM ciphertext had been produced. If applications use EVP_PKEY_encapsulate() with RSA/RSASVE on an attacker-supplied invalid RSA public key without first validating that key, then this may cause stale or uninitialized contents of the caller-provided ciphertext buffer to be disclosed to the attacker in place of the KEM ciphertext. As a workaround calling EVP_PKEY_public_check() or EVP_PKEY_public_check_quick() before EVP_PKEY_encapsulate() will mitigate the issue. The FIPS modules in 3.6, 3.5, 3.4, 3.3, 3.1 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-31790 | |
| Ubuntu 26.10 | edk2-hwe | Fix pending | UBUNTU-CVE-2026-31790 | |
| Ubuntu 26.10 | openssl | Fixed | 3.5.5-1ubuntu3 | UBUNTU-CVE-2026-31790 |
| Ubuntu 26.04 | edk2 | Fix pending | UBUNTU-CVE-2026-31790 | |
| Ubuntu 26.04 | edk2-hwe | Under investigation | UBUNTU-CVE-2026-31790 | |
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | openssl | Fixed | 3.5.5-1ubuntu3 | UBUNTU-CVE-2026-31790 |
| 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 3.6, 3.5,… | UBUNTU-CVE-2026-31790 | |
| Ubuntu 25.10 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | openssl | Fixed | 3.5.3-1ubuntu3.3 | UBUNTU-CVE-2026-31790 |
| Ubuntu 24.04 | edk2 | Fix pending | UBUNTU-CVE-2026-31790 | |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Fixed | 3.0.13-0ubuntu3.9 | UBUNTU-CVE-2026-31790 |
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.23 | UBUNTU-CVE-2026-31790 |
| Debian 14 | openssl | Fixed | 3.6.2-1 | DEBIAN-CVE-2026-31790 |
| Debian 13 | openssl | Fixed | 3.5.5-1~deb13u2 | DEBIAN-CVE-2026-31790 |
| Debian 12 | openssl | Fixed | 3.0.19-1~deb12u2 | DEBIAN-CVE-2026-31790 |
| Red Hat Enterprise Linux 10 | edk2 | Fixed | 0:20251114-5.el10_2.2 | RHSA-2026:39297 |
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Fixed | 0:20251114-5.el10_2.2 | RHSA-2026:39297 |
| Red Hat Enterprise Linux 10 | edk2-ovmf | Fixed | 0:20251114-5.el10_2.2 | RHSA-2026:39297 |
| Red Hat Enterprise Linux 10 | edk2-tools | Fixed | 0:20251114-5.el10_2.2 | RHSA-2026:39297 |
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Fixed | 0:20251114-5.el10_2.2 | RHSA-2026:39297 |
| Red Hat Enterprise Linux 10 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl | Fixed | 1:3.5.5-2.el10_2 | RHSA-2026:19066 |
| Red Hat Enterprise Linux 10 | openssl-devel | Fixed | 1:3.5.5-2.el10_2 | RHSA-2026:19066 |
| Red Hat Enterprise Linux 10 | openssl-fips-provider | Fixed | 0:3.0.7-11.el10_2 | RHSA-2026:27746 |
| Red Hat Enterprise Linux 10 | openssl-fips-provider-so | Fixed | 0:3.0.7-11.el10_2 | RHSA-2026:27746 |
| Red Hat Enterprise Linux 10 | openssl-libs | Fixed | 1:3.5.5-2.el10_2 | RHSA-2026:19066 |
| Red Hat Enterprise Linux 10 | openssl-perl | Fixed | 1:3.5.5-2.el10_2 | RHSA-2026:19066 |
| Red Hat Enterprise Linux 10 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.5.5-2.el9_8 | RHSA-2026:19218 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.5.5-2.el9_8 | RHSA-2026:19218 |
| Red Hat Enterprise Linux 9 | openssl-fips-provider | Fixed | 0:3.0.7-11.el9_8 | RHSA-2026:27744 |
| Red Hat Enterprise Linux 9 | openssl-fips-provider-so | Fixed | 0:3.0.7-11.el9_8 | RHSA-2026:27744 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.5.5-2.el9_8 | RHSA-2026:19218 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.5.5-2.el9_8 | RHSA-2026:19218 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| AlmaLinux 10 | edk2-aarch64 | Fixed | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux 10 | edk2-ovmf | Fixed | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux 10 | edk2-tools-doc | Fixed | 20251114-5.el10_2.2 | ALSA-2026:39297 |
| AlmaLinux 10 | openssl | Fixed | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux 10 | openssl-devel | Fixed | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux 10 | openssl-libs | Fixed | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux 10 | openssl-perl | Fixed | 1:3.5.5-2.el10_2.alma.1 | ALSA-2026:19066 |
| AlmaLinux 9 | openssl | Fixed | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.5.5-2.el9_8 | ALSA-2026:19218 |
| Rocky Linux 10 | edk2 | Fixed | 0:20251114-5.el10_2.2 | RLSA-2026:39297 |
| Rocky Linux 10 | openssl | Fixed | 1:3.5.5-2.el10_2 | RLSA-2026:19066 |
| Rocky Linux 9 | openssl | Fixed | 1:3.5.5-2.el9_8 | RLSA-2026:19218 |
| Alpine Linux 3.24 | openssl | Fixed | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Alpine Linux 3.23 | openssl | Fixed | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Alpine Linux 3.22 | openssl | Fixed | 3.5.6-r0 | ALPINE-CVE-2026-31790 |
| Alpine Linux 3.21 | openssl | Fixed | 3.3.7-r0 | ALPINE-CVE-2026-31790 |
| Alpine Linux 3.20 | openssl | Fixed | 3.3.7-r0 | ALPINE-CVE-2026-31790 |
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: 3.6.0 to before 3.6.2, 3.5.0 to before 3.5.6, 3.4.0 to before 3.4.5, 3.3.0 to before 3.3.7, 3.0.0 to before 3.0.20; fixed in
3.6.2,3.5.6,3.4.5,3.3.7,3.0.20
Vendor advisories:
- https://openssl-library.org/news/secadv/20260407.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/abd8b2eec7e3f3fda60ecfb68498b246b52af482 (patch)
- https://github.com/openssl/openssl/commit/001e01db3e996e13ffc72386fe79d03a6683b5ac (patch)
- https://github.com/openssl/openssl/commit/d5f8e71cd0a54e961d0c3b174348f8308486f790 (patch)
- https://github.com/openssl/openssl/commit/b922e24e5b23ffb9cb9e14cadff23d91e9f7e406 (patch)
- https://github.com/openssl/openssl/commit/eed200f58cd8645ed77e46b7e9f764e284df379e (patch)
References
- https://openssl-library.org/news/secadv/20260407.txt
- https://github.com/openssl/openssl/commit/abd8b2eec7e3f3fda60ecfb68498b246b52af482
- https://github.com/openssl/openssl/commit/001e01db3e996e13ffc72386fe79d03a6683b5ac
- https://github.com/openssl/openssl/commit/d5f8e71cd0a54e961d0c3b174348f8308486f790
- https://github.com/openssl/openssl/commit/b922e24e5b23ffb9cb9e14cadff23d91e9f7e406
- https://github.com/openssl/openssl/commit/eed200f58cd8645ed77e46b7e9f764e284df379e
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.