Every TLS handshake that carries a certificate chain ends with the library keeping a copy of the raw certificates for the application to inspect. In GnuTLS that copy lives in the session’s certificate authentication info, and the list that holds it is grown with a reallocation as certificates arrive. The record says the code “does not reset the certificate count and list pointer when re-allocation of raw_certificate_list fails”, so after a failed allocation the count says there are certificates and the pointer says there are none, and the cleanup that follows “allows remote attackers to cause a denial of service for a peer under heap pressure”. GnuTLS rates it Low because the allocation has to fail at that exact call, and scores it 5.9. Update to GnuTLS 3.8.14 when your distribution ships it; Debian sid has it now.
CVE-2026-127039 at a glance.
| Component | GnuTLS, the certificate authentication info in lib/auth/cert.c (_gnutls_pcert_to_auth_info()) and its cleanup in lib/auth.c (_gnutls_free_auth_info()), reached on any handshake in which the peer presents a certificate chain |
| Affected versions | GnuTLS 2.5.9 through 3.8.13, per the GnuTLS CNA record; the project’s advisory id is GNUTLS-SA-2026-11-18-1 |
| Fixed in | GnuTLS 3.8.14 (commit 0cf60141ca2c1289e96847261ff355010cb6f3a8, per Debian’s tracker); Debian sid 3.8.14-2 carries it. The copies of gnutls.org’s security and news pages read for this page still show 3.8.13 of 29 April 2026 as the newest release and have no entry for this advisory, so the release date is not stated here |
| Severity | GnuTLS (CNA) CVSS 3.1 5.9 Medium (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H), with the project’s own rating Low (“exploitation requires an allocation failure to happen at a specific call”), CWE-476 (null pointer dereference); NVD Received with the CNA score. SUSE moderate; Ubuntu Medium; Debian “Minor issue”, no DSA for trixie, postponed for bookworm; Red Hat’s page unreachable on 1 December |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.00411 (37th percentile) on 1 December 2026 |
| Who is exposed | Any process on Linux that uses GnuTLS and receives a certificate chain from a remote peer while its heap is near exhaustion: every GnuTLS client (the chain always arrives from the server) and every GnuTLS server that asks for client certificates. The attacker needs no credentials but does need the allocation to fail at that moment, which is something a hostile peer can encourage with large chains and many connections rather than cause outright. The impact is a crash of that process |
| Published | GnuTLS advisory 18 November 2026, CVE record 19 November 2026; this page built 1 December 2026, last updated 1 December 2026 |
What it is
The work item the record points at, filed by Joshua Rogers of AISLE, describes the shape of the bug in the source. _gnutls_pcert_to_auth_info() in lib/auth/cert.c allocates the raw certificate list with calloc() and then fills in the number of certificates; when the allocation fails, the function returns an error but the structure it was filling already carries an ncerts that does not match a list pointer that is now null. Nothing resets them, and the session carries on with its error until _gnutls_free_auth_info() in lib/auth.c walks the list to free it. With a count and no list that walk dereferences null; in the variant the work item’s title names, it can also free an entry twice. Either way the process dies.
The condition is an allocation failure at one specific call, which is why the project rates the issue Low and the vector carries AC:H. A remote peer cannot make calloc() fail on demand, but it can raise the odds: long certificate chains, many simultaneous handshakes, and a process already running close to a memory limit, which is exactly the situation a container with a MemoryMax or a cgroup limit is in. The record’s phrase for it is “a peer under heap pressure”. The impact is availability only; no data leaves the process.
The fix, as the work item proposes and Debian’s tracker records as commit 0cf60141 in 3.8.14, is to null the list pointer and zero the count after a failed allocation and to update the count only on success, so that the cleanup sees a consistent structure. Two sibling issues shipped in the same 18 November advisory set and the same release: CVE-2026-127040, a missing return in the RSA-PSK client key exchange handler, and CVE-2026-127231, a double free in X.509 name constraints, each with its own page. The gnutls.org advisory and news pages as served to this run still ended at 3.8.13, so the advisory text here is taken from the CVE record, the work item and the distribution trackers, and the 3.8.14 release date is not given.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. GnuTLS is the TLS library behind GNOME, wget, Emacs, QEMU, cups, Exim and much else on these systems, so the package row covers a great deal of software.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 1 December 2026 (client error); nothing inferred | — |
| Debian | gnutls28 vulnerable in bookworm (3.7.9-2+deb12u7, “postponed, Minor issue”) and trixie (3.8.9-3+deb13u4, “no-dsa, Minor issue”); fixed in forky and sid; Debian bug 1154435 | sid 3.8.14-2 |
| Ubuntu | Priority Medium; gnutls28 “Needs evaluation” on 16.04 through 26.10; no USN | nothing on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Tracker unreachable on 1 December 2026 (client error on the page and on the hydra JSON); nothing inferred | — |
| openSUSE/SLE | Rated moderate, state Pending; every listed product “Affected”, from SLES 15 SP4-LTSS through SLES 16.1, Leap 15.x and 16.x and SLE Micro 5.x and 6.x; no released package; SUSE bug 1290888 | nothing on 1 December 2026 |
| Arch, Fedora, Gentoo, self-built GnuTLS | Not consulted for this page; the upstream 3.8.14 release applies | 3.8.14 |
How to check
Three questions, in order: which GnuTLS the host runs, which long-running processes map it, and which of those receive certificate chains from peers you do not control while living under a memory limit. The third is the one that turns a library version into an exposure.
# 1. the library version (3.8.14 is fixed; 2.5.9 to 3.8.13 are in range)
dpkg -s libgnutls30t64 2>/dev/null | grep '^Version'; dpkg -s libgnutls30 2>/dev/null | grep '^Version'; rpm -q gnutls 2>/dev/null
gnutls-cli --version 2>/dev/null | head -1
# 2. running processes that map libgnutls
for p in $(pgrep -f '.'); do grep -l 'libgnutls\.so' /proc/$p/maps 2>/dev/null | sed "s|.*|pid $p: $(tr '\0' ' ' < /proc/$p/cmdline | cut -c1-60)|"; done 2>/dev/null | sort -u
# 3. which of those run under a memory limit (the "heap pressure" the record needs) and talk to arbitrary peers
for u in $(systemctl list-units --type=service --state=running --no-legend | awk '{print $1}'); do m=$(systemctl show -p MemoryMax --value "$u"); [ "$m" != infinity ] && echo "$u MemoryMax=$m"; done
cat /sys/fs/cgroup/memory.max 2>/dev/null # inside a container: a number rather than "max" is a limitA host on GnuTLS 3.8.14 is done. On an in-range build, a process in step 2 that only ever connects to a few servers you run is exposed in theory and not in practice, since those servers’ chains are not hostile. The ones to note are processes that accept TLS from anyone with client certificates requested, or that fetch from arbitrary servers (a mail relay, a crawler, a package mirror client), and that also appear in step 3 with a memory ceiling: that combination is the record’s “peer under heap pressure”, and for those the update matters more than the Low rating suggests.
How to fix it
Install the GnuTLS update when your distribution publishes one, then restart every process that maps the library or reboot; a running process keeps the old libgnutls until it exits. needrestart on Debian and Ubuntu, or dnf needs-restarting on the RHEL family, lists what still holds the old copy.
# Debian sid / testing-tracking hosts (stable has no fix on 1 December 2026)
apt update && apt install --only-upgrade libgnutls30t64 && needrestart -r a
# Fedora / RHEL family / SUSE: no package carries a fix on 1 December 2026; check again with
dnf updateinfo info --cve CVE-2026-127039 2>/dev/null
zypper list-patches --cve=CVE-2026-127039 2>/dev/null
# self-built: GnuTLS 3.8.14, or cherry-pick 0cf60141ca2c1289e96847261ff355010cb6f3a8 onto 3.8.13The project names no workaround, and there is no configuration switch that avoids copying the peer’s chain. What reduces the odds is the thing the record names: heap pressure. A service that crashes on a failed allocation is a service that was about to fail anyway, so a sensible MemoryMax with headroom, a Restart=on-failure on the unit, and a cap on concurrent handshakes at the proxy all shrink the window. What not to do: do not remove memory limits to “fix” this, since an unlimited process under the same attack takes the host down instead of itself; and do not disable client certificate requests on a server that needs them, since the chain the attack needs arrives on any handshake the server asks for.
Sources
- CVE-2026-127039 at CVE.org — the GnuTLS CNA record (19 November 2026): the description, 2.5.9 through 3.8.13, CVSS 3.1 5.9, the project’s Low rating and its reasoning, CWE-476, the credit to Joshua Rogers of AISLE Research
- GnuTLS work item 1863 — “Post-auth NULL deref / double-free in _gnutls_pcert_to_auth_info() on OOM”: the two files, the inconsistent count and pointer, the proposed fix
- GnuTLS security advisories and news — the vendor advisory pages named in the record; the copies read on 1 December ended at 3.8.13 and carried no entry for GNUTLS-SA-2026-11-18-1
- NVD entry — Received; published 19 November; the CNA’s score and CWE; no CPEs
- Distribution trackers: Debian (sid 3.8.14-2 fixed; commit 0cf60141; bug 1154435) · Ubuntu (Medium, needs evaluation; GNUTLS-SA-2026-11-18-1) · SUSE (moderate, affected) · Red Hat (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00411 on 1 December 2026
Related reading
- CVE-2026-127040: GnuTLS RSA-PSK server carries on after a failed username copy and dereferences a null pointer — sibling from the same advisory set
- CVE-2026-127231: GnuTLS frees its X.509 name-constraints lists twice when a reinitialisation fails under memory pressure — sibling from the same advisory set
- CVE-2026-107493: OpenSSL PEM_X509_INFO_read_bio_ex frees a caller’s stack entries on failure — the other TLS library’s error-path cleanup bug of November
- CVE-2026-84786: OpenSSL DANE client crashes on a trusted CA posing as the server certificate — a null dereference reachable from a peer’s chain
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
