Vulnerability CVE-2022-0778: Information

Description

The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities parsing certification requests from subscribers - Anything else which parses ASN.1 elliptic curve parameters Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to trigger the infinite loop. However any operation which requires the public key from the certificate will trigger the infinite loop. In particular the attacker can use a self-signed certificate to trigger the loop during verification of the certificate signature. This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0. It was addressed in the releases of 1.1.1n and 3.0.2 on the 15th March 2022. Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1). Fixed in OpenSSL 1.1.1n (Affected 1.1.1-1.1.1m). Fixed in OpenSSL 1.0.2zd (Affected 1.0.2-1.0.2zc).

Severity: HIGH (7.5) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Published: March 15, 2022
Modified: Nov. 7, 2023
Error type identifier: CWE-835

Fixed packages

Package name
Branch
Fixed in version
Version from repository
Errata ID
Task #
State
MySQLsisyphus8.0.29-alt18.0.36-alt1ALT-PU-2022-2156-1299826Fixed
MySQLsisyphus_e2k8.0.29-alt18.0.36-alt1ALT-PU-2022-5632-1-Fixed
MySQLsisyphus_riscv648.0.30-alt0.1.rv648.0.30-alt0.2.rv64ALT-PU-2022-5950-1-Fixed
MySQLp108.0.29-alt18.0.36-alt1ALT-PU-2022-2171-1302902Fixed
MySQLp10_e2k8.0.29-alt18.0.36-alt1ALT-PU-2022-5561-1-Fixed
MySQLc10f18.0.29-alt18.0.36-alt1ALT-PU-2022-2171-1302902Fixed
MySQLc9f28.0.30-alt1.0.c9.18.0.36-alt0.c9.1ALT-PU-2023-1912-1321845Fixed
mariadbsisyphus10.6.8-alt110.11.7-alt2.1ALT-PU-2022-2360-1304958Fixed
mariadbsisyphus_e2k10.6.9-alt1.110.11.7-alt2.1ALT-PU-2022-5935-1-Fixed
mariadbsisyphus_mipsel10.6.8-alt110.11.6-alt1ALT-PU-2022-5707-1-Fixed
mariadbsisyphus_riscv6410.6.8-alt110.11.7-alt2.1ALT-PU-2022-5713-1-Fixed
mariadbp1010.6.9-alt110.6.17-alt3ALT-PU-2022-2446-1304969Fixed
mariadbp10_e2k10.6.9-alt1.110.6.17-alt3ALT-PU-2022-5903-1-Fixed
mariadbp910.4.31-alt0.M90P.110.4.32-alt0.M90P.1ALT-PU-2023-6462-3332127Fixed
mariadbp9_mipsel10.4.31-alt0.M90P.110.4.32-alt0.M90P.1ALT-PU-2023-7193-1-Fixed
mariadbc10f110.6.9-alt110.6.17-alt1ALT-PU-2022-2446-1304969Fixed
mariadbc9f210.6.9-alt110.6.15-alt1ALT-PU-2023-1583-1317769Fixed
mysql-connector-odbcsisyphus8.0.29-alt18.0.36-alt1ALT-PU-2022-2167-1299827Fixed
mysql-connector-odbcsisyphus_e2k8.0.29-alt18.0.36-alt1ALT-PU-2022-5402-1-Fixed
mysql-connector-odbcsisyphus_mipsel8.0.29-alt18.0.35-alt2ALT-PU-2022-5353-1-Fixed
mysql-connector-odbcp108.0.29-alt18.0.36-alt1ALT-PU-2022-2174-1303150Fixed
mysql-connector-odbcp10_e2k8.0.29-alt18.0.36-alt1ALT-PU-2022-5387-1-Fixed
mysql-connector-odbcc10f18.0.29-alt18.0.30-alt1ALT-PU-2022-2174-1303150Fixed
nodesisyphus16.14.2-alt120.12.1-alt1ALT-PU-2022-1760-1298946Fixed
nodep1014.19.1-alt116.19.1-alt1ALT-PU-2022-1799-1298947Fixed
nodec10f114.19.1-alt116.19.1-alt1ALT-PU-2022-1799-1298947Fixed
nodec9f216.17.1-alt0.c9.116.19.1-alt0.c9.1ALT-PU-2022-3073-1303505Fixed
openssl1.1sisyphus1.1.1n-alt11.1.1w-alt1ALT-PU-2022-1489-1296704Fixed
openssl1.1sisyphus_e2k1.1.1n-alt11.1.1w-alt1ALT-PU-2022-4362-1-Fixed
openssl1.1sisyphus_mipsel1.1.1n-alt11.1.1w-alt1ALT-PU-2022-4280-1-Fixed
openssl1.1sisyphus_riscv641.1.1n-alt11.1.1w-alt1ALT-PU-2022-4283-1-Fixed
openssl1.1p101.1.1n-alt11.1.1w-alt0.p10.1ALT-PU-2022-1515-1296705Fixed
openssl1.1p10_e2k1.1.1n-alt11.1.1w-alt0.p10.1ALT-PU-2022-4334-1-Fixed
openssl1.1p91.1.1n-alt11.1.1u-alt1ALT-PU-2022-1562-1296706Fixed
openssl1.1p9_e2k1.1.1n-alt21.1.1u-alt1ALT-PU-2022-4737-1-Fixed
openssl1.1p9_mipsel1.1.1u-alt11.1.1u-alt1ALT-PU-2023-6358-1-Fixed
openssl1.1c10f11.1.1n-alt11.1.1w-alt0.p10.1ALT-PU-2022-1515-1296705Fixed
openssl1.1c9f21.1.1n-alt11.1.1w-alt0.p9.1ALT-PU-2022-1543-1296711Fixed
openssl10p91.0.2u-alt1.p9.21.0.2u-alt1.p9.2ALT-PU-2022-1563-1296706Fixed
openssl10p9_e2k1.0.2u-alt1.p9.21.0.2u-alt1.p9.2ALT-PU-2022-4734-1-Fixed
openssl10p81.0.2u-alt0.M80P.21.0.2u-alt0.M80P.2ALT-PU-2022-1598-1296709Fixed

