中危 OpenSSL BN_mod_sqrt 拒绝服务漏洞(CVE-2022-0778)

CVE编号

CVE-2022-0778

利用情况

POC 已公开

补丁情况

官方补丁

披露时间

2022-03-16
漏洞描述
OpenSSL 是一个安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用。

根据OpenSSL官方公告描述,漏洞由于计算模平方根的 BN_mod_sqrt() 函数包含错误导致,该错误可能导致它对于非素数模数无限循环。当解析部分公钥或证书时,会使用此函数。由于证书解析发生在证书签名验证之前,攻击者可以通过制作恶意证书,并在解析外部证书的过程中使用该证书,最终导致拒绝服务。

漏洞利用条件苛刻,且影响版本有限,实际危害较低。
解决建议
该漏洞仅仅影响 1.0.2, 1.1.1 和 3.0 版本

OpenSSL 1.0.2 版本升级至 1.0.2zd (premium support customers only)
OpenSSL 1.1.1 版本升级至 1.1.1n
OpenSSL 3.0 版本升级至 3.0.2
参考链接
http://packetstormsecurity.com/files/167344/OpenSSL-1.0.2-1.1.1-3.0-BN_mod_sq...
http://seclists.org/fulldisclosure/2022/May/33
http://seclists.org/fulldisclosure/2022/May/35
http://seclists.org/fulldisclosure/2022/May/38
https://cert-portal.siemens.com/productcert/pdf/ssa-712929.pdf
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=3118eb649344...
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=380085481c64...
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a466912611aa...
https://lists.debian.org/debian-lts-announce/2022/03/msg00023.html
https://lists.debian.org/debian-lts-announce/2022/03/msg00024.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0002
https://security.gentoo.org/glsa/202210-02
https://security.netapp.com/advisory/ntap-20220321-0002/
https://security.netapp.com/advisory/ntap-20220429-0005/
https://security.netapp.com/advisory/ntap-20240621-0006/
https://support.apple.com/kb/HT213255
https://support.apple.com/kb/HT213256
https://support.apple.com/kb/HT213257
https://www.debian.org/security/2022/dsa-5103
https://www.openssl.org/news/secadv/20220315.txt
https://www.oracle.com/security-alerts/cpuapr2022.html
https://www.oracle.com/security-alerts/cpujul2022.html
https://www.tenable.com/security/tns-2022-06
https://www.tenable.com/security/tns-2022-07
https://www.tenable.com/security/tns-2022-08
https://www.tenable.com/security/tns-2022-09
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 netapp cloud_volumes_ontap_mediator - -
运行在以下环境
应用 netapp clustered_data_ontap - -
运行在以下环境
应用 netapp clustered_data_ontap_antivirus_connector - -
运行在以下环境
应用 netapp santricity_smi-s_provider - -
运行在以下环境
应用 netapp storagegrid - -
运行在以下环境
应用 openssl openssl * From
(including)
1.0.2
Up to
(excluding)
1.0.2zd
运行在以下环境
应用 openssl openssl * From
(including)
1.1.1
Up to
(excluding)
1.1.1n
运行在以下环境
应用 openssl openssl * From
(including)
3.0.0
Up to
(excluding)
3.0.2
运行在以下环境
系统 alibaba_cloud_linux_2.1903 openssl * Up to
(excluding)
1.0.2k-25.1.al7
运行在以下环境
系统 alibaba_cloud_linux_3 openssl * Up to
(excluding)
1.1.1k-5.0.2.al8
运行在以下环境
系统 alma_linux_8 openssl * Up to
(excluding)
1.1.1k-6.el8_5
运行在以下环境
系统 alpine_3.12 openssl * Up to
(excluding)
1.1.1n-r0
运行在以下环境
系统 alpine_3.13 openssl * Up to
(excluding)
1.1.1n-r0
运行在以下环境
系统 alpine_3.14 openssl * Up to
(excluding)
1.1.1n-r0
运行在以下环境
系统 alpine_3.15 openssl * Up to
(excluding)
1.1.1n-r0
运行在以下环境
系统 alpine_3.16 openssl * Up to
(excluding)
1.1.1n-r0
运行在以下环境
系统 alpine_3.17 openssl * Up to
(excluding)
3.5.1-r0
运行在以下环境
系统 alpine_3.18 openssl * Up to
(excluding)
3.5.1-r0
运行在以下环境
系统 alpine_3.19 openssl * Up to
(excluding)
3.5.1-r0
运行在以下环境
系统 alpine_3.20 openssl * Up to
(excluding)
3.5.1-r0
运行在以下环境
系统 amazon_2 edk2 * Up to
(excluding)
20200801stable-1.amzn2.0.5
运行在以下环境
系统 amazon_2022 openssl * Up to
(excluding)
3.0.5-1.amzn2022.0.2
运行在以下环境
系统 amazon_2023 openssl * Up to
(excluding)
3.0.5-1.amzn2023.0.4
运行在以下环境
系统 amazon_AMI openssl * Up to
(excluding)
1.0.2k-16.156.amzn1
运行在以下环境
系统 anolis_os_7 openssl * Up to
(excluding)
1.0.2k-25
运行在以下环境
系统 anolis_os_8 openssl * Up to
(excluding)
1.1.1k-5.0.2
运行在以下环境
系统 centos_7 openssl * Up to
(excluding)
1.0.2k-25.el7_9
运行在以下环境
系统 debian_10 openssl * Up to
(excluding)
1.1.1d-0+deb10u8
运行在以下环境
系统 debian_11 openssl * Up to
(excluding)
1.1.1k-1+deb11u2
运行在以下环境
系统 debian_12 openssl * Up to
(excluding)
1.1.1n-1
运行在以下环境
系统 debian_9 openssl * Up to
(excluding)
1.1.0l-1~deb9u5
运行在以下环境
系统 fedora_34 openssl * Up to
(excluding)
1.1.1n-1.fc34
运行在以下环境
系统 fedora_35 openssl * Up to
(excluding)
1.1.1n-1.fc35
运行在以下环境
系统 fedora_36 openssl1.1 * Up to
(excluding)
1.1.1n-1.fc36
运行在以下环境
系统 fedora_37 openssl1.1 * Up to
(excluding)
1.1.1n-1.fc37
运行在以下环境
系统 fedora_EPEL_7 openssl11 * Up to
(excluding)
1.1.1k-3.el7
运行在以下环境
系统 fedora_EPEL_8 openssl3 * Up to
(excluding)
3.0.1-18.el8.1
运行在以下环境
系统 kylinos_aarch64_V10 openssl * Up to
(excluding)
1.0.2k-21.el7_9.ns7.04
运行在以下环境
系统 kylinos_aarch64_V10SP1 openssl * Up to
(excluding)
1.1.1f-4.p06.ky10
运行在以下环境
系统 kylinos_aarch64_V10SP2 openssl * Up to
(excluding)
1.1.1f-4.p06.ky10
运行在以下环境
系统 kylinos_loongarch64_V10SP1 openssl * Up to
(excluding)
1.1.1f-2.p05.a.ky10
运行在以下环境
系统 kylinos_x86_64_V10 openssl * Up to
(excluding)
1.0.2k-21.el7_9.ns7.04
运行在以下环境
系统 kylinos_x86_64_V10SP1 openssl * Up to
(excluding)
1.1.1f-4.p06.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP2 openssl * Up to
(excluding)
1.1.1f-4.p06.ky10
运行在以下环境
系统 opensuse_Leap_15.3 npm12 * Up to
(excluding)
12.22.12-150200.4.32.1
运行在以下环境
系统 opensuse_Leap_15.4 npm12 * Up to
(excluding)
12.22.12-150200.4.32.1
运行在以下环境
系统 oracle_6 openssl * Up to
(excluding)
1.0.1e-59.0.3.ksplice1.el6_10
运行在以下环境
系统 oracle_7 openssl * Up to
(excluding)
1.0.2k-24.0.3.ksplice1.el7_9
运行在以下环境
系统 oracle_8 openssl * Up to
(excluding)
1.1.1k-6.el8_5
运行在以下环境
系统 oracle_9 compat-openssl11 * Up to
(excluding)
1.1.1k-4.0.1.el9_0
运行在以下环境
系统 redhat_7 openssl * Up to
(excluding)
1.0.2k-25.el7_9
运行在以下环境
系统 redhat_8 openssl * Up to
(excluding)
1.1.1k-6.el8_5
运行在以下环境
系统 redhat_9 compat-openssl11 * Up to
(excluding)
1.1.1k-4.el9_0
运行在以下环境
系统 rocky_linux_8 openssl * Up to
(excluding)
1.1.1k-6.el8_5
运行在以下环境
系统 rocky_linux_9 compat-openssl11 * Up to
(excluding)
1.1.1k-4.el9_0
运行在以下环境
系统 suse_12.sp5 openssl-1_1 * Up to
(excluding)
1.1.1d-2.61.1
运行在以下环境
系统 ubuntu_18.04 openssl * Up to
(excluding)
1.0.2n-1ubuntu5.8
运行在以下环境
系统 ubuntu_20.04 openssl * Up to
(excluding)
1.1.1f-1ubuntu2.12
运行在以下环境
系统 ubuntu_21.10 openssl * Up to
(excluding)
1.1.1l-1ubuntu1.2
运行在以下环境
系统 ubuntu_22.04 nodejs * Up to
(excluding)
12.22.9~dfsg-1ubuntu3.1
运行在以下环境
系统 ubuntu_22.10 openssl * Up to
(excluding)
3.0.2-0ubuntu1
运行在以下环境
硬件 netapp 500f - -
运行在以下环境
硬件 netapp a250 - -
阿里云评分
4.5
  • 攻击路径
    远程
  • 攻击复杂度
    困难
  • 权限要求
    无需权限
  • 影响范围
    有限影响
  • EXP成熟度
    POC 已公开
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    传输被破坏
  • 服务器危害
    DoS
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-835 不可达退出条件的循环(无限循环)
阿里云安全产品覆盖情况