cve.bz

CVE-2025-0395 the gnu c library glibc: Incorrect Calculation of Buffer Size

6.2 mediumEPSS 0.4%

Medium (6.2) in the gnu c library glibc. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.2 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-02-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-0395 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-0395?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-0395?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-0395 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The GNU C Library glibcfrom 2.13 through 2.40

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11glibc2.31-13+deb11u12DLA-4143-1
Debian12glibc2.36-9+deb12u10DEBIAN-CVE-2025-0395
Debian13, 14glibc2.40-6DEBIAN-CVE-2025-0395
Ubuntu20.04:LTSglibc2.31-0ubuntu9.17UBUNTU-CVE-2025-0395 USN-7259-1
Ubuntu22.04:LTSglibc2.35-0ubuntu3.9UBUNTU-CVE-2025-0395 USN-7259-1
Ubuntu24.04:LTSglibc2.39-0ubuntu8.4UBUNTU-CVE-2025-0395 USN-7259-1
UbuntuPro:14.04:LTSeglibc2.19-0ubuntu6.15+esm4UBUNTU-CVE-2025-0395 USN-7259-3
UbuntuPro:16.04:LTSglibc2.23-0ubuntu11.3+esm8UBUNTU-CVE-2025-0395 USN-7259-2
UbuntuPro:18.04:LTSglibc2.27-3ubuntu1.6+esm4UBUNTU-CVE-2025-0395 USN-7259-1
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-251.el8_10.16RHSA-2025:3828
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-251.el8_10.16RHSA-2025:3828
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-251.el8_10.16RHSA-2025:3828
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-125.el9_5.8RHSA-2025:4244
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-125.el9_5.8RHSA-2025:4244
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-125.el9_5.8RHSA-2025:4244
Red Hatrhel_e4s:9.0::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-28.el9_0.8RHSA-2025:4242
Red Hatrhel_e4s:9.0::baseosnscd, glibc, libnsl and 212 more0:2.34-28.el9_0.8RHSA-2025:4242
Red Hatrhel_eus:9.2::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-60.el9_2.17RHSA-2025:4241
Red Hatrhel_eus:9.2::baseosnscd, glibc, libnsl and 212 more0:2.34-60.el9_2.17RHSA-2025:4241
Red Hatrhel_eus:9.2::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-60.el9_2.17RHSA-2025:4241
Red Hatrhel_eus:9.4::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-100.el9_4.10RHSA-2025:4243
2 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 16 moreglibc2.31-150300.92.1SUSE-SU-2025:0562-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6glibc2.38-150600.14.23.1SUSE-SU-2025:0582-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5glibc2.22-114.40.1SUSE-SU-2025:0510-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0glibc2.40-160000.3.1SUSE-SU-2026:20198-1
SUSELinux Micro 6.0glibc2.38-8.1SUSE-SU-2025:20135-1
SUSELinux Micro 6.1glibc2.38-slfo.1.1_3.1SUSE-SU-2025:20236-1
SUSELinux Micro 6.2glibc2.40-160000.3.1SUSE-SU-2026:20178-1
SUSELinux Micro Extras 6.2glibc2.40-160000.3.1SUSE-SU-2026:20563-1
openSUSELeap 15.6glibc2.38-150600.14.23.1SUSE-SU-2025:0582-1
openSUSELeap 16.0glibc, glibc-cross-s390x-src, glibc-cross-aarch64-src and 2 more2.40-160000.3.1openSUSE-SU-2026:20133-1
openSUSETumbleweedglibc2.41-1.1openSUSE-SU-2025:14851-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-251.el8_10.16ALSA-2025:3828
AlmaLinux9nscd, glibc, libnsl and 212 more2.34-125.el9_5.8.alma.1ALSA-2025:4244
Rocky Linux8glibc0:2.28-251.el8_10.16RLSA-2025:3828
Rocky Linux9glibc0:2.34-125.el9_5.8RLSA-2025:4244
Azure Linux2glibc2.35-9AZL-55937
Azure Linux3glibc2.38-11AZL-55965
Alpaquita23glibc2.37.0-r17BELL-CVE-2025-0395
Alpaquitastreamglibc2.39.0-r1BELL-CVE-2025-0395
BellSoft Hardened Containers23glibc2.37.0-r17BELL-CVE-2025-0395
BellSoft Hardened Containersstreamglibc2.39.0-r1BELL-CVE-2025-0395

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The bug is with glib assert() function that is typically used to identify logic errors in programs. The specific vulnerability stems in not enough being allocated to fit an arbitrary length error statement that is passed to the assert() function. The lack of any check on the string length causes the buffer overflow.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat build of Keycloak 26.2rhbk/keycloak-operator-bundle:26.2.4-2Fixed 2025-05-14RHBA-2025:7639
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9:26.2-3Fixed 2025-05-14RHBA-2025:7639
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9-operator:26.2-3Fixed 2025-05-14RHBA-2025:7639
Red Hat Enterprise Linux 8glibc-0:2.28-251.el8_10.16Fixed 2025-04-14RHSA-2025:3828
Red Hat Enterprise Linux 9glibc-0:2.34-125.el9_5.8Fixed 2025-04-28RHSA-2025:4244
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsglibc-0:2.34-28.el9_0.8Fixed 2025-04-28RHSA-2025:4242
Red Hat Enterprise Linux 9.2 Extended Update Supportglibc-0:2.34-60.el9_2.17Fixed 2025-04-28RHSA-2025:4241
Red Hat Enterprise Linux 9.4 Extended Update Supportglibc-0:2.34-100.el9_4.10Fixed 2025-04-28RHSA-2025:4243
Red Hat Enterprise Linux 10glibcNot affected
Red Hat Enterprise Linux 6compat-glibcOut of support scope
Red Hat Enterprise Linux 6glibcOut of support scope
Red Hat Enterprise Linux 7compat-glibcOut of support scope
Red Hat Enterprise Linux 7glibcWill not fix
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-0395.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-16Siemens Ruggedcom Rox2026-05-12Critical ManufacturingRUGGEDCOM ROX MX5000, RUGGEDCOM ROX MX5000RE, RUGGEDCOM ROX RX1400 and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON