CVE-2025-5745

NameCVE-2025-5745
DescriptionThe strncmp implementation optimized for the Power10 processor in the GNU C Library version 2.40 and later 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1107366

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
glibc (PTS)bullseye2.31-13+deb11u11fixed
bullseye (security)2.31-13+deb11u13fixed
bookworm2.36-9+deb12u10fixed
bookworm (security)2.36-9+deb12u7fixed
sid, trixie2.41-8vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
glibcsourcebullseye(not affected)
glibcsourcebookworm(not affected)
glibcsource(unstable)(unfixed)1107366

Notes

[bookworm] - glibc <not-affected> (Vulnerable code introduced in 2.40)
[bullseye] - glibc <not-affected> (Vulnerable code introduced in 2.40)
https://sourceware.org/bugzilla/show_bug.cgi?id=33060
https://sourceware.org/pipermail/libc-alpha/2025-June/167405.html
Introduced with: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=23f0d81608d0ca6379894ef81670cf30af7fd081 (glibc-2.40)

Search for package or bug name: Reporting problems