From patchwork Tue Feb 22 12:50:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5224 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K2zZb25drz3xgV for ; Tue, 22 Feb 2022 12:51:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K2zZX2Kkjz5Qb; Tue, 22 Feb 2022 12:51:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K2zZX22mcz2yqy; Tue, 22 Feb 2022 12:51:48 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K2zZV2rnCz2yXK for ; Tue, 22 Feb 2022 12:51:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K2zZV0FSFz1PB; Tue, 22 Feb 2022 12:51:46 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1645534306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZvmqCAS+RqS5d5uUxKMNnUOTrC0kdOY681FXqLVfGKA=; b=tFrpeOud/Kwwg5jRd26x3yV0s+EPmtq2dMYY1hHllQ3MAnaTrX/eMhe5Tpi7dPmMF2ChRS h3ejNkOvJc1r2zBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1645534306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZvmqCAS+RqS5d5uUxKMNnUOTrC0kdOY681FXqLVfGKA=; b=cwHOJMt1K9kutYZzsSpxS9ls8qDonQDhyIGPVrjaATOtHHrsXIkG3muqZ2eSPpA8WAZdat 5Juq8W6eJYmWRw1vfDqSL0fZhECqR92gnybGKNM9ahiZErztgEZGKTdooyGFQs0K1FXUjp Ywpb0Kb8aJCIhm1/zAkdJcAeM/U6l1mDVuzkyG5icf3d0QK2jwFIy74RreYtRVIYbE+hrC AdkJnfZqAiOpCCNpAnuLEnchoNw7uYobVocBqYhkTjTneekpxxFZgh+9eEN2702duDKpcs 6x15wHAEHYgccXF6b0O+oD5YL2an29iS/4q/ofkEU8lqhZcF4333L9dcggQH7w== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 01/50] expat: Update to version 2.4.6 - Security/CVE fixes Date: Tue, 22 Feb 2022 12:50:46 +0000 Message-Id: <20220222125135.1211290-2-michael.tremer@ipfire.org> In-Reply-To: <20220222125135.1211290-1-michael.tremer@ipfire.org> References: <20220222125135.1211290-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" From: Adolf Belka - Update from 2.4.4 to 2.4.6 - Update of rootfile - Changelog Release 2.4.6 Sun February 20 2022 Bug fixes: #566 Fix a regression introduced by the fix for CVE-2022-25313 in release 2.4.5 that affects applications that (1) call function XML_SetElementDeclHandler and (2) are parsing XML that contains nested element declarations (e.g. ""). Release 2.4.5 Fri February 18 2022 Security fixes: #562 CVE-2022-25235 -- Passing malformed 2- and 3-byte UTF-8 sequences (e.g. from start tag names) to the XML processing application on top of Expat can cause arbitrary damage (e.g. code execution) depending on how invalid UTF-8 is handled inside the XML processor; validation was not their job but Expat's. Exploits with code execution are known to exist. #561 CVE-2022-25236 -- Passing (one or more) namespace separator characters in "xmlns[:prefix]" attribute values made Expat send malformed tag names to the XML processor on top of Expat which can cause arbitrary damage (e.g. code execution) depending on such unexpectable cases are handled inside the XML processor; validation was not their job but Expat's. Exploits with code execution are known to exist. #558 CVE-2022-25313 -- Fix stack exhaustion in doctype parsing that could be triggered by e.g. a 2 megabytes file with a large number of opening braces. Expected impact is denial of service or potentially arbitrary code execution. #560 CVE-2022-25314 -- Fix integer overflow in function copyString; only affects the encoding name parameter at parser creation time which is often hardcoded (rather than user input), takes a value in the gigabytes to trigger, and a 64-bit machine. Expected impact is denial of service. #559 CVE-2022-25315 -- Fix integer overflow in function storeRawNames; needs input in the gigabytes and a 64-bit machine. Expected impact is denial of service or potentially arbitrary code execution. Signed-off-by: Adolf Belka Reviewed-by: Michael Tremer --- config/rootfiles/common/expat | 21 ++++++++++----------- lfs/expat | 7 ++++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/config/rootfiles/common/expat b/config/rootfiles/common/expat index 47ce600ad..9901085f2 100644 --- a/config/rootfiles/common/expat +++ b/config/rootfiles/common/expat @@ -2,21 +2,20 @@ #usr/include/expat.h #usr/include/expat_config.h #usr/include/expat_external.h -#usr/lib/cmake/expat-2.4.4 -#usr/lib/cmake/expat-2.4.4/expat-config-version.cmake -#usr/lib/cmake/expat-2.4.4/expat-config.cmake -#usr/lib/cmake/expat-2.4.4/expat-noconfig.cmake -#usr/lib/cmake/expat-2.4.4/expat.cmake -#usr/lib/libexpat.a +#usr/lib/cmake/expat-2.4.6 +#usr/lib/cmake/expat-2.4.6/expat-config-version.cmake +#usr/lib/cmake/expat-2.4.6/expat-config.cmake +#usr/lib/cmake/expat-2.4.6/expat-noconfig.cmake +#usr/lib/cmake/expat-2.4.6/expat.cmake #usr/lib/libexpat.la #usr/lib/libexpat.so usr/lib/libexpat.so.1 -usr/lib/libexpat.so.1.8.4 +usr/lib/libexpat.so.1.8.6 #usr/lib/pkgconfig/expat.pc #usr/share/doc/expat -#usr/share/doc/expat-2.4.4 -#usr/share/doc/expat-2.4.4/ok.min.css -#usr/share/doc/expat-2.4.4/reference.html -#usr/share/doc/expat-2.4.4/style.css +#usr/share/doc/expat-2.4.6 +#usr/share/doc/expat-2.4.6/ok.min.css +#usr/share/doc/expat-2.4.6/reference.html +#usr/share/doc/expat-2.4.6/style.css #usr/share/doc/expat/AUTHORS #usr/share/doc/expat/changelog diff --git a/lfs/expat b/lfs/expat index 3898889ad..9e0166bd2 100644 --- a/lfs/expat +++ b/lfs/expat @@ -24,7 +24,7 @@ include Config -VER = 2.4.4 +VER = 2.4.6 THISAPP = expat-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 99392ce3377777ab0dc8b0f14beda793 +$(DL_FILE)_MD5 = eb735f87dac7d50007259929b0674aa6 install : $(TARGET) @@ -72,7 +72,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) $(UPDATE_AUTOMAKE) cd $(DIR_APP) && ./configure \ - --prefix=/usr + --prefix=/usr \ + --disable-static cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install cd $(DIR_APP) && install -v -m755 -d /usr/share/doc/$(THISAPP)