Advisory

RUSTSEC-2022-0032

Also known as: CVE-2022-2097, GHSA-3wx7-46ch-7rq2

Summary

AES OCB fails to encrypt some bytes

Details

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.

Severity

Not rated by the source.

Dates

Published
2022-07-05 12:00 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

openssl-src

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 111.22.0, introduced 300.0.0, fixed 300.0.9 (semver)

Fixed versions

111.22.0, 300.0.9

Fix

  • Fixed version 111.22.0
    cargo update -p openssl-src --precise 111.22.0
  • 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: RustSec Advisory Database · CC0-1.0

Sources & licences