Resource management error in GNU C Library (glibc) - CVE-2025-5745

 

Resource management error in GNU C Library (glibc) - CVE-2025-5745

Published: June 24, 2025


Vulnerability identifier: #VU111873
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-5745
CWE-ID: CWE-399
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to alter application's behavior.

The vulnerability exists due to an error in strncmp implementation optimized for the Power10 processor. The function writes to vector registers v20 to v31 without saving contents from the caller (those registers are defined as non-volatile registers by the powerpc64le ABI), resulting in overwriting of its contents and potentially altering control flow of the caller, or leaking the input strings to the function to other parts of the program.


Affected software

GNU C Library (glibc)
Ubuntu
Fedora
glibc (Ubuntu package)
glibc

How to mitigate CVE-2025-5745

Install updates from vendor's website.

glibc (Ubuntu package) - addressed in versions 2.39-0ubuntu8.5, 2.41-6ubuntu1.1
glibc - addressed in versions 2.40-26.fc41, 2.41-7.fc42

External References

Related Security Bulletins