4.0Medium

CVE-2025-9820Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function

gnutls; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 8; Red Hat Red Hat Enterprise Linux 9 Published: (9 months ago)

Description

A flaw was found in the GnuTLS library, specifically in the gnutls_pkcs11_token_init() function that handles PKCS#11 token initialization. When a token label longer than expected is processed, the function writes past the end of a fixed-size stack buffer. This programming error can cause the application using GnuTLS to crash or, in certain conditions, be exploited for code execution. As a result, systems or applications relying on GnuTLS may be vulnerable to a denial of service or local privilege escalation attacks.

Weakness (CWE): CWE-121

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ceph storage 8 —
cert manager 1.18 —
discovery 2 —
enterprise linux 8 —
enterprise linux 9 —
insights proxy 1.5 —
Red Hat Cert Manager support for Red Hat OpenShift release 1.18 all versions
Red Hat Red Hat Ceph Storage 8 all versions
Red Hat Red Hat Discovery 2 all versions
Red Hat Red Hat Enterprise Linux 10 all versions
Red Hat Red Hat Enterprise Linux 6 all versions
Red Hat Red Hat Enterprise Linux 7 all versions
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Hardened Images all versions
Red Hat Red Hat Insights proxy 1.5 all versions
Red Hat Red Hat OpenShift Container Platform 4 all versions
Red Hat Red Hat Update Infrastructure 5 all versions
Red Hat RHEL-8 based Middleware Containers all versions
rhosemc 1.0 —
rhui 5 —
Siemens SIMATIC CN 4100 < V5.0
— gnutls 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.8.10

References and patches