ADVISORIES

RustSec Advisory Database

RUSTSEC-2022-0032

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.

Affected packages

EcosystemPackageAffected versions
crates.ioopenssl-src
From 0.0.0-0 before 111.22.0 (fixed in 111.22.0)
From 300.0.0 before 300.0.9 (fixed in 300.0.9)

References