CVE-2025-9820Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | gnutls28 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | gnutls28 | Fixed | 3.8.9-3ubuntu2.1 | UBUNTU-CVE-2025-9820 |
| Ubuntu 24.04 | gnutls28 | Fixed | 3.8.3-1.1ubuntu3.5 | UBUNTU-CVE-2025-9820 |
| Ubuntu 22.04 | gnutls28 | Fixed | 3.7.3-4ubuntu1.8 | UBUNTU-CVE-2025-9820 |
| Ubuntu 20.04 | gnutls28 | Fix pending | 3.6.13-2ubuntu1.12+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-9820 |
| Ubuntu 18.04 | gnutls28 | Fix pending | 3.5.18-1ubuntu1.6+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-9820 |
| Ubuntu 16.04 | gnutls28 | Fix pending | 3.4.10-4ubuntu1.9+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-9820 |
| Debian 14 | gnutls28 | Fixed | 3.8.11-3 | DEBIAN-CVE-2025-9820 |
| Debian 13 | gnutls28 | Fixed | 3.8.9-3+deb13u1 | DEBIAN-CVE-2025-9820 |
| Debian 12 | gnutls28 | Fixed | 3.7.9-2+deb12u6 | DEBIAN-CVE-2025-9820 |
| Red Hat Enterprise Linux 10 | gnutls | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 10 | gnutls-c++ | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 10 | gnutls-dane | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 10 | gnutls-devel | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 10 | gnutls-fips | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 10 | gnutls-utils | Fixed | 0:3.8.10-3.el10_1 | RHSA-2026:3477 |
| Red Hat Enterprise Linux 9 | gnutls | Fixed | 0:3.8.3-10.el9_7 | RHSA-2026:4188 |
| Red Hat Enterprise Linux 9 | gnutls-c++ | Fixed | 0:3.8.3-10.el9_7 | RHSA-2026:4188 |
| Red Hat Enterprise Linux 9 | gnutls-dane | Fixed | 0:3.8.3-10.el9_7 | RHSA-2026:4188 |
| Red Hat Enterprise Linux 9 | gnutls-devel | Fixed | 0:3.8.3-10.el9_7 | RHSA-2026:4188 |
| Red Hat Enterprise Linux 9 | gnutls-utils | Fixed | 0:3.8.3-10.el9_7 | RHSA-2026:4188 |
| Red Hat Enterprise Linux 8 | gnutls | Fixed | 0:3.6.16-8.el8_10.5 | RHSA-2026:5585 |
| Red Hat Enterprise Linux 8 | gnutls-c++ | Fixed | 0:3.6.16-8.el8_10.5 | RHSA-2026:5585 |
| Red Hat Enterprise Linux 8 | gnutls-dane | Fixed | 0:3.6.16-8.el8_10.5 | RHSA-2026:5585 |
| Red Hat Enterprise Linux 8 | gnutls-devel | Fixed | 0:3.6.16-8.el8_10.5 | RHSA-2026:5585 |
| Red Hat Enterprise Linux 8 | gnutls-utils | Fixed | 0:3.6.16-8.el8_10.5 | RHSA-2026:5585 |
| Red Hat Enterprise Linux 7 | gnutls | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gnutls-c++ | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gnutls-dane | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gnutls-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gnutls-utils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gnutls | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gnutls-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gnutls-guile | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | gnutls-utils | Fix pending Fix deferred | ||
| AlmaLinux 10 | gnutls | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 10 | gnutls-c++ | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 10 | gnutls-dane | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 10 | gnutls-devel | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 10 | gnutls-fips | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 10 | gnutls-utils | Fixed | 3.8.10-3.el10_1 | ALSA-2026:3477 |
| AlmaLinux 9 | gnutls | Fixed | 3.8.3-10.el9_7 | ALSA-2026:4188 |
| AlmaLinux 9 | gnutls-c++ | Fixed | 3.8.3-10.el9_7 | ALSA-2026:4188 |
| AlmaLinux 9 | gnutls-dane | Fixed | 3.8.3-10.el9_7 | ALSA-2026:4188 |
| AlmaLinux 9 | gnutls-devel | Fixed | 3.8.3-10.el9_7 | ALSA-2026:4188 |
| AlmaLinux 9 | gnutls-utils | Fixed | 3.8.3-10.el9_7 | ALSA-2026:4188 |
| AlmaLinux 8 | gnutls | Fixed | 3.6.16-8.el8_10.5 | ALSA-2026:5585 |
| AlmaLinux 8 | gnutls-c++ | Fixed | 3.6.16-8.el8_10.5 | ALSA-2026:5585 |
| AlmaLinux 8 | gnutls-dane | Fixed | 3.6.16-8.el8_10.5 | ALSA-2026:5585 |
| AlmaLinux 8 | gnutls-devel | Fixed | 3.6.16-8.el8_10.5 | ALSA-2026:5585 |
| AlmaLinux 8 | gnutls-utils | Fixed | 3.6.16-8.el8_10.5 | ALSA-2026:5585 |
| Rocky Linux 10 | gnutls | Fixed | 0:3.8.10-3.el10_1 | RLSA-2026:3477 |
| Rocky Linux 9 | gnutls | Fixed | 0:3.8.3-10.el9_7 | RLSA-2026:4188 |
| Rocky Linux 8 | gnutls | Fixed | 0:3.6.16-8.el8_10.5 | RLSA-2026:5585 |
| Alpine Linux 3.24 | gnutls | Fixed | 3.8.11-r0 | ALPINE-CVE-2025-9820 |
| Alpine Linux 3.23 | gnutls | Fixed | 3.8.11-r0 | ALPINE-CVE-2025-9820 |
| Alpine Linux 3.22 | gnutls | Fixed | 3.8.12-r0 | ALPINE-CVE-2025-9820 |
| Alpine Linux 3.21 | gnutls | Fixed | 3.8.12-r0 | ALPINE-CVE-2025-9820 |
| Alpine Linux 3.20 | gnutls | Fixed | 3.8.12-r0 | ALPINE-CVE-2025-9820 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- gnutls: affected: 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat RHEL-8 based Middleware Containers
- Red Hat Cert Manager support for Red Hat OpenShift release 1.18
- Red Hat Ceph Storage 8
- Red Hat Discovery 2
- Red Hat Hardened Images
- Red Hat Insights proxy 1.5
- Red Hat Update Infrastructure 5
Workaround: 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.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:13812 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:3477 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:4188 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:4655 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:4943 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:5585 (vendor-advisory)
References
- 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/errata/RHSA-2026:82347
- https://access.redhat.com/errata/RHSA-2026:82354
- https://access.redhat.com/errata/RHSA-2026:82372
- https://access.redhat.com/errata/RHSA-2026:82857
- https://access.redhat.com/security/cve/CVE-2025-9820
- https://bugzilla.redhat.com/show_bug.cgi?id=2392528
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.