CVEfocus › CVE database › CVE-2025-9820

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

CVSS 4.0 MediumEPSS 0.2% (higher than 10% of CVEs)Published 2026-01-26Updated 2026-11-06Assigner: redhat

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.

CWE-121

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

46Fixed
12Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gnutls28Not affected
vulnerable_code_not_present
Ubuntu 25.10gnutls28Fixed3.8.9-3ubuntu2.1UBUNTU-CVE-2025-9820
Ubuntu 24.04gnutls28Fixed3.8.3-1.1ubuntu3.5UBUNTU-CVE-2025-9820
Ubuntu 22.04gnutls28Fixed3.7.3-4ubuntu1.8UBUNTU-CVE-2025-9820
Ubuntu 20.04gnutls28Fix pending3.6.13-2ubuntu1.12+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-9820
Ubuntu 18.04gnutls28Fix pending3.5.18-1ubuntu1.6+esm3 (Ubuntu Pro)UBUNTU-CVE-2025-9820
Ubuntu 16.04gnutls28Fix pending3.4.10-4ubuntu1.9+esm3 (Ubuntu Pro)UBUNTU-CVE-2025-9820
Debian 14gnutls28Fixed3.8.11-3DEBIAN-CVE-2025-9820
Debian 13gnutls28Fixed3.8.9-3+deb13u1DEBIAN-CVE-2025-9820
Debian 12gnutls28Fixed3.7.9-2+deb12u6DEBIAN-CVE-2025-9820
Red Hat Enterprise Linux 10gnutlsFixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 10gnutls-c++Fixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 10gnutls-daneFixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 10gnutls-develFixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 10gnutls-fipsFixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 10gnutls-utilsFixed0:3.8.10-3.el10_1RHSA-2026:3477
Red Hat Enterprise Linux 9gnutlsFixed0:3.8.3-10.el9_7RHSA-2026:4188
Red Hat Enterprise Linux 9gnutls-c++Fixed0:3.8.3-10.el9_7RHSA-2026:4188
Red Hat Enterprise Linux 9gnutls-daneFixed0:3.8.3-10.el9_7RHSA-2026:4188
Red Hat Enterprise Linux 9gnutls-develFixed0:3.8.3-10.el9_7RHSA-2026:4188
Red Hat Enterprise Linux 9gnutls-utilsFixed0:3.8.3-10.el9_7RHSA-2026:4188
Red Hat Enterprise Linux 8gnutlsFixed0:3.6.16-8.el8_10.5RHSA-2026:5585
Red Hat Enterprise Linux 8gnutls-c++Fixed0:3.6.16-8.el8_10.5RHSA-2026:5585
Red Hat Enterprise Linux 8gnutls-daneFixed0:3.6.16-8.el8_10.5RHSA-2026:5585
Red Hat Enterprise Linux 8gnutls-develFixed0:3.6.16-8.el8_10.5RHSA-2026:5585
Red Hat Enterprise Linux 8gnutls-utilsFixed0:3.6.16-8.el8_10.5RHSA-2026:5585
Red Hat Enterprise Linux 7gnutlsFix pending
Fix deferred
Red Hat Enterprise Linux 7gnutls-c++Fix pending
Fix deferred
Red Hat Enterprise Linux 7gnutls-daneFix pending
Fix deferred
Red Hat Enterprise Linux 7gnutls-develFix pending
Fix deferred
Red Hat Enterprise Linux 7gnutls-utilsFix pending
Fix deferred
Red Hat Enterprise Linux 6gnutlsFix pending
Fix deferred
Red Hat Enterprise Linux 6gnutls-develFix pending
Fix deferred
Red Hat Enterprise Linux 6gnutls-guileFix pending
Fix deferred
Red Hat Enterprise Linux 6gnutls-utilsFix pending
Fix deferred
AlmaLinux 10gnutlsFixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 10gnutls-c++Fixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 10gnutls-daneFixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 10gnutls-develFixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 10gnutls-fipsFixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 10gnutls-utilsFixed3.8.10-3.el10_1ALSA-2026:3477
AlmaLinux 9gnutlsFixed3.8.3-10.el9_7ALSA-2026:4188
AlmaLinux 9gnutls-c++Fixed3.8.3-10.el9_7ALSA-2026:4188
AlmaLinux 9gnutls-daneFixed3.8.3-10.el9_7ALSA-2026:4188
AlmaLinux 9gnutls-develFixed3.8.3-10.el9_7ALSA-2026:4188
AlmaLinux 9gnutls-utilsFixed3.8.3-10.el9_7ALSA-2026:4188
AlmaLinux 8gnutlsFixed3.6.16-8.el8_10.5ALSA-2026:5585
AlmaLinux 8gnutls-c++Fixed3.6.16-8.el8_10.5ALSA-2026:5585
AlmaLinux 8gnutls-daneFixed3.6.16-8.el8_10.5ALSA-2026:5585
AlmaLinux 8gnutls-develFixed3.6.16-8.el8_10.5ALSA-2026:5585
AlmaLinux 8gnutls-utilsFixed3.6.16-8.el8_10.5ALSA-2026:5585
Rocky Linux 10gnutlsFixed0:3.8.10-3.el10_1RLSA-2026:3477
Rocky Linux 9gnutlsFixed0:3.8.3-10.el9_7RLSA-2026:4188
Rocky Linux 8gnutlsFixed0:3.6.16-8.el8_10.5RLSA-2026:5585
Alpine Linux 3.24gnutlsFixed3.8.11-r0ALPINE-CVE-2025-9820
Alpine Linux 3.23gnutlsFixed3.8.11-r0ALPINE-CVE-2025-9820
Alpine Linux 3.22gnutlsFixed3.8.12-r0ALPINE-CVE-2025-9820
Alpine Linux 3.21gnutlsFixed3.8.12-r0ALPINE-CVE-2025-9820
Alpine Linux 3.20gnutlsFixed3.8.12-r0ALPINE-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.

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:

References

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.