Bug 2392528 (CVE-2025-9820) - CVE-2025-9820 gnutls: Stack-based Buffer Overflow in gnutls_pkcs11_token_init() Function
Summary: CVE-2025-9820 gnutls: Stack-based Buffer Overflow in gnutls_pkcs11_token_init...
Keywords:
Status: NEW
Alias: CVE-2025-9820
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-02 10:07 UTC by OSIDB Bzimport
Modified: 2026-01-26 19:09 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-02 10:07:03 UTC
Stack-based buffer overflow vulnerability in the PKCS#11 token initialization function gnutls_pkcs11_token_init() of the GnuTLS library. The flaw is caused by an unsafe memcpy into a fixed-size stack buffer (flabel[32]) without proper bounds checking. If an attacker provides a token label longer than 32 bytes, it leads to out-of-bounds memory writes, causing a crash or, in some environments, potential code execution. Although the vulnerability requires local access or interaction with a malicious PKCS#11 token, it poses a security risk by enabling denial-of-service or possible privilege escalation in applications relying on GnuTLS.


Note You need to log in before you can comment on or make changes to this bug.