Skip to content
4.0 Medium

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

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.

CVSS 3.1 detail

Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitable with local access to the machine, without an account and without any user action; the impact on data or service is limited.

Attack vector
Local
Attack complexity
Low
Privileges required
None
Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Affected products and versions

Product Affected versions Fixed in
Red Hat Enterprise Linux 10 Versions not published
Red Hat Enterprise Linux 6 Versions not published
Red Hat Enterprise Linux 7 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published
Red Hat Ceph Storage 8 1774002867 earliest → < 1774002867 1774002867
Red Hat Discovery 2 1775675922 earliest → < 1775675922 1775675922
Red Hat Insights proxy 1.5 1773685509 earliest → < 1773685509 1773685509
Show the 6 other branches
Product Affected versions Fixed in
Red Hat Update Infrastructure 5 1773670137 earliest → < 1773670137 1773670137
Red Hat Hardened Images 3.8 earliest → < 3.8.12-1.1.hum1 3.8.12-1.1.hum1
RHEL-8 based Middleware Containers 7.13 earliest → < 7.13.5-4.1777325708 7.13.5-4.1777325708
SIMATIC CN 4100 5.0 earliest → < 5.0 5.0
Red Hat In-Vehicle Operating System 1 Versions not published
Cert Manager support for Red Hat OpenShift release 1.18 1791966259 earliest → < 1791966259 1791966259
The 1456 CVEs of Red Hat Enterprise Linux 10 →
Track this CVE