Skip to content
OpenAdvisories
High · 7.5 CVE-2026-31790 EUVD-2026-19969GHSA-vgxx-5xj5-q97x

Incorrect Failure Handling in RSA KEM RSASVE Encapsulation

Published Apr 7, 2026 · Updated May 12, 2026 · Assigned by openssl

Description

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.

Affected products

VendorProductAffectedFixed
OpenSSL OpenSSL 3.6.0 – < 3.6.2, 3.5.0 – < 3.5.6, 3.4.0 – < 3.4.5, 3.3.0 – < 3.3.7, 3.0.0 – < 3.0.20 3.6.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openssl 3.6.2-1 —
Debian 13 openssl 3.5.5-1~deb13u2 —
Debian 12 openssl 3.0.19-1~deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 edk2 +1 No fix yet —
Ubuntu 26.10 openssl 3.5.5-1ubuntu3 —
Ubuntu 26.04 LTS edk2 +1 No fix yet —
Ubuntu 26.04 LTS openssl 3.5.5-1ubuntu3 —
Ubuntu 25.10 edk2 No fix yet —
Ubuntu 25.10 openssl 3.5.3-1ubuntu3.3 —
Ubuntu 24.04 LTS edk2 No fix yet —
Ubuntu 24.04 LTS openssl 3.0.13-0ubuntu3.9 —
Ubuntu 22.04 LTS openssl 3.0.2-0ubuntu1.23 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 24.04 LTS openssl-fips 3.0.13-0ubuntu3.12+Fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS openssl +1 No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS openssl +1 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 edk2 +4 20251114-5.el10_2.2 RHSA-2026:39297
RHEL 10 openssl +3 1:3.5.5-2.el10_2 RHSA-2026:19066
RHEL 10 openssl-fips-provider +1 3.0.7-11.el10_2 RHSA-2026:27746
RHEL 9 openssl +3 1:3.5.5-2.el9_8 RHSA-2026:19218
RHEL 9 openssl-fips-provider +1 3.0.7-11.el9_8 RHSA-2026:27744
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS openssl +3 1:3.2.2-16.el10_0.7 RHSA-2026:71542
RHEL 10.0 EUS openssl-fips-provider +1 3.0.7-11.el10_0 RHSA-2026:27745
RHEL 9.6 EUS openssl +3 1:3.2.2-7.el9_6.4 RHSA-2026:83617
RHEL 9.6 EUS openssl-fips-provider +1 3.0.7-11.el9_0 RHSA-2026:28832
RHEL 9.4 E4S openssl +1 1:3.0.7-29.el9_4.3 RHSA-2026:84573
RHEL 9.4 E4S openssl-fips-provider +1 3.0.7-11.el9_0 RHSA-2026:28832
RHEL 9.2 E4S openssl +1 1:3.0.7-18.el9_2.4 RHSA-2026:84572
RHEL 9.2 E4S openssl-fips-provider +1 3.0.7-11.el9_0 RHSA-2026:28832
Red Hat Hardened Images 1 openssl +5 3.5.6-0.1.hum1 RHSA-2026:7261
Red Hat Hardened Images 1 openssl-fips-provider +1 3.0.7-1.2.hum1 RHSA-2026:28211

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 edk2-ovmf +3 20251114-5.el10_2.2 ALSA-2026:39297
AlmaLinux 10 openssl +3 1:3.5.5-2.el10_2.alma.1 ALSA-2026:19066
AlmaLinux 9 openssl +3 1:3.5.5-2.el9_8 ALSA-2026:19218

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 edk2 20251114-5.el10_2.2 RLSA-2026:39297
Rocky Linux 10 openssl 1:3.5.5-2.el10_2 RLSA-2026:19066
Rocky Linux 9 openssl 1:3.5.5-2.el9_8 RLSA-2026:19218
ReleasePackageFixed inAdvisory
SLES 15 SP7 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP7 openssl-3 3.2.3-150700.5.31.1 SUSE-SU-2026:1375-1
SLES 15 SP6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
SLES 15 SP5 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLES 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLES 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLES 12 SP5 openssl-1_0_0 1.0.2p-3.106.1 SUSE-SU-2026:1256-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21186-1
SLES for SAP 15 SP6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
SLES for SAP 15 SP5 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLES for SAP 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLES for SAP 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLES 16.0 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21186-1
SLE Micro 6.2 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21107-1
SLE Micro 6.1 openssl-3 3.1.4-slfo.1.1_9.1 SUSE-SU-2026:21037-1
SLE Micro 6.0 openssl-3 3.1.4-12.1 SUSE-SU-2026:21065-1
SLE Micro 5.4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE Micro 5.4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLE Micro 5.3 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE Micro 5.3 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLE Micro 5.2 openssl-1_1 1.1.1d-150200.11.109.1 SUSE-SU-2026:1216-1
SLE HPC 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLE HPC 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLE HPC 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE HPC 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openssl-3 3.5.3-4.1 openSUSE-SU-2026:10533-1
openSUSE Leap 16.0 openssl-3 3.5.0-160000.7.1 openSUSE-SU-2026:20525-1
openSUSE Leap 15.6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
openSUSE Leap 15.6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openssl 3.5.6-r0 —
Alpine v3.23 openssl 3.5.6-r0 —
Alpine v3.22 openssl 3.5.6-r0 —
Alpine v3.21 openssl 3.3.7-r0 —
Alpine v3.20 openssl 3.3.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 openssl +5 1:3.5.5-1.amzn2023.0.4 ALAS2023-2026-1586

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 openssl 3.3.5-5 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 edk2-ovmf +3 20251114-5.0.1.el10_2.2 ELSA-2026-39297
Oracle Linux 10 openssl +3 1:3.5.5-2.0.1.el10_2 ELSA-2026-19066
Oracle Linux 10 openssl-fips-provider +1 3.0.7-11.0.1.el10_2 ELSA-2026-27746
Oracle Linux 9 openssl +3 1:3.5.5-2.0.1.el9_8 ELSA-2026-19218
Oracle Linux 9 openssl-fips-provider +1 3.0.7-11.0.1.el9_8 ELSA-2026-27744

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openssl +1 3.6.2-r0 —

Advisories 47

References