CVE-2022-2097
AES OCB fails to encrypt some bytes
- Published
- Updated
- Reserved
- Assigned by
- openssl
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).
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 4.9% · top 7.9% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
- Fencepost error
- CWE-327 (opens in a new tab)All about CWE-327 and its CVEs
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.ioopenssl-srcGHSA-3wx7-46ch-7rq2 (opens in a new tab)
References (18)
- https://www.openssl.org/news/secadv/20220705.txt (opens in a new tab)x_transferred
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a98f339ddd7e8f487d6e0088d4a9a42324885a93 (opens in a new tab)x_transferred
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=919925673d6c9cfed3c1085497f5dfbbed5fc431 (opens in a new tab)x_transferred
- FEDORA-2022-3fdc2d3047 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-89a17be281 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20220715-0011/ (opens in a new tab)x_transferred
- FEDORA-2022-41890e9e44 (opens in a new tab)vendor-advisoryx_transferred
- GLSA-202210-02 (opens in a new tab)vendor-advisoryx_transferred
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf (opens in a new tab)x_transferred
- DSA-5343 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20230220 [SECURITY] [DLA 3325-1] openssl security update (opens in a new tab)mailing-listx_transferred
- https://security.netapp.com/advisory/ntap-20230420-0008/ (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240621-0006/ (opens in a new tab)x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-332410.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-879734.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3wx7-46ch-7rq2 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-2097)Record last updated .