CVE-2026-127040
Received Received - Intake

Memory Allocation Failure in GnuTLS RSA-PSK ClientKeyExchange

Vulnerability report for CVE-2026-127040, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: 56096609-bc02-44d5-8c89-cc887c27f7bb

Description

The RSA-PSK ClientKeyExchange handler in gnutls before 3.8.14 does not return after detecting a memory allocation failure when copying the PSK username, which allows remote attackers to cause a denial of service for a peer under heap pressure.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-19
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
GnuTLS Project GnuTLS From 3.7.7 (inc) to 3.8.13 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the RSA-PSK ClientKeyExchange handler of GnuTLS before version 3.8.14. When memory allocation fails while copying the PSK username, the function does not exit properly due to a missing return statement after detecting the error. This causes a NULL pointer dereference later when strlen is called on the username, leading to a denial of service.

Detection Guidance

Detecting this vulnerability requires checking the GnuTLS version and analyzing the specific function in the source code. Use commands like 'gnutls --version' to check the installed version. If using version before 3.8.14, the system is potentially vulnerable. Inspect the file 'lib/auth/rsa_psk.c' for the function '_gnutls_proc_rsa_psk_client_kx' and verify if the missing return statement after 'gnutls_assert_val()' exists.

Impact Analysis

If you use GnuTLS with RSA-PSK handshakes under memory pressure, a remote attacker could exploit this to crash your application or service, causing a denial of service. This affects any system relying on GnuTLS for secure communications using RSA-PSK.

Compliance Impact

This vulnerability causes a denial of service (DoS) due to a NULL pointer dereference during RSA-PSK handshakes under heap pressure. It does not directly affect data confidentiality or integrity but may disrupt services handling sensitive data. Compliance impact depends on system availability requirements in standards like GDPR (data processing continuity) or HIPAA (service reliability).

Mitigation Strategies

Immediately upgrade GnuTLS to version 3.8.14 or later to address the vulnerability. If upgrading is not immediately possible, disable RSA-PSK handshakes by configuring the system to avoid using RSA-PSK as a key exchange mechanism until the patch is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-127040. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...