Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2022-2097 EUVD-2022-6221GHSA-3wx7-46ch-7rq2RUSTSEC-2022-0032

AES OCB fails to encrypt some bytes

Published Jul 5, 2022 · Updated Oct 14, 2026 · Assigned by openssl

Description

AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised implementation will not encrypt the entirety of the data under some circumstances. This could reveal sixteen bytes of data that was preexisting in the memory that wasn't written. In the special case of "in place" encryption, sixteen bytes of the plaintext would be revealed. Since OpenSSL does not support OCB based cipher suites for TLS and DTLS, they are both unaffected. Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4). Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p).

Affected products

VendorProductAffectedFixed
OpenSSL OpenSSL Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4), Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p) —

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.0.5-1 —
Debian 13 openssl 3.0.5-1 —
Debian 12 openssl 3.0.5-1 —
Debian 11 openssl 1.1.1n-0+deb11u4 DSA-5343-1
Debian 10 openssl 1.1.1n-0+deb10u4 DLA-3325-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nodejs 12.22.9~dfsg-1ubuntu3.1 USN-6457-1
Ubuntu 22.04 LTS openssl 3.0.2-0ubuntu1.6 USN-5502-1
Ubuntu 20.04 LTS openssl 1.1.1f-1ubuntu2.16 USN-5502-1
Ubuntu 18.04 LTS openssl 1.1.1-1ubuntu2.1~18.04.20 USN-5502-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS openssl No fix yet —
Ubuntu Pro FIPS 18.04 LTS openssl No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS openssl 1.1.1f-1ubuntu2.fips.16 —
Ubuntu Pro FIPS-updates 18.04 LTS openssl 1.1.1-1ubuntu2.fips.2.1~18.04.20 —
Ubuntu Pro 16.04 LTS edk2 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 openssl +3 1:3.0.1-41.el9_0 RHSA-2022:6224
RHEL 8 openssl +3 1:1.1.1k-7.el8_6 RHSA-2022:5818

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 openssl +3 1:3.0.1-41.el9_0 ALSA-2022:6224
AlmaLinux 8 openssl +3 1:1.1.1k-7.el8_6 ALSA-2022:5818

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 openssl 1:1.1.1k-7.el8_6 RLSA-2022:5818
ReleasePackageFixed inAdvisory
SLES 15 SP4 openssl-1_1 1.1.1l-150400.7.7.1 SUSE-SU-2022:2308-1
SLES 15 SP4 openssl-3 3.0.1-150400.4.7.1 SUSE-SU-2022:2306-1
SLES 15 SP3 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLES 15 SP2 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLES 15 SP1 openssl-1_1 1.1.0i-150100.14.36.1 SUSE-SU-2022:2311-1
SLES 15 openssl-1_1 1.1.0i-150000.4.74.1 SUSE-SU-2022:2309-1
Show 20 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SLES 12 SP4 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SLES 12 nodejs12 12.22.12-1.51.1 SUSE-SU-2022:2417-1
SLES for SAP 15 SP2 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLES for SAP 15 SP1 openssl-1_1 1.1.0i-150100.14.36.1 SUSE-SU-2022:2311-1
SLES for SAP 15 openssl-1_1 1.1.0i-150000.4.74.1 SUSE-SU-2022:2309-1
SLES for SAP 12 SP5 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SLES for SAP 12 SP4 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SLE Micro 5.2 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLE Micro 5.1 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLE HPC 15 SP2 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SLE HPC 15 SP1 openssl-1_1 1.1.0i-150100.14.36.1 SUSE-SU-2022:2311-1
SLE HPC 15 openssl-1_1 1.1.0i-150000.4.74.1 SUSE-SU-2022:2309-1
SUSE OpenStack Cloud Crowbar 9 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SUSE OpenStack Cloud 9 openssl-1_1 1.1.1d-2.69.1 SUSE-SU-2022:2312-1
SUSE Manager Server 4.1 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SUSE Manager Retail Branch Server 4.1 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SUSE Manager Proxy 4.1 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SUSE Enterprise Storage 7 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
SUSE Enterprise Storage 6 openssl-1_1 1.1.0i-150100.14.36.1 SUSE-SU-2022:2311-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openssl-1_1 1.1.1q-1.1 openSUSE-SU-2024:12179-1
openSUSE Tumbleweed openssl-3 3.0.5-1.1 openSUSE-SU-2024:12204-1
openSUSE Leap 15.4 openssl-1_1 1.1.1l-150400.7.7.1 SUSE-SU-2022:2308-1
openSUSE Leap 15.4 openssl-3 3.0.1-150400.4.7.1 SUSE-SU-2022:2306-1
openSUSE Leap 15.3 openssl-1_1 1.1.1d-150200.11.51.1 SUSE-SU-2022:2328-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.2 openssl-1_1 1.1.1d-150200.11.51.1 openSUSE-SU-2022:2328-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openssl 3.0.5-r0 —
Alpine v3.23 openssl 3.0.5-r0 —
Alpine v3.22 openssl 3.0.5-r0 —
Alpine v3.21 openssl 3.0.5-r0 —
Alpine v3.20 openssl 3.0.5-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 openssl 3.0.5-r0 —
Alpine v3.18 openssl 3.0.5-r0 —
Alpine v3.18 openssl1.1-compat 1.1.1q-r0 —
Alpine v3.17 openssl 3.0.5-r0 —
Alpine v3.17 openssl1.1-compat 1.1.1q-r0 —
Alpine v3.16 openssl 1.1.1q-r0 —
Alpine v3.16 openssl3 3.0.5-r0 —
Alpine v3.15 openssl 1.1.1q-r0 —
Alpine v3.15 openssl3 3.0.5-r0 —
Alpine v3.14 openssl 1.1.1q-r0 —
Alpine v3.13 openssl 1.1.1q-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 openssl +3 1:3.0.5-1.amzn2023.0.4 ALAS2023-2023-054, ALAS2023-2023-051
Amazon Linux 2 edk2-ovmf +4 20200801stable-1.amzn2.0.5 ALAS2-2024-2502
Amazon Linux 2 openssl11 +3 1:1.1.1g-12.amzn2.0.13 ALAS2-2023-1974

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 hvloader 1.0.1-2 —
Azure Linux 2 (CBL-Mariner) openssl 1.1.1k-20 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 graalvm22-ce-11 +41 22.3.0-1.el9 ELSA-2022-9955, ELSA-2022-9954, ELSA-2022-9953
Oracle Linux 9 openssl +3 1:3.0.1-41.0.1.el9_0 ELSA-2022-6224
Oracle Linux 8 graalvm22-ce-11 +41 22.3.0-1.el8 ELSA-2022-9951, ELSA-2022-9950, ELSA-2022-9949
Oracle Linux 8 openssl +3 1:1.1.1k-7.el8_6 ELSA-2022-5818
Oracle Linux 7 graalvm22-ce-11 +41 22.3.0-1.el7 ELSA-2022-9947, ELSA-2022-9946, ELSA-2022-9945

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io openssl-src < 111.22.0 111.22.0 GHSA-3wx7-46ch-7rq2
crates.io openssl-src >= 300.0.0, < 300.0.9 300.0.9 GHSA-3wx7-46ch-7rq2
crates.io openssl-src >= 0.0.0-0, < 111.22.0 · >= 300.0.0, < 300.0.9 111.22.0, 300.0.9 RUSTSEC-2022-0032

Advisories 50

References