From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 10beae64bf0d8a381ae7b2aa2cb8a1b9463999da Date: Tue, 15 Mar 2022 17:52:45 +0000 Message-ID: <4KJ1G63dXZz2xkb@people01.haj.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0065296327161833514==" List-Id: --===============0065296327161833514== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 10beae64bf0d8a381ae7b2aa2cb8a1b9463999da (commit) via e49e25ba694842a61d573ab54b9a1df87be242d8 (commit) via bac517874e0af73366e936059989e6b78fabb41a (commit) from b28f36faa526bc829a34509ec1703e466b374a6a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 10beae64bf0d8a381ae7b2aa2cb8a1b9463999da Author: Stefan Schantl Date: Tue Mar 15 18:25:57 2022 +0100 ids-functions.pl: Skip deleted.rules files =20 These rulefiles are used by various providers as a kind of reference and to store rules which have been taken out for correctness, performance reasons or because of other reasons. =20 Fixes #12794. =20 Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer commit e49e25ba694842a61d573ab54b9a1df87be242d8 Author: Michael Tremer Date: Tue Mar 15 17:51:59 2022 +0000 core166: Ship openssl =20 Signed-off-by: Michael Tremer commit bac517874e0af73366e936059989e6b78fabb41a Author: Michael Tremer Date: Tue Mar 15 17:51:13 2022 +0000 openssl: Update to 1.1.1n =20 OpenSSL Security Advisory [15 March 2022] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Infinite loop in BN_mod_sqrt() reachable when parsing certificates (CVE-2022-0778) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D =20 Severity: High =20 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. =20 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. =20 It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. =20 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. =20 Thus vulnerable situations include: =20 - 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 =20 Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. =20 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. =20 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. =20 OpenSSL 1.0.2 users should upgrade to 1.0.2zd (premium support customers only) OpenSSL 1.1.1 users should upgrade to 1.1.1n OpenSSL 3.0 users should upgrade to 3.0.2 =20 This issue was reported to OpenSSL on the 24th February 2022 by Tavis Ormandy from Google. The fix was developed by David Benjamin from Google and Tom=C3=A1=C5=A1 Mr=C3=A1z from OpenSSL. =20 Note =3D=3D=3D=3D =20 OpenSSL 1.0.2 is out of support and no longer receiving public updates. Extended support is available for premium support customers: https://www.openssl.org/support/contracts.html =20 OpenSSL 1.1.0 is out of support and no longer receiving updates of any kind. It is affected by the issue. =20 Users of these versions should upgrade to OpenSSL 3.0 or 1.1.1. =20 References =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 URL for this Security Advisory: https://www.openssl.org/news/secadv/20220315.txt =20 Note: the online version of the advisory may be updated with additional details over time. =20 For details of OpenSSL severity classifications please see: https://www.openssl.org/policies/secpolicy.html =20 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: config/cfgroot/ids-functions.pl | 6 ++++++ config/rootfiles/common/openssl | 8 ++++++++ config/rootfiles/{oldcore/100 =3D> core/166}/filelists/openssl | 0 lfs/openssl | 4 ++-- 4 files changed, 16 insertions(+), 2 deletions(-) copy config/rootfiles/{oldcore/100 =3D> core/166}/filelists/openssl (100%) Difference in files: diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index c4edd968d..94dccc8ae 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -547,6 +547,12 @@ sub extractruleset ($) { # Skip rule files which are not located in the rules directory or archiv= e root. next unless(($packed_file =3D~ /^rules\//) || ($packed_file !~ /\//)); =20 + # Skip deleted.rules. + # + # Mostly they have been taken out for correctness or performance reasons= and therfore + # it is not a great idea to enable any of them. + next if($file =3D~ m/deleted.rules$/); + my $rulesfilename; =20 # Splitt the filename into chunks. diff --git a/config/rootfiles/common/openssl b/config/rootfiles/common/openssl index d690f5be0..a83eb4c47 100644 --- a/config/rootfiles/common/openssl +++ b/config/rootfiles/common/openssl @@ -661,6 +661,7 @@ usr/lib/libssl.so.1.1 #usr/share/doc/openssl/html/man3/BN_mod_mul_montgomery.html #usr/share/doc/openssl/html/man3/BN_mod_mul_reciprocal.html #usr/share/doc/openssl/html/man3/BN_mod_sqr.html +#usr/share/doc/openssl/html/man3/BN_mod_sqrt.html #usr/share/doc/openssl/html/man3/BN_mod_sub.html #usr/share/doc/openssl/html/man3/BN_mod_word.html #usr/share/doc/openssl/html/man3/BN_mpi2bn.html @@ -3481,6 +3482,7 @@ usr/lib/libssl.so.1.1 #usr/share/doc/openssl/html/man3/X509_STORE_CTX_lookup_certs_fn.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_lookup_crls_fn.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_new.html +#usr/share/doc/openssl/html/man3/X509_STORE_CTX_purpose_inherit.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set0_crls.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set0_param.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set0_trusted_stack.html @@ -3492,6 +3494,8 @@ usr/lib/libssl.so.1.1 #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_error.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_error_depth.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_ex_data.html +#usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_purpose.html +#usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_trust.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_verify.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_set_verify_cb.html #usr/share/doc/openssl/html/man3/X509_STORE_CTX_verify_cb.html @@ -4638,6 +4642,7 @@ usr/lib/libssl.so.1.1 #usr/share/man/man3/BN_mod_mul_montgomery.3 #usr/share/man/man3/BN_mod_mul_reciprocal.3 #usr/share/man/man3/BN_mod_sqr.3 +#usr/share/man/man3/BN_mod_sqrt.3 #usr/share/man/man3/BN_mod_sub.3 #usr/share/man/man3/BN_mod_word.3 #usr/share/man/man3/BN_mpi2bn.3 @@ -7458,6 +7463,7 @@ usr/lib/libssl.so.1.1 #usr/share/man/man3/X509_STORE_CTX_lookup_certs_fn.3 #usr/share/man/man3/X509_STORE_CTX_lookup_crls_fn.3 #usr/share/man/man3/X509_STORE_CTX_new.3 +#usr/share/man/man3/X509_STORE_CTX_purpose_inherit.3 #usr/share/man/man3/X509_STORE_CTX_set0_crls.3 #usr/share/man/man3/X509_STORE_CTX_set0_param.3 #usr/share/man/man3/X509_STORE_CTX_set0_trusted_stack.3 @@ -7469,6 +7475,8 @@ usr/lib/libssl.so.1.1 #usr/share/man/man3/X509_STORE_CTX_set_error.3 #usr/share/man/man3/X509_STORE_CTX_set_error_depth.3 #usr/share/man/man3/X509_STORE_CTX_set_ex_data.3 +#usr/share/man/man3/X509_STORE_CTX_set_purpose.3 +#usr/share/man/man3/X509_STORE_CTX_set_trust.3 #usr/share/man/man3/X509_STORE_CTX_set_verify.3 #usr/share/man/man3/X509_STORE_CTX_set_verify_cb.3 #usr/share/man/man3/X509_STORE_CTX_verify_cb.3 diff --git a/config/rootfiles/core/166/filelists/openssl b/config/rootfiles/c= ore/166/filelists/openssl new file mode 120000 index 000000000..e011a9266 --- /dev/null +++ b/config/rootfiles/core/166/filelists/openssl @@ -0,0 +1 @@ +../../../common/openssl \ No newline at end of file diff --git a/lfs/openssl b/lfs/openssl index ababd7635..868288560 100644 --- a/lfs/openssl +++ b/lfs/openssl @@ -24,7 +24,7 @@ =20 include Config =20 -VER =3D 1.1.1m +VER =3D 1.1.1n =20 THISAPP =3D openssl-$(VER) DL_FILE =3D $(THISAPP).tar.gz @@ -74,7 +74,7 @@ objects =3D $(DL_FILE) =20 $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) =20 -$(DL_FILE)_MD5 =3D 8ec70f665c145c3103f6e330f538a9db +$(DL_FILE)_MD5 =3D 2aad5635f9bb338bc2c6b7d19cbc9676 =20 install : $(TARGET) =20 hooks/post-receive -- IPFire 2.x development tree --===============0065296327161833514==--