glibc: Vector register overwrite bug in glibc
Published Jun 5, 2025
5.6
MEDIUMCVSS 3.1
EPSS 0.31%
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.
Affected products
-
- Version 2.39StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| The GNU C Library | Glibc | unaffected |
|
No data.
Red Hat Discovery 2
discovery/discovery-server-rhel9:2.0.0-1752592913
Fixed · RHSA-2025:11487
Red Hat Enterprise Linux 10
glibc-0:2.39-43.el10_0
Fixed · RHSA-2025:11066
Red Hat Enterprise Linux 9
glibc-0:2.34-168.el9_6.20
Fixed · RHSA-2025:9877
Red Hat Enterprise Linux 9
glibc-0:2.34-168.el9_6.20
Fixed · RHSA-2025:9877
Red Hat Enterprise Linux 6
compat-glibc
Not affected
Red Hat Enterprise Linux 6
glibc
Not affected
Red Hat Enterprise Linux 7
compat-glibc
Not affected
Red Hat Enterprise Linux 7
glibc
Not affected
Red Hat Enterprise Linux 8
glibc
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Discovery 2 | discovery/discovery-server-rhel9:2.0.0-1752592913 | Fixed | RHSA-2025:11487 |
| Red Hat Enterprise Linux 10 | glibc-0:2.39-43.el10_0 | Fixed | RHSA-2025:11066 |
| Red Hat Enterprise Linux 9 | glibc-0:2.34-168.el9_6.20 | Fixed | RHSA-2025:9877 |
| Red Hat Enterprise Linux 9 | glibc-0:2.34-168.el9_6.20 | Fixed | RHSA-2025:9877 |
| Red Hat Enterprise Linux 6 | compat-glibc | Not affected | n/a |
| Red Hat Enterprise Linux 6 | glibc | Not affected | n/a |
| Red Hat Enterprise Linux 7 | compat-glibc | Not affected | n/a |
| Red Hat Enterprise Linux 7 | glibc | Not affected | n/a |
| Red Hat Enterprise Linux 8 | glibc | Not affected | n/a |
No package ranges for this CVE.
Remediation
Vendor solution
One may disable the Power10 optimized string routines in glibc to work around this issue, by setting the glibc.cpu.hwcaps tunable. This can be done by exporting the GLIBC_TUNABLES environment variable like so:
export GLIBC_TUNABLES=glibc.cpu.hwcaps=-arch_3_1
Red Hat statement
This flaw is marked as a Moderate vulnerability rather than an Important one because, while it violates the PowerPC64LE ABI by overwriting non-volatile vector registers (v20 to v31) in the optimized strcmp implementation, its impact is highly context-dependent. The vulnerability does not result in immediate memory corruption, privilege escalation, or remote code execution on its own. It only poses a risk if the overwritten registers were actively holding critical state across the call to strcmp, which is uncommon in typical usage patterns of the function. Moreover, since this issue occurs in an architecture-specific optimization path for Power10 and affects a relatively recent version of glibc (2.39+), its exposure is limited in scope and deployment. Note that this vulnerability only impacts POWER10 (ppc64le), not POWER9, nor the aarch64, s390x, x86-64 products.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (6)
- https://access.redhat.com/security/cve/CVE-2025-5702 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2370472 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-17009 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-5702
- https://sourceware.org/bugzilla/show_bug.cgi?id=33056 Issue Tracking
- https://www.cve.org/CVERecord?id=CVE-2025-5702
Change history (0)
No recorded changes yet.