CVE-2025-5702 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-5702?

CVE-2025-5702 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 strcmp implementation optimized for the Power10 processor in the GNU C Library version 2.39 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-5702?

It affects 1 product.

Linux distribution packages (40)
glibc-doc AlmaLinux:10All versions2.39-43.el10_0.alma.1
glibc AlmaLinux:9All versions2.34-168.el9_6.20
glibc-all-langpacks AlmaLinux:9All versions2.34-168.el9_6.20
glibc-benchtests AlmaLinux:9All versions2.34-168.el9_6.20
glibc-common AlmaLinux:9All versions2.34-168.el9_6.20
glibc-devel AlmaLinux:9All versions2.34-168.el9_6.20
glibc-doc AlmaLinux:9All versions2.34-168.el9_6.20
glibc-gconv-extra AlmaLinux:9All versions2.34-168.el9_6.20
glibc-headers AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-aa AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-af AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-agr AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ak AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-am AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-an AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-anp AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ar AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-as AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ast AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ayc AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-az AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-be AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bem AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ber AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bg AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bhb AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bho AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bi AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bn AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bo AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-br AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-brx AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-bs AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-byn AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ca AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ce AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-chr AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-ckb AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-cmn AlmaLinux:9All versions2.34-168.el9_6.20
glibc-langpack-crh AlmaLinux:9All versions2.34-168.el9_6.20

Products include Gnu Glibc.

How do I fix CVE-2025-5702?

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-5702 being exploited?

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

All Gnu Glibc vulnerabilities

Sources

Also known as ALSA-2025:11066, ALSA-2025:9877, DEBIAN-CVE-2025-5702, GHSA-hqwp-qwfv-mhrx, MINI-8qf7-3jq4-43w3, MINI-qv64-wg56-gmf8 and 6 more.

Is CVE-2025-5702 in your software?

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

Check your SBOMs for free