# CVE-2022-0778: libssl3t64: The BN_mod_sqrt() function, which computes a modular square root, containsa bug that can cause it to loop forever for...

CVE-2022-0778 is fixed in 50 products on 1 platform, first by libssl1.0.0 1.0.2n-1ubuntu5.8, released March 14, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-0778
- Priority: High
- CVSS: 7.5 (High)
- EPSS: 0.7319
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 14, 2022

## Description

The BN_mod_sqrt() function, which computes a modular square root, containsa bug that can cause it to loop forever for non-prime moduli. Internallythis function is used when parsing certificates that contain elliptic curvepublic keys in compressed form or explicit elliptic curve parameters with abase point encoded in compressed form. It is possible to trigger theinfinite loop by crafting a certificate that has invalid explicit curveparameters. Since certificate parsing happens prior to verification of thecertificate signature, any process that parses an externally suppliedcertificate may thus be subject to a denial of service attack. The infiniteloop can also be reached when parsing crafted private keys as they cancontain explicit elliptic curve parameters. Thus vulnerable situationsinclude: - TLS clients consuming server certificates - TLS serversconsuming client certificates - Hosting providers taking certificates orprivate keys from customers - Certificate authorities parsing certificationrequests from subscribers - Anything else which parses ASN.1 elliptic curveparameters Also any other applications that use the BN_mod_sqrt() where theattacker 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 initialparsing of the certificate which makes it slightly harder to trigger theinfinite loop. However any operation which requires the public key from thecertificate will trigger the infinite loop. In particular the attacker canuse a self-signed certificate to trigger the loop during verification ofthe certificate signature. This issue affects OpenSSL versions 1.0.2, 1.1.1and 3.0. It was addressed in the releases of 1.1.1n and 3.0.2 on the 15thMarch 2022. Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1). Fixed in OpenSSL1.1.1n (Affected 1.1.1-1.1.1m). Fixed in OpenSSL 1.0.2zd (Affected1.0.2-1.0.2zc).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | compat-openssl10 RHEL 8 | 1:1.0.2o-4.el8_6 | [RHSA-2022:5326](https://patchblox.com/security/data/fix/linux/rhsa-2022-5326.md) | Jun 30, 2022 |
| Linux | compat-openssl10 almalinux 8 | 1:1.0.2o-4.el8_6 | [ALSA-2022:5326](https://patchblox.com/security/data/fix/linux/alsa-2022-5326.md) | Jun 30, 2022 |
| Linux | compat-openssl10 ol 8 | 1:1.0.2o-4.el8_6 | [ELSA-2022-5326](https://patchblox.com/security/data/fix/linux/elsa-2022-5326.md) | Jul 1, 2022 |
| Linux | compat-openssl10 rocky 8 | 1:1.0.2o-4.el8_6 | [RLSA-2022:5326](https://patchblox.com/security/data/fix/linux/rlsa-2022-5326.md) | Jun 28, 2022 |
| Linux | compat-openssl11 RHEL 9 | 1:1.1.1k-4.el9_0 | [RHSA-2022:4899](https://patchblox.com/security/data/fix/linux/rhsa-2022-4899.md) | Jun 3, 2022 |
| Linux | compat-openssl11 ol 9 | 1:1.1.1k-4.0.1.el9_0 | [ELSA-2022-4899](https://patchblox.com/security/data/fix/linux/elsa-2022-4899.md) | Jun 30, 2022 |
| Linux | compat-openssl11 rocky 9 | 1:1.1.1k-4.el9_0 | [RLSA-2022:4899](https://patchblox.com/security/data/fix/linux/rlsa-2022-4899.md) | Jun 2, 2022 |
| Linux | libnode72 Ubuntu 22.04.1 LTS (jammy) | 12.22.9~dfsg-1ubuntu3.1 | [libnode72 12.22.9~dfsg-1ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libnode72-12.22.9-dfsg-1ubuntu3.1.md) | Jul 4, 2022 |
| Linux | libssl1.0.0 Ubuntu 18.04.6 LTS (bionic) | 1.0.2n-1ubuntu5.8 | [libssl1.0.0 1.0.2n-1ubuntu5.8](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssl1.0.0-1.0.2n-1ubuntu5.8.md) | Mar 14, 2022 |
| Linux | libssl1.1 Ubuntu 18.04.6 LTS (bionic) | 1.1.1-1ubuntu2.1~18.04.15 | [libssl1.1 1.1.1-1ubuntu2.1~18.04.15](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssl1.1-1.1.1-1ubuntu2.1-18.04.15.md) | Mar 14, 2022 |
| Linux | libssl1.1 Ubuntu 20.04 LTS (focal) | 1.1.1f-1ubuntu2.12 | [libssl1.1 1.1.1f-1ubuntu2.12](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libssl1.1-1.1.1f-1ubuntu2.12.md) | Mar 14, 2022 |
| Linux | libssl3 Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1 | [libssl3 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libssl3-3.0.2-0ubuntu1.md) | Mar 14, 2022 |
| Linux | libssl3t64 Ubuntu 24.10 (oracular) | 3.0.2-0ubuntu1 | [libssl3t64 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libssl3t64-3.0.2-0ubuntu1.md) | Mar 15, 2022 |
| Linux | libssl3t64 Ubuntu 25.04 (plucky) | 3.0.2-0ubuntu1 | [libssl3t64 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libssl3t64-3.0.2-0ubuntu1.md) | Mar 15, 2022 |
| Linux | mariadb105 amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-backup amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-backup-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-common amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-connect-engine amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-connect-engine-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-cracklib-password-check amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-cracklib-password-check-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-debugsource amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-devel amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-errmsg amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-gssapi-server amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-gssapi-server-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-oqgraph-engine amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-oqgraph-engine-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-pam amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-pam-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-rocksdb-engine amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-rocksdb-engine-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-server amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-server-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-server-utils amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-server-utils-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-sphinx-engine amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-sphinx-engine-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-test amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | mariadb105-test-debuginfo amzn 2023 | 3:10.5.16-1.amzn2023.0.7 | [ALAS2023-2023-037](https://patchblox.com/security/data/fix/linux/alas2023-2023-037.md) | Feb 17, 2023 |
| Linux | nodejs Ubuntu 22.04.1 LTS (jammy) | 12.22.9~dfsg-1ubuntu3.1 | [nodejs 12.22.9~dfsg-1ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nodejs-12.22.9-dfsg-1ubuntu3.1.md) | Jul 4, 2022 |
| Linux | openssl Debian 12.15 (bookworm) | 1.1.1n-1 | [DEBIAN-CVE-2022-0778](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0778.md) | Mar 15, 2022 |
| Linux | openssl Debian 13.5 (trixie) | 1.1.1n-1 | [DEBIAN-CVE-2022-0778](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0778.md) | Mar 15, 2022 |
| Linux | openssl Debian 14 | 1.1.1n-1 | [DEBIAN-CVE-2022-0778](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0778.md) | Mar 15, 2022 |
| Linux | openssl RHEL 8 | 1:1.1.1k-6.el8_5 | [RHSA-2022:1065](https://patchblox.com/security/data/fix/linux/rhsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl Ubuntu 18.04.6 LTS (bionic) | 1.1.1-1ubuntu2.1~18.04.15 | [openssl 1.1.1-1ubuntu2.1~18.04.15](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssl-1.1.1-1ubuntu2.1-18.04.15.md) | Mar 14, 2022 |
| Linux | openssl Ubuntu 20.04 LTS (focal) | 1.1.1f-1ubuntu2.12 | [openssl 1.1.1f-1ubuntu2.12](https://patchblox.com/security/data/fix/linux/ubuntu-focal-openssl-1.1.1f-1ubuntu2.12.md) | Mar 14, 2022 |
| Linux | openssl Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1 | [openssl 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-openssl-3.0.2-0ubuntu1.md) | Mar 14, 2022 |
| Linux | openssl Ubuntu 24.10 (oracular) | 3.0.2-0ubuntu1 | [openssl 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssl-3.0.2-0ubuntu1.md) | Mar 15, 2022 |
| Linux | openssl Ubuntu 25.04 (plucky) | 3.0.2-0ubuntu1 | [openssl 3.0.2-0ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-openssl-3.0.2-0ubuntu1.md) | Mar 15, 2022 |
| Linux | openssl almalinux 8 | 1:1.1.1k-6.el8_5 | [ALSA-2022:1065](https://patchblox.com/security/data/fix/linux/alsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl rocky 8 | 1:1.1.1k-6.el8_5 | [RLSA-2022:1065](https://patchblox.com/security/data/fix/linux/rlsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-debuginfo amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-debugsource amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-debugsource ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl-devel RHEL 8 | 1:1.1.1k-6.el8_5 | [RHSA-2022:1065](https://patchblox.com/security/data/fix/linux/rhsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-devel almalinux 8 | 1:1.1.1k-6.el8_5 | [ALSA-2022:1065](https://patchblox.com/security/data/fix/linux/alsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-devel amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-devel ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl-libs RHEL 8 | 1:1.1.1k-6.el8_5 | [RHSA-2022:1065](https://patchblox.com/security/data/fix/linux/rhsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-libs almalinux 8 | 1:1.1.1k-6.el8_5 | [ALSA-2022:1065](https://patchblox.com/security/data/fix/linux/alsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-libs amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-libs ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl-libs-debuginfo amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-perl RHEL 8 | 1:1.1.1k-6.el8_5 | [RHSA-2022:1065](https://patchblox.com/security/data/fix/linux/rhsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-perl almalinux 8 | 1:1.1.1k-6.el8_5 | [ALSA-2022:1065](https://patchblox.com/security/data/fix/linux/alsa-2022-1065.md) | Mar 28, 2022 |
| Linux | openssl-perl amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-perl ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl-static ol 8 | 2:1.1.1k-5.0.1.ksplice1.el8_5 | [ELSA-2022-9243](https://patchblox.com/security/data/fix/linux/elsa-2022-9243.md) | Mar 23, 2022 |
| Linux | openssl1.0 Ubuntu 18.04.6 LTS (bionic) | 1.0.2n-1ubuntu5.8 | [openssl1.0 1.0.2n-1ubuntu5.8](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssl1.0-1.0.2n-1ubuntu5.8.md) | Mar 14, 2022 |
| Linux | ovmf Ubuntu 22.04.1 LTS (jammy) | 2022.02-3ubuntu0.22.04.4 | [ovmf 2022.02-3ubuntu0.22.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ovmf-2022.02-3ubuntu0.22.04.4.md) | Aug 12, 2025 |
| Linux | ovmf-ia32 Ubuntu 22.04.1 LTS (jammy) | 2022.02-3ubuntu0.22.04.4 | [ovmf-ia32 2022.02-3ubuntu0.22.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ovmf-ia32-2022.02-3ubuntu0.22.04.4.md) | Aug 12, 2025 |
| Linux | qemu-efi Ubuntu 22.04.1 LTS (jammy) | 2022.02-3ubuntu0.22.04.4 | [qemu-efi 2022.02-3ubuntu0.22.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-qemu-efi-2022.02-3ubuntu0.22.04.4.md) | Aug 12, 2025 |
| Linux | qemu-efi-aarch64 Ubuntu 22.04.1 LTS (jammy) | 2022.02-3ubuntu0.22.04.4 | [qemu-efi-aarch64 2022.02-3ubuntu0.22.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-qemu-efi-aarch64-2022.02-3ubuntu0.22.04.4.md) | Aug 12, 2025 |
| Linux | qemu-efi-arm Ubuntu 22.04.1 LTS (jammy) | 2022.02-3ubuntu0.22.04.4 | [qemu-efi-arm 2022.02-3ubuntu0.22.04.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-qemu-efi-arm-2022.02-3ubuntu0.22.04.4.md) | Aug 12, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
