---
id: CVE-2025-0395
title: >-
  When the assert() function in the GNU C Library versions 2.13 to 2.40 fails,
  it does not allocate enough space for the assertion failure message string and
  size information, which may lead to a buffer overflow if the message string
  size …
summary: >-
  When the assert() function in the GNU C Library versions 2.13 to 2.40 fails,
  it does not allocate enough space for the assertion failure message string and
  size information, which may lead to a buffer overflow if the message string
  size …
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: adp
cwe:
  - CWE-131
vendor: The GNU C Library
product: glibc
affected:
  - glibc >= 2.13 <= 2.40
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-02-04T20:45:32.215090Z'
exploitAvailable: true
published: '2025-01-22'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:01:52.824Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-0395'
references:
  - url: 'https://www.openwall.com/lists/oss-security/2025/01/22/4'
  - url: 'https://sourceware.org/bugzilla/show_bug.cgi?id=32582'
  - url: >-
      https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2025-0001
  - url: 'https://sourceware.org/pipermail/libc-announce/2025/000044.html'
tags:
  - cve.org
  - exploit-available
epss: 0.00356
epssPercentile: 0.27639
ingestedAt: '2026-10-15T04:46:37.347Z'
---

## Overview

When the assert() function in the GNU C Library versions 2.13 to 2.40 fails, it does not allocate enough space for the assertion failure message string and size information, which may lead to a buffer overflow if the message string size aligns to page size.

## Affected

- `glibc >= 2.13 <= 2.40`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
