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
|
Log message:
gnutls: update to 3.8.13.
* Version 3.8.13 (released 2026-04-29)
** libgnutls: Add more checks to DTLS reassembly
Previously, gnutls didn't check that DTLS fragments claimed
a consistent message_length value.
Additionally, a crucial array size check was missing,
enabling an attacker to cause a heap overwrite.
Reject fragments with mismatching length and add a missing boundary check.
Independently reported by
Haruto Kimura (Stella), Oscar Reparaz and Zou Dikai.
[GNUTLS-SA-2026-04-29-1, CVSS: high] [CVE-2026-33846]
** libgnutls: Fix qsort comparator in DTLS reassembly
The comparator function used for ordering DTLS packets
by sequence numbers did not follow qsort comparator contracts
in case of packets with duplicate sequence numbers,
which could lead to unstable ordering or undefined behaviour.
Return 0 in such cases makes the sorting stable.
Additionally, discard packets with same sequence numbers
and differing handshake type,
so that they don't end up being sorted in the first place.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-2, CVSS: high] [CVE-2026-42009]
** libgnutls: Fix crashing on an underflow with a DTLS datagram
A remotely triggerable underflow in the DTLS reassembly code led to
a heap overrun.
Prevent the underflow from happening.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-3, CVSS: high] [CVE-2026-33845]
** libgnutls: Fix RSA-PSK identity truncation
Servers configured with RSA-PSK have wrongfully matched usernames with NUL
character in them to ones truncated to NUL character,
which could lead to an authentication bypass.
Fix the check to perform comparison up to the full username length.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-4, CVSS: high] [CVE-2026-42010]
** libgnutls: Fix case-sensitivity of domain name comparison in name constraints
Domain name comparison during name constraints processing
was case-sensitive, violating RFC 5280 section 7.2.
For excluded name constraints, this could lead to
incorrectly accepting domain names that should've been rejected.
DNS name comparison and the domain part of email names
now perform case-insensitive comparison.
Independently reported by Oleh Konko (1seal) and
Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-5, CVSS: high] [CVE-2026-3833]
** libgnutls: Fix intersecting empty constraints
Permitted name constraints were wrongfully ignored
when prior CAs only had excluded name constraints,
resulting in a name constraint bypass.
Reported by Haruto Kimura (Stella).
[GNUTLS-SA-2026-04-29-6, CVSS: medium] [CVE-2026-42011]
** libgnutls: Suppress CN fallback in presence of URI and SRV SAN
Certificates containing URI or SRV Subject Alternative Names
no longer fall back to checking DNS hostnames against Common Name
to avoid potential misuse of such certificates
beyond their original purpose.
Reported by Oleh Konko (1seal).
[GNUTLS-SA-2026-04-27-7, CVSS: medium] [CVE-2026-42012]
** libgnutls: Suppress CN fallback for oversized SAN
Validation of certificates with oversized Subject Alternative Names
no longer falls back to checking DNS hostnames against Common Name.
Independently reported by Haruto Kimura (Stella) and
Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-27-8, CVSS: medium] [CVE-2026-42013]
** libgnutls: Fix use-after-free in gnutls_pkcs11_token_set_pin
Changing the Security Officer PIN with gnutls_pkcs11_token_set_pin()
with oldpin == NULL for a token lacking a protected authentication path
led to a use-after-free.
Reported by Luigino Camastra and Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-9, CVSS: medium] [CVE-2026-42014]
** libgnutls: Fix overread in RSA key exchange with PKCS#11 keys
For a server using an RSA key backed by a PKCS#11 token,
a client sending an extremely short premaster secret
during an RSA key exchange could trigger a short heap overread.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-10, CVSS: medium] [CVE-2026-5260]
** libgnutls: Fix off-by-one in PKCS#12 bag element bounds check
Appending to a PKCS#12 bag that already contained 32 elements
could write past the bag's internal array.
Reported by Zou Dikai.
[GNUTLS-SA-2026-04-29-11, CVSS: low] [CVE-2026-42015]
** libgnutls: Fix multi-entry OCSP response revocation bypass
When validating a certificate against a multi-entry OCSP response,
the revocation status was always checked for the first entry
instead of the entry matching the certificate,
which could lead to accepting revoked certificates.
Independently reported by Oleh Konko (1seal) and
Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-04-29-12, CVSS: low] [CVE-2026-3832]
** libgnutls: Fix timing side-channel in PKCS#7 padding removal
The PKCS#7 padding check performed during decryption was not constant-time,
potentially leaking information about the padding bytes
through timing differences.
Rewritten to remove padding in a branch-free manner.
Reported by Doria Tang of Stony Brook University.
[GNUTLS-SA-2026-04-29-13, CVSS: low] [CVE-2026-5419]
** libgnutls: Fix PSK username comparison during rehandshake
Rehandshaking to a username with embedded NUL character could theoretically
allow bypassing the GNUTLS_ALLOW_ID_CHANGE protection (#1808).
Reported and fixed by Joshua Rogers of AISLE Research Team.
** libgnutls: Fix OID length check for OCSP delegated signer EKU
The OCSP signing EKU OID was compared without verifying its length,
allowing a shorter OID that shares the same prefix to match.
The check now verifies the length as well (#1810).
Reported by Joshua Rogers of AISLE Research Team.
** libgnutls: Fix AES keys persisting with pkcs11-provider
When using the pkcs11-provider, AES keys used for cipher operations
were created as persistent objects and accumulating.
They are now ephemeral (#1813).
** libgnutls: Fix missing RSA key coprimality check in verify_params
gnutls_privkey_verify_params overlooked the scenario of p and q
not being co-prime.
It now returns GNUTLS_E_PK_INVALID_PRIVKEY in this case (#1818).
Reported by Kamil Frankowicz.
** libgnutls: Fix overread when parsing OpenSSL PEM private keys
Insufficient bounds checking on the PEM header length could lead
to short heap overreads on specially crafted inputs (#1854).
Independently reported by Kamil Frankowicz and
Joshua Rogers of AISLE Research Team.
** libgnutls: Fix a theoretical double-free during certificate import
If gnutls_x509_crt_list_import_pkcs11 failed partway through,
the trust list cleanup code would try to free already-deinitialized
certificate entries, leading to a double-free (#1819).
Reported by Joshua Rogers of AISLE Research Team.
** libgnutls: Fix heap overread in SCT extension parser
The list-length validation didn't account for the 2-byte length field,
allowing a specially crafted SCT extension to cause
a 2-byte overread past the buffer (#1822).
Reported by Joshua Rogers of AISLE Research Team.
** libgnutls: Zeroize shared secret derived during hybrid key exchange
The derived shared secret was not zeroized before being freed (#1841).
Reported by liyue.
** build: Support building with Nettle 4.0
Nettle 4.0 was released in Feburary 2026, with API incompatibile
changes from 3.10. The library can now compile with it, while
Nettle 3.10 is still supported (#1791).
** libgnutls: Support deriving ML-DSA public key from an expanded private key
RFC 9881 defines 3 private key formats for ML-DSA: "seed",
"expandedKey" and both. It is now possible to derive a public key
from a private key in the "expandedKey" format (#1723).
** libgnutls: Fix loading BIT STRING encoded EdDSA key from PKCS#11
For compatibility reasons, the library supports two formats for
EdDSA private keys: either ASN.1 BIT STRING (raw) or OCTET STRING
(DER). Previously, loading a private key in the former format
resulted in a failure, which is now fixed (#1749).
** libgnutls: HPKE (RFC 9180) is now supported as a technology preview
The Hybrid Public Key Encryption (HPKE) is a flexible cryptographic
protocol which enables to encrypt arbitrary data to a recipient, by
combining key encapsulation mechanism (KEM) and authenticated
encryption with additional data (AEAD). GnuTLS now includes the
implementation contributed by David Dudas. Given this is a
technology preview, the implementation and the API might suffer
modification in the following period. Use --enable-hpke to turn on
this feature (#1506).
** libgnutls: Fix TLS 1.3 client certificate selection
For servers that send a signature_algorithms extension in CertificateRequest
with new rsa_pss_rsae_* algorithms and without the legacy rsa_pkcs1_* ones,
the client now properly considers RSA when selecting a certificate to send.
This fixes TLS 1.3 interoperability with newer Java servers
when using client certificates.
Contributed by Romain Tartière (#1842).
** libgnutls: Fix kTLS ChaCha20-Poly1305 IV for TLS 1.2
When using kTLS with ChaCha20-Poly1305 under TLS 1.2,
an incorrect value was passed as the IV to the kernel,
causing connections to fail early.
** libgnutls: Allow fetching object type metadata for PKCS#11 keys
A new library function, gnutls_pkcs11_obj_get_pk_algorithm,
has been added to check the public key algorithms of PKCS#11 key objects.
Object types other than CKO_PRIVATE_KEY are currently not supported.
Contributed by Ghadi Elie Rahme (!2074).
** API and ABI modifications:
gnutls_hpke_kem_t: New enum
gnutls_hpke_kdf_t: New enum
gnutls_hpke_aead_t: New enum
gnutls_hpke_mode_t: New enum
gnutls_hpke_role_t: New enum
gnutls_hpke_context_st: New context structure
gnutls_hpke_init: New function
gnutls_hpke_deinit: New function
gnutls_hpke_encap: New function
gnutls_hpke_seal: New function
gnutls_hpke_decap: New function
gnutls_hpke_open: New function
gnutls_hpke_derive_keypair: New function
gnutls_hpke_export: New function
gnutls_pkcs11_obj_get_pk_algorithm: New function
|