From patchwork Thu Nov 19 13:55:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 10783 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) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4jVg384GKwz3x2q for ; Thu, 19 Nov 2026 13:55:32 +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) (Client CN "mail02.haj.ipfire.org", Issuer "YE2" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jVg382kCxz6mH for ; Thu, 19 Nov 2026 13:55:32 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jVg37693Kz32Y3 for ; Thu, 19 Nov 2026 13:55:31 +0000 (UTC) X-Original-To: development@lists.ipfire.org 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) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jVg2s31S0z2yyM for ; Thu, 19 Nov 2026 13:55:17 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4jVg2r5TBNzjg; Thu, 19 Nov 2026 13:55:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1795096516; 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=kjrJQjv1GkZcRg0Tao7ZFVmgMgt1p6HNMz4d7e5ziFo=; b=xSe7FQYOP0ZsUQl+aKoJNTwmSq61rqJDu5w3a1qhfONj5RTYd2yiM3QO/B5ohZFiknuEzb 3EzI7w+3O2hZclCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1795096516; 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=kjrJQjv1GkZcRg0Tao7ZFVmgMgt1p6HNMz4d7e5ziFo=; b=khsf5MS+6rqH4F+ZNx9QTEGcr48nTM663SatJ6xKAFLMZkog7u6DryJdse5040E6uV8VjM +30WJcn4/czRpzb2LvQ0JAXpYZ8+TIyjHAvIIDz4xPWIzVW6YC5Sus6NxwXlQU5lg1zcIn sOJxtNe+rlUaXLxINYRQ2M5z1PBzogBRRiZE0vc9IAjh16sgR4+Wm5adVpvjY1Oyzl4Kt2 ShY9BrvpL1gK01HnK/v73GA1b73zn0jmIM7XlHdppl1tFRbXfrkngcVSg9LVdjjZ16DXDz OGYCdzbUG+GZ1y0NGqDKTJqqunb/2EFpCM9ZQmeY82DYdTiDrSbSjhVy0anjzw== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] gnutls: Update to version 3.8.14 Date: Thu, 19 Nov 2026 14:55:08 +0100 Message-ID: <20261119135512.3276857-3-adolf.belka@ipfire.org> In-Reply-To: <20261119135512.3276857-1-adolf.belka@ipfire.org> References: <20261119135512.3276857-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - Update from version 3.8.13 to 3.8.14 - Update of rootfile - 3 CVE fixes - Changelog 3.8.14 ** libgnutls: Fix crash on certificate list memory allocation failure On allocation failure, the certificate list pointer and count could get out of sync, causing a NULL deref or double-free during session cleanup. Both fields are now zeroized before the allocation. Reported by Joshua Rogers of AISLE Research Team. [GNUTLS-SA-2026-11-18-1, severity: low] [CVE-2026-127039] ** libgnutls: Fix crash in RSA-PSK username copy memory allocation failure A missing return on a failed username copy could crash the handshake when memory allocation fails. The error is now propagated, aborting the handshake. Reported by Joshua Rogers of AISLE Research Team. [GNUTLS-SA-2026-11-18-2, severity: low] [CVE-2026-127040] ** libgnutls: Make name constraints deinitialization idempotent If reinitializing the name constraints were to fail due to memory pressure, the verification context cleanup could have freed the same internal lists a second time, crashing the application. The deinitialization functions now clear the pointers after freeing. Reported by Xuqing Yang. [GNUTLS-SA-2026-11-18-3, severity: low] [CVE-2026-127231] ** libgnutls: Fix buffer overrun in deterministic DSA signing A malformed DSA private key with a q value exceeding 512 bits could overrun a fixed-size buffer when signing in reproducible mode. Such keys are now rejected with GNUTLS_E_INVALID_REQUEST (#1857). Reported by Joshua Rogers of AISLE Research Team. ** libgnutls: Fix CRL distribution points leak in certificate printing Printing certificates with gnutls_x509_crt_print() could leak memory if enumerating CRL distribution points failed (#1866). Reported by Joshua Rogers of AISLE Research Team. ** libgnutls: Fix HCRYPTHASH handle leak in CAPI signing on allocation failure The HCRYPTHASH handle created in capi_sign() was not destroyed when the memory allocation for the signature buffer failed. It is now released on all exit paths (#1867). Reported by Joshua Rogers of AISLE Research Team. ** libgnutls: Fix memory leak in kTLS key setup on FreeBSD The iv and cipher_key buffers allocated for the tls_enable structure were not freed after setsockopt. They're now freed on all exit paths (#1865). Reported by Joshua Rogers of AISLE Research Team. ** libgnutls: Fix stale params reuse in PKCS#11 AEAD/MAC wrappers The AEAD encrypt/decrypt and MAC wrappers of the PKCS#11 back-end discarded the return value of the per-call params/nonce setter and proceeded with whatever stale state remained. If the setter failed, the previous call's IV/AAD/tag (AEAD) or nonce/key (MAC) were subsequently reused. The error from set_params/set_nonce/set_key is now propagated (#1856, #1872). Reported by Joshua Rogers of AISLE Research Team. ** libgnutls: Initialize reasons in CRL DistributionPoint parsing The CRL reasons bitmap was read into an uninitialized buffer, which could result in incorrect reason flags returned to the caller (#1925). GnuTLS itself does not act on those flags. Reported by Huzaifa Sidhpurwala, Red Hat Product Security. ** libgnutls: Fix cross-family IP name constraints An IPv6 permitted name constraint did not preclude matching IPv4 SAN and vice versa. Addresses from a family not covered by a permitted name constraint are now rejected (#1920). Reported by Huzaifa Sidhpurwala, Red Hat Product Security. ** libgnutls: Reject on unsupported permitted name constraint types Permitted subtrees of constraint types GnuTLS does not match (notably URI) were parsed but ignored. A leaf carrying a SAN of the matching type is now rejected with GNUTLS_CERT_SIGNER_CONSTRAINTS_FAILURE. Previously accepted certificate chains featuring intermediate CAs carrying such constraint types may be rejected now (#1836, #1851, #1894, #1895). Reported by Zou Dikai, Joshua Rogers of AISLE Research Team, Mitchell Benjamin of Revamp Studio, and Corban Villa of UC Berkeley. ** libgnutls: Check all SAN types against name constraints Chain verification only consulted name constraints of DNS, e-mail, directoryName, URI and IP address SAN types. Other types, notably UPN, were not checked at all, so an excludedSubtree for UPN did not reject the chain. All SAN types GnuTLS is aware of are now checked uniformly; types for which no matching is implemented are rejected when any constraint of the corresponding type is present (#1875). Reported by Yu-Fu Fu. ** libgnutls: Count subject as name for DN constraint validation An excludedSubtree of that type used to reject any certificate, while a permittedSubtree was ignored entirely. The check now rejects a certificate featuring a DN (in a subjectAltName or as a non-empty subject) in the presence of any directoryName constraint. GnuTLS does not implement matching DNs against the constraint, so even valid DNs that a permittedSubtree constraint would have previously allowed are now rejected (#1890). Reported by Jack Lloyd. ** libgnutls: Add gnutls_pubkey_{import,export}_mldsa_raw() These functions obtain and restore the raw FIPS 204 ML-DSA public key octet string. This is needed by applications such as DNSSEC that cannot use SubjectPublicKeyInfo alone (#1917). ** libgnutls: Add --enable-tls11-support configure option It is now possible to compile out support for TLS 1.0, TLS 1.1, and DTLS 1.0 (RFC 8996) (!2151). These protocols are currently enabled by default. A future release will disable them by default. ** build: Remove --with-nettle-mini configure option GnuTLS builds must now link against GMP. Mini-GMP lacks relevant optimizations and side-channel protections (#1946). ** minitasn1: Remove the internal copy of libtasn1 The ./configure --with-included-libtasn1 parameter is also removed. If you are building GnuTLS in an environment without libtasn1, please modify your scripts to also build and install libtasn1 first. This decision is made to reduce maintenance in the long-term, as we no longer have to keep track of minitasn1-related issues (!1938). ** API and ABI modifications: gnutls_hpke_import_pubkey: New function gnutls_hpke_export_pubkey: New function gnutls_pubkey_export_mldsa_raw: New function gnutls_pubkey_import_mldsa_raw: New function GNUTLS_SAN_MIN: New enum member of gnutls_x509_subject_alt_name_t GNUTLS_SAN_OTHERNAME_MIN: New enum member of gnutls_x509_subject_alt_name_t GNUTLS_SAN_OTHERNAME_MAX: New enum member of gnutls_x509_subject_alt_name_t Signed-off-by: Adolf Belka --- config/rootfiles/common/gnutls | 8 +++++++- lfs/gnutls | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/common/gnutls b/config/rootfiles/common/gnutls index 461e30902..32dfb86dd 100644 --- a/config/rootfiles/common/gnutls +++ b/config/rootfiles/common/gnutls @@ -27,7 +27,7 @@ usr/bin/psktool #usr/lib/libgnutls.la #usr/lib/libgnutls.so usr/lib/libgnutls.so.30 -usr/lib/libgnutls.so.30.42.0 +usr/lib/libgnutls.so.30.43.0 #usr/lib/libgnutlsxx.la #usr/lib/libgnutlsxx.so usr/lib/libgnutlsxx.so.30 @@ -70,6 +70,7 @@ usr/lib/libgnutlsxx.so.30.0.0 #usr/share/locale/fr/LC_MESSAGES/gnutls.mo #usr/share/locale/it/LC_MESSAGES/gnutls.mo #usr/share/locale/ka/LC_MESSAGES/gnutls.mo +#usr/share/locale/lv/LC_MESSAGES/gnutls.mo #usr/share/locale/ms/LC_MESSAGES/gnutls.mo #usr/share/locale/nl/LC_MESSAGES/gnutls.mo #usr/share/locale/pl/LC_MESSAGES/gnutls.mo @@ -80,6 +81,7 @@ usr/lib/libgnutlsxx.so.30.0.0 #usr/share/locale/uk/LC_MESSAGES/gnutls.mo #usr/share/locale/vi/LC_MESSAGES/gnutls.mo #usr/share/locale/zh_CN/LC_MESSAGES/gnutls.mo +#usr/share/locale/zh_TW/LC_MESSAGES/gnutls.mo #usr/share/man/man1/certtool.1 #usr/share/man/man1/gnutls-cli-debug.1 #usr/share/man/man1/gnutls-cli.1 @@ -393,6 +395,8 @@ usr/lib/libgnutlsxx.so.30.0.0 #usr/share/man/man3/gnutls_hpke_derive_keypair.3 #usr/share/man/man3/gnutls_hpke_encap.3 #usr/share/man/man3/gnutls_hpke_export.3 +#usr/share/man/man3/gnutls_hpke_export_pubkey.3 +#usr/share/man/man3/gnutls_hpke_import_pubkey.3 #usr/share/man/man3/gnutls_hpke_init.3 #usr/share/man/man3/gnutls_hpke_open.3 #usr/share/man/man3/gnutls_hpke_seal.3 @@ -724,6 +728,7 @@ usr/lib/libgnutlsxx.so.30.0.0 #usr/share/man/man3/gnutls_pubkey_export_ecc_raw2.3 #usr/share/man/man3/gnutls_pubkey_export_ecc_x962.3 #usr/share/man/man3/gnutls_pubkey_export_gost_raw2.3 +#usr/share/man/man3/gnutls_pubkey_export_mldsa_raw.3 #usr/share/man/man3/gnutls_pubkey_export_rsa_raw.3 #usr/share/man/man3/gnutls_pubkey_export_rsa_raw2.3 #usr/share/man/man3/gnutls_pubkey_get_key_id.3 @@ -738,6 +743,7 @@ usr/lib/libgnutlsxx.so.30.0.0 #usr/share/man/man3/gnutls_pubkey_import_ecc_raw.3 #usr/share/man/man3/gnutls_pubkey_import_ecc_x962.3 #usr/share/man/man3/gnutls_pubkey_import_gost_raw.3 +#usr/share/man/man3/gnutls_pubkey_import_mldsa_raw.3 #usr/share/man/man3/gnutls_pubkey_import_openpgp.3 #usr/share/man/man3/gnutls_pubkey_import_openpgp_raw.3 #usr/share/man/man3/gnutls_pubkey_import_pkcs11.3 diff --git a/lfs/gnutls b/lfs/gnutls index 58226b7ab..40d40669e 100644 --- a/lfs/gnutls +++ b/lfs/gnutls @@ -24,7 +24,7 @@ include Config -VER = 3.8.13 +VER = 3.8.14 THISAPP = gnutls-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 80677a45a7c6f892287020e3e6b0add2432f2c64a4c9a649ce889921ac65b44931504ad0682ccc12e4b6d8f94c1a72e35c50673c9d04bd4e327063b812339380 +$(DL_FILE)_BLAKE2 = c867ca86d15679d3d69a60ba18965c1dddcea74e70cebaaac25e5fd5d84d519e7143f8dc7b8977a2965d44f48780b3342145deeac7379d7652c9767fa3903156 install : $(TARGET)