{
    "CVE_data_meta": {
        "ASSIGNER": "openssl-security@openssl.org",
        "DATE_PUBLIC": "2022-07-05",
        "ID": "CVE-2022-2097",
        "STATE": "PUBLIC",
        "TITLE": "AES OCB fails to encrypt some bytes"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "OpenSSL",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4)"
                                        },
                                        {
                                            "version_value": "Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p)"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "OpenSSL"
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Alex Chernyakhovsky"
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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)."
            }
        ]
    },
    "impact": [
        {
            "lang": "eng",
            "url": "https://www.openssl.org/policies/secpolicy.html#moderate",
            "value": "Moderate"
        }
    ],
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Fencepost error"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://www.openssl.org/news/secadv/20220705.txt",
                "refsource": "CONFIRM",
                "url": "https://www.openssl.org/news/secadv/20220705.txt"
            },
            {
                "name": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a98f339ddd7e8f487d6e0088d4a9a42324885a93",
                "refsource": "CONFIRM",
                "url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a98f339ddd7e8f487d6e0088d4a9a42324885a93"
            },
            {
                "name": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=919925673d6c9cfed3c1085497f5dfbbed5fc431",
                "refsource": "CONFIRM",
                "url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=919925673d6c9cfed3c1085497f5dfbbed5fc431"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-3fdc2d3047",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/V6567JERRHHJW2GNGJGKDRNHR7SNPZK7/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-89a17be281",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6CK57NBQFTPUMXAPJURCGXUYT76NQAK/"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20220715-0011/",
                "url": "https://security.netapp.com/advisory/ntap-20220715-0011/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-41890e9e44",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA/"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202210-02",
                "url": "https://security.gentoo.org/glsa/202210-02"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf",
                "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5343",
                "url": "https://www.debian.org/security/2023/dsa-5343"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20230220 [SECURITY] [DLA 3325-1] openssl security update",
                "url": "https://lists.debian.org/debian-lts-announce/2023/02/msg00019.html"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20230420-0008/",
                "url": "https://security.netapp.com/advisory/ntap-20230420-0008/"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20240621-0006/",
                "url": "https://security.netapp.com/advisory/ntap-20240621-0006/"
            }
        ]
    }
}