CVE-2025-5745 Memory corruption in glibc

Medium 5.6 Published Updated

A glibc bug on Power10 corrupts non-volatile registers, potentially allowing control flow hijacking or data leakage.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-5745?

CVE-2025-5745 is a medium-severity memory corruption vulnerability in Gnu Glibc, published on 5 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The 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.

Weakness: CWE-665

Which versions are affected by CVE-2025-5745?

It affects 1 product.

Products include Gnu Glibc.

How do I fix CVE-2025-5745?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-5745 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5745 exists.

All Gnu Glibc vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-5745, GHSA-7qrf-49g7-25m2, MINI-pr9c-2v5q-34m2.

Is CVE-2025-5745 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free