RSA-PSK is one of the pre-shared-key cipher suites of TLS 1.2: the client sends a PSK identity, the username, together with an RSA-encrypted premaster secret, and the server looks the username up. GnuTLS’s handler for that ClientKeyExchange message copies the username into the session’s authentication info, and the record says it “does not return after detecting a memory allocation failure when copying the PSK username”, so it carries on with a null pointer where the username should be and, as the work item behind the record puts it, the next strlen() on it crashes the server. The outcome is “a denial of service for a peer under heap pressure”, and GnuTLS rates it Low because the allocation has to fail at that one call; the CVSS score is 5.9. Update to GnuTLS 3.8.14 when your distribution ships it; a server that does not enable RSA-PSK is outside the path.
CVE-2026-127040 at a glance.
| Component | GnuTLS, the RSA-PSK ClientKeyExchange handler in lib/auth/rsa_psk.c, on the server side of a TLS 1.2 handshake that negotiated an RSA-PSK cipher suite |
| Affected versions | GnuTLS 3.7.7 through 3.8.13 (“before 3.8.14”), per the GnuTLS CNA record; the project’s advisory id is GNUTLS-SA-2026-11-18-2. SUSE’s tracker marks its 3.6.x builds (SLES 12 SP5, SLES 15 SP2/SP3) not affected, consistent with that range |
| Fixed in | GnuTLS 3.8.14 (commit 8767518753a633e5ef59f112310db8dc9ff6771a, 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; 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.00587 (49th percentile) on 1 December 2026 |
| Who is exposed | GnuTLS servers on Linux whose priority string admits an RSA-PSK cipher suite and that hold a PSK credential, under memory pressure, facing a peer who can start handshakes: an unusual configuration, found in IoT back ends, VPN and SIP deployments that authenticate devices by shared key, and test rigs. The default priority sets do not enable PSK suites, so a server that never configured them is not in the path. Clients are not affected by this record. The impact is a crash of the server 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, filed by Joshua Rogers of AISLE, is specific about the lines. In lib/auth/rsa_psk.c the server’s ClientKeyExchange handler reads the PSK identity from the message and duplicates it into the authentication info; when the duplication fails for want of memory, the code records the error with gnutls_assert_val() but does not return, so execution falls through to code that uses the username, and strlen(info->username) dereferences the null pointer. The work item points at the DHE-PSK handler in lib/auth/dhe_psk.c as the correct pattern, where the same check is followed by a return, and includes a sanitiser trace from a reproduction.
Two preconditions gate this. The server must have negotiated an RSA-PSK suite, which means an application that set a priority string with +RSA-PSK or an explicit PSK suite and configured a PSK server credential; GnuTLS’s shipped priority sets (NORMAL, SECURE128 and so on) do not include PSK key exchange. And the allocation has to fail at that call, which is the “heap pressure” of the record and the reason for the Low rating and the AC:H in the vector. A hostile client cannot force the failure but can raise its odds with volume, and a server already near a memory limit is the one that sees it. The impact is availability only.
The fix is the missing return, in 3.8.14; Debian records it as commit 87675187. The same 18 November advisory set and release carry CVE-2026-127039, a stale certificate count in the certificate authentication info, 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), trixie (3.8.9-3+deb13u4, “no-dsa, Minor issue”) and forky (3.8.13-1); fixed in 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; “Affected” for SLE 15 SP4-LTSS through SP7, SLES 16.0/16.1, Leap 15.4 to 16.1 and SLE Micro 5.4 to 6.2; Not affected for SLES 12 SP5, SLES 15 SP2/SP3, SLE Micro 5.0 to 5.2 and Leap 15.3 (3.6.x builds); no released package; SUSE bug 1290889 | 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 servers on it use GnuTLS at all, and whether any of them enable an RSA-PSK suite. The third is a configuration grep, and for nearly every server it comes back empty, which ends the matter.
# 1. the library version (3.8.14 is fixed; 3.7.7 to 3.8.13 are in range; 3.6.x is not)
dpkg -s libgnutls30t64 2>/dev/null | grep '^Version'; dpkg -s libgnutls30 2>/dev/null | grep '^Version'; rpm -q gnutls 2>/dev/null
# 2. listening processes that map libgnutls (the server side is the one the record describes)
for p in $(ss -ltnpH 2>/dev/null | grep -oE 'pid=[0-9]+' | cut -d= -f2 | sort -u); do grep -q 'libgnutls\.so' /proc/$p/maps 2>/dev/null && echo "pid $p: $(tr '\0' ' ' < /proc/$p/cmdline | cut -c1-60)"; done
# 3. is RSA-PSK enabled anywhere? priority strings in application configs, and the system-wide default
grep -rnE 'RSA-PSK|\+PSK|PSK-' /etc/gnutls /etc/crypto-policies /etc/exim4 /etc/dovecot /etc/cups /etc/*/*.conf 2>/dev/null | head
grep -rn 'RSA-PSK' /etc/crypto-policies/back-ends/gnutls.config 2>/dev/null
gnutls-cli --priority NORMAL --list 2>/dev/null | grep -c 'RSA-PSK' # 0 means the default set does not offer itA host on 3.8.14, or whose GnuTLS is a 3.6.x build, is done. On an in-range build, an empty step 3 means no server here has enabled RSA-PSK and the record’s handler never runs; the update is still due for the siblings, but this item is not an exposure. A server that does list an RSA-PSK suite, and that faces peers it does not control, is the record’s case, and the more tightly it is memory-limited the more it should be patched first.
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-127040 2>/dev/null
zypper list-patches --cve=CVE-2026-127040 2>/dev/null
# self-built: GnuTLS 3.8.14, or cherry-pick 8767518753a633e5ef59f112310db8dc9ff6771a onto 3.8.13The project names no workaround, but the precondition is a cipher suite choice, and that is in the administrator’s hands: a server that drops RSA-PSK from its priority string, keeping DHE-PSK or ECDHE-PSK if it needs pre-shared keys at all, is outside the path on any version. That is our reading of the record, not a vendor instruction, and the DHE-PSK handler is the one the work item cites as correctly written. What not to do: do not disable PSK entirely on a server whose clients authenticate only by PSK, since that is a larger outage than the crash; and do not take the AV:N as meaning every GnuTLS server is reachable, since the handler only runs for a suite the server offered.
# interim on a server that must keep PSK: remove the RSA-PSK key exchange, keep the forward-secret PSK suites
# (in the application's priority string; example for a hand-written one)
# before: NORMAL:+RSA-PSK:+DHE-PSK
# after: NORMAL:+DHE-PSK:+ECDHE-PSK:-RSA-PSK
gnutls-cli --priority 'NORMAL:+DHE-PSK:+ECDHE-PSK:-RSA-PSK' --list | grep -c 'RSA-PSK' # must print 0Then restart the server and confirm its clients still negotiate; a client that only knows RSA-PSK will fail to connect, which is the signal to patch instead.
Sources
- CVE-2026-127040 at CVE.org — the GnuTLS CNA record (19 November 2026): the description, 3.7.7 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 1868 — “Missing return after gnutls_assert_val() in RSA-PSK ClientKeyExchange handler”: the lines in
rsa_psk.c, the DHE-PSK pattern, the sanitiser trace - 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-2
- NVD entry — Received; published 19 November; the CNA’s score and CWE; no CPEs
- Distribution trackers: Debian (sid 3.8.14-2 fixed; commit 87675187; bug 1154435) · Ubuntu (Medium, needs evaluation; GNUTLS-SA-2026-11-18-2) · SUSE (moderate; 3.6.x builds not affected) · Red Hat (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00587 on 1 December 2026
Related reading
- CVE-2026-127039: GnuTLS leaves a stale certificate count behind when growing its certificate list fails — 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-133325: Apache Tomcat cluster TLS-PSK over TLS 1.3 — pre-shared keys in another server stack this month
- CVE-2026-120993: NGINX stream worker crashes on an abbreviated TLS handshake — a handshake-path null dereference in a server most people do run
- 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.
