pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/gnutls
Module Name: pkgsrc
Committed By: wiz
Date: Thu Nov 19 03:22:19 UTC 2026
Modified Files:
pkgsrc/security/gnutls: Makefile PLIST distinfo
pkgsrc/security/gnutls/patches: patch-configure
patch-doc_examples_tlsproxy_tlsproxy.c
Added Files:
pkgsrc/security/gnutls/patches: patch-tests_dtls_dtls-stress.c
Removed Files:
pkgsrc/security/gnutls/patches: patch-lib_crau_crau.h
Log Message:
gnutls: update to 3.8.14.
* Version 3.8.14 (released 2026-11-18)
** 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
To generate a diff of this commit:
cvs rdiff -u -r1.277 -r1.278 pkgsrc/security/gnutls/Makefile
cvs rdiff -u -r1.85 -r1.86 pkgsrc/security/gnutls/PLIST
cvs rdiff -u -r1.173 -r1.174 pkgsrc/security/gnutls/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/gnutls/patches/patch-configure
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c
cvs rdiff -u -r1.3 -r0 pkgsrc/security/gnutls/patches/patch-lib_crau_crau.h
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/gnutls/patches/patch-tests_dtls_dtls-stress.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/gnutls/Makefile
diff -u pkgsrc/security/gnutls/Makefile:1.277 pkgsrc/security/gnutls/Makefile:1.278
--- pkgsrc/security/gnutls/Makefile:1.277 Wed Nov 11 11:55:26 2026
+++ pkgsrc/security/gnutls/Makefile Thu Nov 19 03:22:19 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.277 2026/11/11 11:55:26 wiz Exp $
+# $NetBSD: Makefile,v 1.278 2026/11/19 03:22:19 wiz Exp $
-DISTNAME= gnutls-3.8.13
-PKGREVISION= 2
+DISTNAME= gnutls-3.8.14
CATEGORIES= security devel
MASTER_SITES= ${MASTER_SITE_GNUPG:=gnutls/v${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
Index: pkgsrc/security/gnutls/PLIST
diff -u pkgsrc/security/gnutls/PLIST:1.85 pkgsrc/security/gnutls/PLIST:1.86
--- pkgsrc/security/gnutls/PLIST:1.85 Thu Apr 30 05:33:42 2026
+++ pkgsrc/security/gnutls/PLIST Thu Nov 19 03:22:19 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.85 2026/04/30 05:33:42 wiz Exp $
+@comment $NetBSD: PLIST,v 1.86 2026/11/19 03:22:19 wiz Exp $
bin/certtool
bin/gnutls-cli
bin/gnutls-cli-debug
@@ -352,6 +352,8 @@ man/man3/gnutls_hpke_deinit.3
man/man3/gnutls_hpke_derive_keypair.3
man/man3/gnutls_hpke_encap.3
man/man3/gnutls_hpke_export.3
+man/man3/gnutls_hpke_export_pubkey.3
+man/man3/gnutls_hpke_import_pubkey.3
man/man3/gnutls_hpke_init.3
man/man3/gnutls_hpke_open.3
man/man3/gnutls_hpke_seal.3
@@ -683,6 +685,7 @@ man/man3/gnutls_pubkey_export_ecc_raw.3
man/man3/gnutls_pubkey_export_ecc_raw2.3
man/man3/gnutls_pubkey_export_ecc_x962.3
man/man3/gnutls_pubkey_export_gost_raw2.3
+man/man3/gnutls_pubkey_export_mldsa_raw.3
man/man3/gnutls_pubkey_export_rsa_raw.3
man/man3/gnutls_pubkey_export_rsa_raw2.3
man/man3/gnutls_pubkey_get_key_id.3
@@ -697,6 +700,7 @@ man/man3/gnutls_pubkey_import_dsa_raw.3
man/man3/gnutls_pubkey_import_ecc_raw.3
man/man3/gnutls_pubkey_import_ecc_x962.3
man/man3/gnutls_pubkey_import_gost_raw.3
+man/man3/gnutls_pubkey_import_mldsa_raw.3
man/man3/gnutls_pubkey_import_openpgp.3
man/man3/gnutls_pubkey_import_openpgp_raw.3
man/man3/gnutls_pubkey_import_pkcs11.3
@@ -1278,6 +1282,7 @@ share/locale/fi/LC_MESSAGES/gnutls.mo
share/locale/fr/LC_MESSAGES/gnutls.mo
share/locale/it/LC_MESSAGES/gnutls.mo
share/locale/ka/LC_MESSAGES/gnutls.mo
+share/locale/lv/LC_MESSAGES/gnutls.mo
share/locale/ms/LC_MESSAGES/gnutls.mo
share/locale/nl/LC_MESSAGES/gnutls.mo
share/locale/pl/LC_MESSAGES/gnutls.mo
@@ -1288,3 +1293,4 @@ share/locale/sv/LC_MESSAGES/gnutls.mo
share/locale/uk/LC_MESSAGES/gnutls.mo
share/locale/vi/LC_MESSAGES/gnutls.mo
share/locale/zh_CN/LC_MESSAGES/gnutls.mo
+share/locale/zh_TW/LC_MESSAGES/gnutls.mo
Index: pkgsrc/security/gnutls/distinfo
diff -u pkgsrc/security/gnutls/distinfo:1.173 pkgsrc/security/gnutls/distinfo:1.174
--- pkgsrc/security/gnutls/distinfo:1.173 Thu Apr 30 05:33:42 2026
+++ pkgsrc/security/gnutls/distinfo Thu Nov 19 03:22:19 2026
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.173 2026/04/30 05:33:42 wiz Exp $
+$NetBSD: distinfo,v 1.174 2026/11/19 03:22:19 wiz Exp $
-BLAKE2s (gnutls-3.8.13.tar.xz) = 8b5813133f08bd3014e84efda901eaa67c2edd5b2b93809675a9c5e0cec7c634
-SHA512 (gnutls-3.8.13.tar.xz) = 71bf189a836fd18d58b9e995d4bfcecdb0aae6129dfd44247b98422b2f127dd868f9905d28fad2ca05afd919a0e6b3c8eebb6b95804067d3a8dab31ebdc72453
-Size (gnutls-3.8.13.tar.xz) = 7275324 bytes
-SHA1 (patch-configure) = 866d8a365b8338348230e47518788f494279b139
-SHA1 (patch-doc_examples_tlsproxy_tlsproxy.c) = 5062df3a73e69abca25710d016b949eef62af453
-SHA1 (patch-lib_crau_crau.h) = 751202b8eab1ef903faba6fc4281e75f1d394a66
+BLAKE2s (gnutls-3.8.14.tar.xz) = 65bbd780ca7b28f8eb6dc3c79bb5e9067a03b824a26c81ff4621363759f0dd6a
+SHA512 (gnutls-3.8.14.tar.xz) = d28911cb6176ada9d90e5611f065d8a56744cc63771ca73a0544f4cf07eb4e33c6c07debd3ef471ffe8fa0fbf327ff8393a998c95c64ddae788514adc5d8f266
+Size (gnutls-3.8.14.tar.xz) = 7375044 bytes
+SHA1 (patch-configure) = 87e6d1ee44664767895435a6522265114b9c8d76
+SHA1 (patch-doc_examples_tlsproxy_tlsproxy.c) = 25ed980ef77015daa9bb7d4d771707f5dc226a7c
+SHA1 (patch-tests_dtls_dtls-stress.c) = 0b7f0e2e343e4da42c0504b36955a4e23c8e9826
Index: pkgsrc/security/gnutls/patches/patch-configure
diff -u pkgsrc/security/gnutls/patches/patch-configure:1.8 pkgsrc/security/gnutls/patches/patch-configure:1.9
--- pkgsrc/security/gnutls/patches/patch-configure:1.8 Tue Feb 14 16:45:21 2023
+++ pkgsrc/security/gnutls/patches/patch-configure Thu Nov 19 03:22:19 2026
@@ -1,14 +1,14 @@
-$NetBSD: patch-configure,v 1.8 2023/02/14 16:45:21 wiz Exp $
+$NetBSD: patch-configure,v 1.9 2026/11/19 03:22:19 wiz Exp $
Fix linking on Darwin.
---- configure.orig 2023-02-09 14:56:14.000000000 +0000
+--- configure.orig 2026-11-18 16:39:19.000000000 +0000
+++ configure
-@@ -11813,7 +11813,6 @@ printf "%s\n" "#define DYN_NCRYPT 1" >>c
+@@ -13924,7 +13924,6 @@ printf '%s\n' "#define DYN_NCRYPT 1" >>confdefs.h
*darwin*)
have_macosx=yes
save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -Wl,-no_weak_imports"
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no_weak_imports" >&5
+ { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no_weak_imports" >&5
printf %s "checking whether the linker supports -Wl,-no_weak_imports... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Index: pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c
diff -u pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c:1.3 pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c:1.4
--- pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c:1.3 Fri Nov 21 16:44:56 2025
+++ pkgsrc/security/gnutls/patches/patch-doc_examples_tlsproxy_tlsproxy.c Thu Nov 19 03:22:19 2026
@@ -1,11 +1,11 @@
-$NetBSD: patch-doc_examples_tlsproxy_tlsproxy.c,v 1.3 2025/11/21 16:44:56 manu Exp $
+$NetBSD: patch-doc_examples_tlsproxy_tlsproxy.c,v 1.4 2026/11/19 03:22:19 wiz Exp $
Portability fix: %m is not available outside of syslog()
+https://gitlab.com/gnutls/gnutls/-/work_items/2028
---- ./doc/examples/tlsproxy/tlsproxy.c.orig 2025-11-21 10:22:50.551213704 +0100
-+++ ./doc/examples/tlsproxy/tlsproxy.c 2025-11-21 10:24:24.693866421 +0100
-@@ -101,9 +101,10 @@
- }
+--- doc/examples/tlsproxy/tlsproxy.c.orig 2026-11-18 16:39:19.000000000 +0000
++++ doc/examples/tlsproxy/tlsproxy.c
+@@ -102,7 +102,8 @@ static int bindtoaddress(char *addrport)
}
if (!rp) {
@@ -15,9 +15,7 @@ Portability fix: %m is not available out
freeaddrinfo(result);
return -1;
}
-
-@@ -159,9 +160,10 @@
- }
+@@ -160,7 +161,8 @@ static int connecttoaddress(char *addrport)
}
if (!rp) {
@@ -27,4 +25,3 @@ Portability fix: %m is not available out
freeaddrinfo(result);
return -1;
}
-
Added files:
Index: pkgsrc/security/gnutls/patches/patch-tests_dtls_dtls-stress.c
diff -u /dev/null pkgsrc/security/gnutls/patches/patch-tests_dtls_dtls-stress.c:1.1
--- /dev/null Thu Nov 19 03:22:19 2026
+++ pkgsrc/security/gnutls/patches/patch-tests_dtls_dtls-stress.c Thu Nov 19 03:22:19 2026
@@ -0,0 +1,32 @@
+$NetBSD: patch-tests_dtls_dtls-stress.c,v 1.1 2026/11/19 03:22:19 wiz Exp $
+
+ CC dtls/dtls-stress.o
+dtls/dtls-stress.c:681:25: error: initialization of 'timer_t' {aka 'int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
+ 681 | timer_t killtimer_tid = NULL;
+ | ^~~~
+dtls/dtls-stress.c: In function 'killtimer_set':
+dtls/dtls-stress.c:688:27: warning: comparison between pointer and integer
+ 688 | if (killtimer_tid != NULL) {
+ | ^~
+
+https://gitlab.com/gnutls/gnutls/-/work_items/2027
+
+--- tests/dtls/dtls-stress.c.orig 2026-11-19 02:57:13.229500765 +0000
++++ tests/dtls/dtls-stress.c
+@@ -678,14 +678,14 @@ DECLARE_PERMUTE(ClientFinishedFull)
+ DECLARE_PERMUTE(ClientFinishedFull)
+ // }}}
+ // {{{ emergency deadlock resolution time bomb
+-timer_t killtimer_tid = NULL;
++timer_t killtimer_tid = 0;
+
+ static void killtimer_set(void)
+ {
+ struct sigevent sig;
+ struct itimerspec tout = { { 0, 0 }, { 2 * timeout_seconds, 0 } };
+
+- if (killtimer_tid != NULL) {
++ if (killtimer_tid != 0) {
+ timer_delete(killtimer_tid);
+ }
+
Home |
Main Index |
Thread Index |
Old Index