Vulnerability · Published Jul 5, 2022 · Assigned by openssl

CVE-2022-2097AES OCB fails to encrypt some bytes

Medium 5.3

In plain English

A medium-severity security flaw in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.9% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)4.9%top 7.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8openssl1:1.1.1k-7.el8_6ALSA-2022:5818
AlmaLinux:9openssl1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux:8openssl-devel1:1.1.1k-7.el8_6ALSA-2022:5818
AlmaLinux:9openssl-devel1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux:8openssl-libs1:1.1.1k-7.el8_6ALSA-2022:5818
AlmaLinux:9openssl-libs1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux:8openssl-perl1:1.1.1k-7.el8_6ALSA-2022:5818
AlmaLinux:9openssl-perl1:3.0.1-41.el9_0ALSA-2022:6224
Alpine:v3.20openssl3.0.5-r0ALPINE-CVE-2022-2097
Alpine:v3.21openssl3.0.5-r0ALPINE-CVE-2022-2097
Alpine:v3.22openssl3.0.5-r0ALPINE-CVE-2022-2097
Alpine:v3.23openssl3.0.5-r0ALPINE-CVE-2022-2097
Alpine:v3.24openssl3.0.5-r0ALPINE-CVE-2022-2097
Debian:12openssl3.0.5-1DEBIAN-CVE-2022-2097
Debian:13openssl3.0.5-1DEBIAN-CVE-2022-2097
Debian:14openssl3.0.5-1DEBIAN-CVE-2022-2097
Rocky Linux:8openssl1:1.1.1k-7.el8_6RLSA-2022:5818
Ubuntu:22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.1USN-6457-1
Ubuntu:22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.1UBUNTU-CVE-2022-2097
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.6UBUNTU-CVE-2022-2097
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.6USN-5502-1

Affected products (as reported)

VendorProductVersions
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)

References