An update for linux-sgx is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS Security Advisory openeuler-security@openeuler.org openEuler security committee openEuler-SA-2022-1924 Final 1.0 1.0 2022-09-16 Initial 2022-09-16 2022-09-16 openEuler SA Tool V1.0 2022-09-16 linux-sgx security update An update for linux-sgx is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS. Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification. Security Fix(es): 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).(CVE-2022-0778) An update for linux-sgx is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS. openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section. High linux-sgx https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1924 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2022-0778 https://nvd.nist.gov/vuln/detail/CVE-2022-0778 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS linux-sgx-2.11.100-11.oe1.src.rpm linux-sgx-2.11.100-11.oe1.src.rpm linux-sgx-2.15.1-5.oe2203.src.rpm libsgx-dcap-ql-2.11.100-11.oe1.x86_64.rpm libsgx-launch-devel-2.11.100-11.oe1.x86_64.rpm sgx-aesm-service-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-launch-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-enclave-common-devel-2.11.100-11.oe1.x86_64.rpm sgxsdk-2.11.100-11.oe1.x86_64.rpm libsgx-quote-ex-2.11.100-11.oe1.x86_64.rpm libsgx-uae-service-2.11.100-11.oe1.x86_64.rpm libsgx-ra-network-2.11.100-11.oe1.x86_64.rpm libsgx-epid-devel-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-quote-ex-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-enclave-common-2.11.100-11.oe1.x86_64.rpm libsgx-launch-2.11.100-11.oe1.x86_64.rpm libsgx-ra-network-devel-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-quote-verify-2.11.100-11.oe1.x86_64.rpm libsgx-quote-ex-devel-2.11.100-11.oe1.x86_64.rpm libsgx-ae-epid-2.11.100-11.oe1.x86_64.rpm libsgx-urts-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-epid-plugin-2.11.100-11.oe1.x86_64.rpm linux-sgx-debuginfo-2.11.100-11.oe1.x86_64.rpm linux-sgx-debugsource-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-ql-devel-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-quote-verify-devel-2.11.100-11.oe1.x86_64.rpm libsgx-ra-uefi-2.11.100-11.oe1.x86_64.rpm sgx-pck-id-retrieval-tool-2.11.100-11.oe1.x86_64.rpm libsgx-epid-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-pce-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-ae-qe3-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-default-qpl-2.11.100-11.oe1.x86_64.rpm libsgx-pce-logic-2.11.100-11.oe1.x86_64.rpm libsgx-ae-pce-2.11.100-11.oe1.x86_64.rpm libsgx-ra-uefi-devel-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-default-qpl-devel-2.11.100-11.oe1.x86_64.rpm libsgx-ae-le-2.11.100-11.oe1.x86_64.rpm libsgx-qe3-logic-2.11.100-11.oe1.x86_64.rpm libsgx-ae-qve-2.11.100-11.oe1.x86_64.rpm sgx-dcap-pccs-2.11.100-11.oe1.x86_64.rpm sgx-ra-service-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-ecdsa-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-ra-uefi-2.11.100-11.oe1.x86_64.rpm libsgx-ra-network-2.11.100-11.oe1.x86_64.rpm linux-sgx-debuginfo-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-default-qpl-devel-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-default-qpl-2.11.100-11.oe1.x86_64.rpm linux-sgx-debugsource-2.11.100-11.oe1.x86_64.rpm libsgx-epid-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-launch-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-enclave-common-devel-2.11.100-11.oe1.x86_64.rpm sgx-pck-id-retrieval-tool-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-ql-devel-2.11.100-11.oe1.x86_64.rpm libsgx-quote-ex-2.11.100-11.oe1.x86_64.rpm libsgx-uae-service-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-quote-ex-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-ql-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-quote-verify-2.11.100-11.oe1.x86_64.rpm libsgx-dcap-quote-verify-devel-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-pce-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-ae-qve-2.11.100-11.oe1.x86_64.rpm sgx-aesm-service-2.11.100-11.oe1.x86_64.rpm libsgx-ra-uefi-devel-2.11.100-11.oe1.x86_64.rpm libsgx-launch-2.11.100-11.oe1.x86_64.rpm libsgx-quote-ex-devel-2.11.100-11.oe1.x86_64.rpm libsgx-ra-network-devel-2.11.100-11.oe1.x86_64.rpm sgx-dcap-pccs-2.11.100-11.oe1.x86_64.rpm libsgx-ae-epid-2.11.100-11.oe1.x86_64.rpm libsgx-ae-qe3-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-ecdsa-plugin-2.11.100-11.oe1.x86_64.rpm libsgx-qe3-logic-2.11.100-11.oe1.x86_64.rpm libsgx-urts-2.11.100-11.oe1.x86_64.rpm libsgx-ae-le-2.11.100-11.oe1.x86_64.rpm libsgx-ae-pce-2.11.100-11.oe1.x86_64.rpm libsgx-launch-devel-2.11.100-11.oe1.x86_64.rpm libsgx-pce-logic-2.11.100-11.oe1.x86_64.rpm sgx-ra-service-2.11.100-11.oe1.x86_64.rpm libsgx-aesm-epid-plugin-2.11.100-11.oe1.x86_64.rpm sgxsdk-2.11.100-11.oe1.x86_64.rpm libsgx-epid-devel-2.11.100-11.oe1.x86_64.rpm libsgx-enclave-common-2.11.100-11.oe1.x86_64.rpm libsgx-urts-2.15.1-5.oe2203.x86_64.rpm linux-sgx-debugsource-2.15.1-5.oe2203.x86_64.rpm libsgx-launch-devel-2.15.1-5.oe2203.x86_64.rpm sgx-ra-service-2.15.1-5.oe2203.x86_64.rpm libsgx-epid-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-default-qpl-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-aesm-epid-plugin-2.15.1-5.oe2203.x86_64.rpm libsgx-uae-service-2.15.1-5.oe2203.x86_64.rpm libsgx-ae-qve-2.15.1-5.oe2203.x86_64.rpm libsgx-ae-pce-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-default-qpl-2.15.1-5.oe2203.x86_64.rpm libsgx-aesm-pce-plugin-2.15.1-5.oe2203.x86_64.rpm libsgx-ra-network-2.15.1-5.oe2203.x86_64.rpm libsgx-headers-2.15.1-5.oe2203.x86_64.rpm libsgx-qe3-logic-2.15.1-5.oe2203.x86_64.rpm libsgx-aesm-quote-ex-plugin-2.15.1-5.oe2203.x86_64.rpm libsgx-enclave-common-2.15.1-5.oe2203.x86_64.rpm sgx-pck-id-retrieval-tool-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-quote-verify-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-epid-devel-2.15.1-5.oe2203.x86_64.rpm sgx-dcap-pccs-2.15.1-5.oe2203.x86_64.rpm libsgx-ae-qe3-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-ql-2.15.1-5.oe2203.x86_64.rpm libsgx-launch-2.15.1-5.oe2203.x86_64.rpm libsgx-ae-le-2.15.1-5.oe2203.x86_64.rpm libsgx-aesm-launch-plugin-2.15.1-5.oe2203.x86_64.rpm libsgx-pce-logic-2.15.1-5.oe2203.x86_64.rpm linux-sgx-debuginfo-2.15.1-5.oe2203.x86_64.rpm sgx-aesm-service-2.15.1-5.oe2203.x86_64.rpm libsgx-enclave-common-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-aesm-ecdsa-plugin-2.15.1-5.oe2203.x86_64.rpm libsgx-ra-uefi-devel-2.15.1-5.oe2203.x86_64.rpm sgxsdk-2.15.1-5.oe2203.x86_64.rpm libsgx-quote-ex-2.15.1-5.oe2203.x86_64.rpm libsgx-quote-ex-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-quote-verify-2.15.1-5.oe2203.x86_64.rpm libsgx-dcap-ql-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-ra-uefi-2.15.1-5.oe2203.x86_64.rpm libsgx-ra-network-devel-2.15.1-5.oe2203.x86_64.rpm libsgx-ae-epid-2.15.1-5.oe2203.x86_64.rpm 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). 2022-09-16 CVE-2022-0778 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS High 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H linux-sgx security update 2022-09-16 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1924