A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-9820

CVE-2025-9820: GnuTLS Buffer Overflow Vulnerability

CVE-2025-9820 is a buffer overflow flaw in the GnuTLS library's PKCS#11 token initialization function. Attackers can trigger crashes or execute code via oversized token labels. This article covers technical details, impact, and mitigation.

Updated: May 14, 2026

CVE-2025-9820 Overview

CVE-2025-9820 is a stack-based buffer overflow [CWE-121] in the GnuTLS cryptographic library. The flaw resides in the gnutls_pkcs11_token_init() function, which handles PKCS#11 token initialization. When the function processes a token label longer than the fixed-size stack buffer can hold, it writes past the buffer boundary. The result is a memory corruption condition that can crash applications linked against GnuTLS or, under specific conditions, enable local code execution. Linux distributions including Red Hat Enterprise Linux and industrial products from Siemens consume GnuTLS, broadening the attack surface across server, desktop, and operational technology environments.

Critical Impact

A local attacker supplying an oversized PKCS#11 token label can corrupt the stack of any application using gnutls_pkcs11_token_init(), leading to denial of service or potential local privilege escalation.

Affected Products

  • GnuTLS library versions addressed by advisory GNUTLS-SA-2025-11-18
  • Red Hat Enterprise Linux packages updated under RHSA-2026:3477, RHSA-2026:4188, RHSA-2026:4655, RHSA-2026:4943, RHSA-2026:5585, RHSA-2026:5606, RHSA-2026:7329, RHSA-2026:7477, and RHSA-2026:13812
  • Siemens products referenced in advisory SSA-032379

Discovery Timeline

  • 2026-01-26 - CVE-2025-9820 published to the National Vulnerability Database
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2025-9820

Vulnerability Analysis

The vulnerability is a classic stack buffer overflow in GnuTLS, a TLS/SSL and PKCS#11 cryptographic library distributed across nearly every Linux distribution. The defect lives in gnutls_pkcs11_token_init(), the API used to initialize a cryptographic token (such as a smartcard or HSM) through the PKCS#11 interface. The function copies a caller-provided token label into a fixed-size on-stack buffer without validating that the label length fits the destination. When the label exceeds the buffer size, adjacent stack memory is overwritten, including saved frame pointers and return addresses.

Exploitation requires local access because the attacker must influence the token label passed to the API. The result is application instability at minimum, with the potential for arbitrary code execution if stack protections are weak or bypassable. The defect is tracked under [CWE-121: Stack-based Buffer Overflow].

Root Cause

The root cause is missing length validation. GnuTLS allocates a fixed-size buffer on the stack to hold the token label, then copies the caller-controlled string into it without enforcing the maximum size defined by the PKCS#11 specification (32 bytes for CK_TOKEN_INFO.label). Any label exceeding the buffer size overflows the stack frame.

Attack Vector

The attack requires local access. An attacker who can influence the label argument passed to gnutls_pkcs11_token_init() (for example, through a privileged tool that initializes tokens with attacker-controlled input, or through a setuid binary that consumes the library) can trigger the overflow. The fix is committed upstream at 1d56f96f6ab5034d677136b9d50b5a75dff0faf5 in the GnuTLS repository. See the GnuTLS Commit Log Entry for the patched bounds check.

Detection Methods for CVE-2025-9820

Indicators of Compromise

  • Unexpected SIGSEGV or SIGABRT crashes from processes linked against libgnutls.so, especially those invoking PKCS#11 token initialization
  • Core dumps showing corrupted stack frames inside gnutls_pkcs11_token_init() or callers such as p11tool
  • Audit log entries showing token initialization attempts with abnormally long label strings (greater than 32 bytes)

Detection Strategies

  • Inventory installed GnuTLS versions on all Linux hosts using rpm -q gnutls, dpkg -s libgnutls30, or equivalent package queries, and compare against fixed versions in the referenced Red Hat CVE Report CVE-2025-9820.
  • Hunt for invocations of p11tool --initialize and other PKCS#11 initialization utilities with command-line arguments containing oversized label values.
  • Correlate process crash telemetry with use of cryptographic libraries to surface exploitation attempts that produce abnormal terminations.

Monitoring Recommendations

  • Enable kernel auditing for execve events on PKCS#11 utilities (p11tool, pkcs11-tool, gnutls-cli) and forward to a central log store for retention and search.
  • Monitor systemd-coredump output and ABRT reports for repeated crashes in GnuTLS-linked binaries.
  • Track package update compliance against the Red Hat and Siemens advisories listed in the references.

How to Mitigate CVE-2025-9820

Immediate Actions Required

  • Apply vendor-supplied GnuTLS updates from your Linux distribution. Red Hat customers should consult the relevant RHSA errata, including RHSA-2026:3477 and later releases.
  • Identify all applications that link libgnutls and restart them after upgrading so the patched library is loaded into memory.
  • Restrict local access to systems that handle PKCS#11 tokens, particularly multi-user servers and developer workstations.

Patch Information

The upstream fix is documented in GnuTLS Security Advisory GNUTLS-SA-2025-11-18 and committed at 1d56f96f6ab5034d677136b9d50b5a75dff0faf5. Tracking is available in GnuTLS Issue #1732 and Red Hat Bug Report #2392528. Industrial operators should review the Siemens Security Advisory SSA-032379 for OT-specific updates.

Workarounds

  • Avoid passing untrusted token labels to gnutls_pkcs11_token_init() in custom applications, and enforce a 32-byte maximum length in calling code per the PKCS#11 specification.
  • Disable PKCS#11 provider modules that are not in active use to reduce attack surface until patches are deployed.
  • Ensure stack protection compiler flags (-fstack-protector-strong) and address space layout randomization remain enabled on hosts running GnuTLS-linked services.
bash
# Verify installed GnuTLS version and apply updates
rpm -q gnutls
sudo dnf update gnutls
# Confirm services using GnuTLS and restart them
sudo lsof | grep libgnutls | awk '{print $1}' | sort -u

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGnutls

  • SeverityMEDIUM

  • CVSS Score4.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-121
  • Technical References
  • Red Hat Security Advisory RHSA-2026:13812

  • Red Hat Security Advisory RHSA-2026:3477

  • Red Hat Security Advisory RHSA-2026:4188

  • Red Hat Security Advisory RHSA-2026:4655

  • Red Hat Security Advisory RHSA-2026:4943

  • Red Hat Security Advisory RHSA-2026:5585

  • Red Hat Security Advisory RHSA-2026:5606

  • Red Hat Security Advisory RHSA-2026:7329

  • Red Hat Security Advisory RHSA-2026:7477

  • Red Hat CVE Report CVE-2025-9820

  • Red Hat Bug Report #2392528

  • GnuTLS Commit Log Entry

  • GnuTLS Issue #1732

  • GnuTLS Security Advisory GNUTLS-SA-2025-11-18

  • OpenWall OSS-Security Mailing List Post

  • Siemens Security Advisory SSA-032379
  • Related CVEs
  • CVE-2026-33846: GnuTLS Buffer Overflow Vulnerability

  • CVE-2026-5419: GnuTLS Information Disclosure Vulnerability

  • CVE-2026-42013: GnuTLS Auth Bypass Vulnerability

  • CVE-2026-42012: GnuTLS Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English