CVE-2025-0395: Buffer overflow in the GNU C Library's assert()

Published Jan 22, 2025
·
Updated

Last updated 10 February 2025

Other sources

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.

— NVD

Affected Software

13 affected componentsFixes available
GNU C Library>=2.13<=2.40
IBM Cloud Pak System<=2.3.4.0
IBM Cloud Pak System<=2.3.4.1 2.3.4.1 ifix1
IBM Cloud Pak System<=2.3.5.0
IBM Cloud Pak System<=2.3.6.0
IBM OS Image for Red Hat Linux Systems<=4.0.4.0 4.0.5.0 4.0.6.0 4.0.7.0
IBM OS Image for Red Hat Linux Systems<=5.0.0.0 5.0.1.0
Microsoft azl3 glibc 2.38-11<2.38-11
2.38-11
Microsoft cbl2 glibc 2.35-9<2.35-8
2.35-8
debian/glibc<2.36-9+deb12u10
2.36-9+deb12u10
debian/glibc<2.40-6
2.40-6
debian/glibc<2.40-6
2.40-6
debian/glibc<=2.36-9+deb12u7
2.31-13+deb11u122.36-9+deb12u102.40-6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.38-11
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.35-8
  3. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.36-9+deb12u10
  4. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.40-6
  5. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.31-13+deb11u12Fixed in 2.36-9+deb12u10Fixed in 2.40-6

Event History

Jan 22, 2025
CVE Published
via MITRE·01:11 PM
Data Sourced
via MITRE·01:11 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionWeakness
Data Sourced
via OSV·01:15 PM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Feb 4, 2025
Data Sourced
via NVD·08:15 PM
Severity
Jul 11, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:00 AM
WeaknessAffected Software
Updated
via Microsoft·07:00 AM
WeaknessAffected Software
Aug 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Feb 4, 2026
Updated
via NVD·09:15 PM
Severity
Jun 17, 2026
Updated
via NVD·08:26 AM
Severity
Aug 13, 2026
Updated
via Microsoft·06:38 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-0395?

CVE-2025-0395 has a high severity rating due to the potential for a buffer overflow that can lead to system compromise.

2

How do I fix CVE-2025-0395?

To fix CVE-2025-0395, upgrade to GNU C Library version 2.40-6 or later.

3

Which versions of GNU C Library are affected by CVE-2025-0395?

CVE-2025-0395 affects GNU C Library versions between 2.13 and 2.40.

4

What could be the impact of CVE-2025-0395 on my system?

The impact of CVE-2025-0395 may include application crashes or arbitrary code execution due to the buffer overflow.

5

Is CVE-2025-0395 a critical vulnerability?

Yes, CVE-2025-0395 is considered critical due to its ability to affect system stability and security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203