{"id":"CVE-2022-2097","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. 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).","aliases":["GHSA-3wx7-46ch-7rq2","RUSTSEC-2022-0032"],"modified":"2026-11-18T01:06:28.829483922Z","published":"2022-07-05T10:30:13.658Z","related":["ALSA-2022:5818","ALSA-2022:6224","SUSE-SU-2022:2306-1","SUSE-SU-2022:2308-1","SUSE-SU-2022:2309-1","SUSE-SU-2022:2311-1","SUSE-SU-2022:2312-1","SUSE-SU-2022:2328-1","SUSE-SU-2022:2417-1","openSUSE-SU-2022:2328-1","openSUSE-SU-2024:12179-1","openSUSE-SU-2024:12204-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2097.json","unresolved_ranges":[{"extracted_events":[{"strategy":"StandaloneSingleVersion","range":[{"introduced":"Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4)"},{"last_affected":"Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4)"},{"introduced":"Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p)"},{"last_affected":"Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p)"}],"source":"AFFECTED_FIELD"}]}],"cna_assigner":"openssl"},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-332410.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-625862.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-879734.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf"},{"type":"WEB","url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=919925673d6c9cfed3c1085497f5dfbbed5fc431"},{"type":"WEB","url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a98f339ddd7e8f487d6e0088d4a9a42324885a93"},{"type":"WEB","url":"https://www.openssl.org/news/secadv/20220705.txt"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2097.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R6CK57NBQFTPUMXAPJURCGXUYT76NQAK/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6567JERRHHJW2GNGJGKDRNHR7SNPZK7/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2097"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-02"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220715-0011/"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230420-0008/"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240621-0006/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5343"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00019.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/kzalewski/openssl-1.1.1","events":[{"introduced":"5e834d3efb41f9a0fd01e2a1190b813097801fc8"},{"fixed":"5e834d3efb41f9a0fd01e2a1190b813097801fc8"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"1.1.1"},{"fixed":"1.1.1q"}],"source":"CPE_RANGE"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2097.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/openssl/openssl","events":[{"introduced":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"fixed":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"introduced":"89cd17a031e022211684eb7eb41190cf1910f9fa"},{"fixed":"ad4910fad22d57c6d685b0ca83bdb7b2bf69d8fd"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.1.1"},{"fixed":"1.1.1q"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"3.0.0"},{"fixed":"3.0.5"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"}]}}],"versions":["openssl-3.0.4","openssl-3.0.3","openssl-3.0.2","openssl-3.0.1","openssl-3.0.0"],"database_specific":{"vanir_signatures_modified":"2026-11-18T01:06:28Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2097.json","vanir_signatures":[{"target":{"file":"include/openssl/opensslv.h"},"deprecated":false,"digest":{"line_hashes":["28170854778703993674264004058177114599","73132526844288570625317440636111911761","177405411499435185068645597737938634778","224809958623850711330610094965797758930","295554444428855106393106961197201359586"],"threshold":0.9},"id":"CVE-2022-2097-c377fa22","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/e04bd3433fd84e1861bf258ea37928d9845e6a86"}]}}],"schema_version":"1.9.2"}