Advisory

GHSA-3wx7-46ch-7rq2

Also known as: CVE-2022-2097, RUSTSEC-2022-0032

Summary

AES OCB fails to encrypt some bytes

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-07-06 19:57 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

openssl-src

crates.io · All systems

Affected

  • introduced 0, fixed 111.22.0 (semver)

Fixed versions

111.22.0

Fix

  • Fixed version 111.22.0
    cargo update -p openssl-src --precise 111.22.0

openssl-src

crates.io · All systems

Affected

  • introduced 300.0.0, fixed 300.0.9 (semver)

Fixed versions

300.0.9

Fix

  • Fixed version 300.0.9
    cargo update -p openssl-src --precise 300.0.9

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences