Cloudanix VulnDB

CVE-2025-32988

Medium · 6.5

CVSS

6.5

EPSS

1.5%

Published

Jul 10, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a widely used encryption library can cause programs to crash or behave unpredictably when they process certain unusual certificate data, potentially disrupting services until the library is updated.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Double-free in GnuTLS SAN export logic for otherName entries with invalid type-id OID, caused by asn1_delete_structure() on an unowned node leading to memory corruption or denial of service when the structure is freed again by the caller.

Why it matters to the business

Applications using GnuTLS for TLS or certificate handling may crash or experience memory corruption under attacker-controlled input, disrupting services and requiring emergency patching across a widely deployed library with many downstream dependents.

How an attack unfolds

An attacker supplies a crafted certificate or triggers certificate processing containing a malformed otherName SAN entry through public GnuTLS APIs; the library performs an ownership transfer error during export, resulting in a double-free that can be used for denial of service or potential memory corruption depending on allocator behavior.

How to fix it

Upgrade GnuTLS to the fixed commit 8a36455fd75ce76391cfc00c53213d8b0e1648da or a later release containing the correction; rebuild and redeploy all dependent applications after the update.

How to confirm the fix worked

Confirm the installed GnuTLS version or commit hash includes 8a36455fd75ce76391cfc00c53213d8b0e1648da; run regression tests exercising SAN export paths with malformed otherName entries and verify absence of crashes or corruption.

Typical attack path

  1. Identify a target application or service that uses GnuTLS for certificate validation or TLS handshake processing.
  2. Craft or obtain a certificate containing an otherName SAN entry with an invalid or malformed type-id OID.
  3. Deliver the certificate to the target via a TLS connection or certificate import API call.
  4. Trigger the vulnerable export path in GnuTLS, causing the double-free condition.
  5. Observe denial of service or attempt to leverage resulting memory corruption for further exploitation.

How to detect it

Inspect application and system logs for segmentation faults, abort signals, or heap corruption messages during TLS handshake or certificate parsing; correlate with inbound connections presenting unusual certificates.

What your security team should do

  • Prioritize upgrade of GnuTLS in all environments within the next maintenance window given its broad ecosystem use.
  • Scan build pipelines and container images for vulnerable GnuTLS versions and enforce the fixed commit.
  • Monitor for application crashes or memory errors during certificate processing as an interim indicator.
  • Review certificate validation code paths to ensure they handle malformed input gracefully until patched.

The record

A flaw was found in GnuTLS. A double-free vulnerability exists in GnuTLS due to incorrect ownership handling in the export logic of Subject Alternative Name (SAN) entries containing an otherName. If the type-id OID is invalid or malformed, GnuTLS will call asn1_delete_structure() on an ASN.1 node it does not own, leading to a double-free condition when the parent function or caller later attempts to free the same structure. This vulnerability can be triggered using only public GnuTLS APIs and may result in denial of service or memory corruption, depending on allocator behavior.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:10 gnutls 0 3.8.9-9.el10_0.14
AlmaLinux:10 gnutls-c++ 0 3.8.9-9.el10_0.14
AlmaLinux:10 gnutls-dane 0 3.8.9-9.el10_0.14
AlmaLinux:10 gnutls-devel 0 3.8.9-9.el10_0.14
AlmaLinux:10 gnutls-fips 0 3.8.9-9.el10_0.14
AlmaLinux:10 gnutls-utils 0 3.8.9-9.el10_0.14
AlmaLinux:8 gnutls 0 3.6.16-8.el8_10.4
AlmaLinux:8 gnutls-c++ 0 3.6.16-8.el8_10.4
AlmaLinux:8 gnutls-dane 0 3.6.16-8.el8_10.4
AlmaLinux:8 gnutls-devel 0 3.6.16-8.el8_10.4
AlmaLinux:8 gnutls-utils 0 3.6.16-8.el8_10.4
AlmaLinux:9 gnutls 0 3.8.3-6.el9_6.2
AlmaLinux:9 gnutls-c++ 0 3.8.3-6.el9_6.2
AlmaLinux:9 gnutls-dane 0 3.8.3-6.el9_6.2
AlmaLinux:9 gnutls-devel 0 3.8.3-6.el9_6.2
AlmaLinux:9 gnutls-utils 0 3.8.3-6.el9_6.2
Debian:11 gnutls28 0 No fix
Debian:12 gnutls28 0 No fix
Debian:13 gnutls28 0 No fix
Debian:14 gnutls28 0 3.8.9-3
Mageia:9 gnutls 0 3.8.4-1.2.mga9
SUSE:Linux Enterprise Module for Basesystem 15 SP6 gnutls 0 3.8.3-150600.4.9.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 gnutls 0 3.8.3-150600.4.9.1
openSUSE:Leap 15.6 gnutls 0 3.8.3-150600.4.9.1
openSUSE:Tumbleweed gnutls 0 3.8.10-1.1

Related vulnerabilities