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

Summary

CVECVE-2025-9820
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-01-26 20:16:09 UTC
Updated2026-04-22 02:16:01 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 4 MEDIUM from [email protected]

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

EPSS: 0.000150000 probability, percentile 0.028200000 (date 2026-04-15)

Problem Types: CWE-121 | CWE-121 Stack-based Buffer Overflow


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary4MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
3.1CNACVSS4MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 10 unaffected 0:3.8.10-3.el10_1 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:3.6.16-8.el8_10.5 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:3.6.16-8.el8_10.5 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:3.8.3-10.el9_7 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:3.8.3-10.el9_7 * rpm Not specified
CNA Red Hat Red Hat Ceph Storage 8 unaffected sha256:1160569002c25d3d349bbe41b57eeffade438853d3419edca01813227440f414 * rpm Not specified
CNA Red Hat Red Hat Discovery 2 unaffected sha256:040dadd657afdb9f0914f896a4962fd3dbf40b70c8037e4d72b6801b766c9b7d * rpm Not specified
CNA Red Hat Red Hat Discovery 2 unaffected sha256:062310de4b34e278f8c7e4634def673a77d1228d493541ef1264ba4cb83b68eb * rpm Not specified
CNA Red Hat Red Hat Hardened Images unaffected 3.8.12-1.1.hum1 * rpm Not specified
CNA Red Hat Red Hat Insights Proxy 1.5 unaffected sha256:325c34e2506d715975171557d40afb449c79cf6e0c41b35760977d5cafb827b8 * rpm Not specified
CNA Red Hat Red Hat Update Infrastructure 5 unaffected sha256:200c27e9b396276bd505c6b41127ac5eb1d94d620172cb818ae733f2a21ac524 * rpm Not specified
CNA Red Hat Red Hat Update Infrastructure 5 unaffected sha256:d98fd3fe5f5f9acd0efae7db19b61b864be1eb2fbe2586a1b6be2429fa2cc7a3 * rpm Not specified
CNA Red Hat Red Hat Update Infrastructure 5 unaffected sha256:2c50c87906a1abebf427a70f401c409f1258cb55d2096f517db870ec991cfd7f * rpm Not specified
CNA Red Hat Red Hat Update Infrastructure 5 unaffected sha256:5f1fbf66fb349a7baf066a1216d39989c3b89f18ec5108b96d9643baf4856778 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:5606 [email protected] access.redhat.com
www.openwall.com/lists/oss-security/2025/11/20/2 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
gitlab.com/gnutls/gnutls/-/issues/1732 [email protected] gitlab.com
www.gnutls.org/security-new.html [email protected] www.gnutls.org
access.redhat.com/errata/RHSA-2026:4188 [email protected] access.redhat.com
access.redhat.com/security/cve/CVE-2025-9820 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2026:7329 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2026:4943 [email protected] access.redhat.com
bugzilla.redhat.com/show_bug.cgi [email protected] bugzilla.redhat.com
access.redhat.com/errata/RHSA-2026:4655 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2026:3477 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2026:7477 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2026:5585 [email protected] access.redhat.com
gitlab.com/gnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5 [email protected] gitlab.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2025-09-02T10:00:18.839ZReported to Red Hat.
CNA2025-11-18T00:00:00.000ZMade public.

Workarounds

CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Applying the upstream patch or vendor-supplied security update is the recommended resolution.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report