GitHub Advisoryadvisory · crates.io

GHSA-3wx7-46ch-7rq2 AES OCB fails to encrypt some bytes

HIGH Published 2022-07-06 Modified 2024-06-24 Official page ↗
Aliases
CVE-2022-2097
Ecosystem
crates.io
Packages
openssl-src
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-311, CWE-326, CWE-327
Reviewed
2022-07-06

Affected packages

• crates.io openssl-src: < 111.22.0 → fixed in 111.22.0 • crates.io openssl-src: >= 300.0.0, < 300.0.9 → fixed in 300.0.9

Description

AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimized implementation will not encrypt the entirety of the data under some circumstances. This could reveal sixteen bytes of data that was pre-existing 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.

Related

Alias · CVE (1)

  • CVE-2022-2097 AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised implementation will not encrypt the entirety of the data under… vulnerability

Weakness · CWE (3)

  • CWE-311 Missing Encryption of Sensitive Data weakness
  • CWE-326 Inadequate Encryption Strength weakness
  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm weakness

References