# CVE-2025-9820: Gnutls: stack-based buffer overflow in gnutls\_pkcs11\_token\_init() function

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-26 · Modified: 2026-11-06
- Aliases: ALPINE-CVE-2025-9820, MGASA-2025-0317, SUSE-SU-2025:21202-1, SUSE-SU-2025:21222-1, SUSE-SU-2025:4271-1, SUSE-SU-2025:4272-1, SUSE-SU-2025:4323-1, SUSE-SU-2025:4346-1, SUSE-SU-2025:4525-1, UBUNTU-CVE-2025-9820, DEBIAN-CVE-2025-9820, openSUSE-SU-2025:15765-1
- Record: https://cvemate.com/vulnerability/CVE-2025-9820 · JSON: https://cvemate.com/vulnerability/CVE-2025-9820/json

## Description

```text
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.
```

## Signals

- CVSS: 4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.222%, percentile 13.684%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine gnutls (Alpine Linux): \< 3.8.12-r0 \| \< 3.8.11-r0
- debian gnutls28 (Debian): \< 3.7.9-2+deb12u6 \| \< 3.8.9-3+deb13u1 \| \< 3.8.11-3
- ubuntu gnutls28 (Ubuntu): \< 3.4.10-4ubuntu1.9+esm3 \| \< 3.5.18-1ubuntu1.6+esm3 \| \< 3.6.13-2ubuntu1.12+esm2 \| \< 3.7.3-4ubuntu1.8 \| All versions (No fix recorded) \| \< 3.7.3-4ubuntu1.8+Fips1.1 \| \< 3.8.3-1.1ubuntu3.5 \| \< 3.8.3-1.1ubuntu3.5+Fips1.1 \| \< 3.8.9-3ubuntu2.1
- mageia gnutls (Mageia): \< 3.8.4-1.3.mga9
- opensuse gnutls&distro=openSUSE Leap 15.6 (openSUSE): \< 3.8.3-150600.4.12.1
- opensuse gnutls&distro=openSUSE Tumbleweed (openSUSE): \< 3.8.11-1.1
- suse gnutls&distro=SUSE Linux Enterprise Micro 5.2 (SUSE Linux Enterprise): \< 3.6.7-150200.14.40.1
- suse gnutls&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 3.7.3-150400.19.1
- suse gnutls&distro=SUSE Linux Enterprise Micro 5.4 (SUSE Linux Enterprise): \< 3.7.3-150400.4.53.1
- suse gnutls&distro=SUSE Linux Enterprise Micro 5.5 (SUSE Linux Enterprise): \< 3.7.3-150400.4.53.1
- suse gnutls&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6 (SUSE Linux Enterprise): \< 3.8.3-150600.4.12.1
- suse gnutls&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7 (SUSE Linux Enterprise): \< 3.8.3-150600.4.12.1
- suse gnutls&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 3.3.27-3.15.1
- suse gnutls&distro=SUSE Linux Micro 6.0 (SUSE Linux Enterprise): \< 3.8.3-5.1
- suse gnutls&distro=SUSE Linux Micro 6.1 (SUSE Linux Enterprise): \< 3.8.3-slfo.1.1\_5.1

## References (first 20 of 39)

- <https://access.redhat.com/errata/RHSA-2026:13812>
- <https://access.redhat.com/errata/RHSA-2026:3477>
- <https://access.redhat.com/errata/RHSA-2026:4188>
- <https://access.redhat.com/errata/RHSA-2026:4655>
- <https://access.redhat.com/errata/RHSA-2026:4943>
- <https://access.redhat.com/errata/RHSA-2026:5585>
- <https://access.redhat.com/errata/RHSA-2026:5606>
- <https://access.redhat.com/errata/RHSA-2026:7329>
- <https://access.redhat.com/errata/RHSA-2026:7477>
- <https://access.redhat.com/security/cve/CVE-2025-9820>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2392528>
- <https://gitlab.com/gnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5>
- <https://gitlab.com/gnutls/gnutls/-/issues/1732>
- <https://www.gnutls.org/security-new.html#GNUTLS-SA-2025-11-18>
- <http://www.openwall.com/lists/oss-security/2025/11/20/2>
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://security.alpinelinux.org/vuln/CVE-2025-9820>
- <https://advisories.mageia.org/MGASA-2025-0317.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34760>
- <https://www.openwall.com/lists/oss-security/2025/11/20/2>

---

Data as of 2026-12-05T03:52:33.339Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