References to Advisories, Solutions, and Tools

Hyperlink
Resource
https://www.openssl.org/news/secadv/20220315.txt
  • Vendor Advisory
DSA-5103
  • Third Party Advisory
[debian-lts-announce] 20220317 [SECURITY] [DLA 2953-1] openssl1.0 security update
  • Mailing List
  • Third Party Advisory
[debian-lts-announce] 20220317 [SECURITY] [DLA 2952-1] openssl security update
  • Mailing List
  • Third Party Advisory
https://security.netapp.com/advisory/ntap-20220321-0002/
  • Third Party Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0002
  • Third Party Advisory
https://www.tenable.com/security/tns-2022-06
  • Third Party Advisory
https://www.tenable.com/security/tns-2022-07
  • Third Party Advisory
https://www.tenable.com/security/tns-2022-08
  • Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html
  • Third Party Advisory
https://www.tenable.com/security/tns-2022-09
  • Third Party Advisory
https://security.netapp.com/advisory/ntap-20220429-0005/
  • Third Party Advisory
https://support.apple.com/kb/HT213256
  • Third Party Advisory
https://support.apple.com/kb/HT213255
  • Third Party Advisory
https://support.apple.com/kb/HT213257
  • Third Party Advisory
20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4
  • Mailing List
  • Third Party Advisory
20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6
  • Mailing List
  • Third Party Advisory
20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina
  • Mailing List
  • Third Party Advisory
http://packetstormsecurity.com/files/167344/OpenSSL-1.0.2-1.1.1-3.0-BN_mod_sqrt-Infinite-Loop.html
  • Third Party Advisory
  • VDB Entry
https://cert-portal.siemens.com/productcert/pdf/ssa-712929.pdf
  • Third Party Advisory
N/A
  • Third Party Advisory
GLSA-202210-02
  • Third Party Advisory
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a466912611aa6cbdf550cd10601390e587451246
    https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=3118eb64934499d93db3230748a452351d1d9a65
      https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=380085481c64de749a6dd25cdf0bcf4360b30f83
        FEDORA-2022-a5f51502f0
          FEDORA-2022-9e88b5d8d7
            FEDORA-2022-8bb51f6901
                1. Configuration 1

                  cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
                  Start including
                  3.0.0
                  End excliding
                  3.0.2

                  cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
                  Start including
                  1.0.2
                  End excliding
                  1.0.2zd

                  cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
                  Start including
                  1.1.0
                  End excliding
                  1.1.1n

                  Configuration 2

                  cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

                  cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

                  cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

                  Configuration 3

                  cpe:2.3:a:netapp:santricity_smi-s_provider:-:*:*:*:*:*:*:*

                  cpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:*

                  cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*

                  cpe:2.3:a:netapp:clustered_data_ontap_antivirus_connector:-:*:*:*:*:*:*:*

                  cpe:2.3:a:netapp:cloud_volumes_ontap_mediator:-:*:*:*:*:*:*:*

                  Configuration 4

                  cpe:2.3:o:netapp:a250_firmware:-:*:*:*:*:*:*:*

                  Running on/with:
                  cpe:2.3:h:netapp:a250:-:*:*:*:*:*:*:*

                  Configuration 5

                  cpe:2.3:o:netapp:500f_firmware:-:*:*:*:*:*:*:*

                  Running on/with:
                  cpe:2.3:h:netapp:500f:-:*:*:*:*:*:*:*

                  Configuration 6

                  cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*

                  cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*

                  Configuration 7

                  cpe:2.3:a:tenable:nessus:*:*:*:*:*:*:*:*
                  Start including
                  10.0.0
                  End excliding
                  10.1.2

                  cpe:2.3:a:tenable:nessus:*:*:*:*:*:*:*:*
                  End excliding
                  8.15.4

                  Configuration 8

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.3.0
                  End excliding
                  10.3.33

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.4.0
                  End excliding
                  10.4.23

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.5.0
                  End excliding
                  10.5.14

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.7.0
                  End excliding
                  10.7.2

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.6.0
                  End excliding
                  10.6.6

                  cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
                  Start including
                  10.2.0
                  End excliding
                  10.2.42

                  Configuration 9

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
                  Start including
                  12.0.0
                  End including
                  12.12.0

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
                  Start excluding
                  17.0.0
                  End excliding
                  17.7.2

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
                  Start including
                  16.13.0
                  End excliding
                  16.14.2

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
                  Start including
                  14.15.0
                  End excliding
                  14.19.1

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*
                  Start including
                  12.13.0
                  End excliding
                  12.22.11

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
                  Start excluding
                  16.0.0
                  End including
                  16.12.0

                  cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
                  Start excluding
                  14.0.0
                  End including
                  14.14.0