PT-2025-21753 · Unknown+10 · Gnu C Library+10

Carlos Odonell

·

Published

2025-05-15

·

Updated

2026-05-03

·

CVE-2025-4802

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions GNU C Library versions 2.27 through 2.38
Description An issue exists in the GNU C Library where the LD LIBRARY PATH environment variable is incorrectly searched to determine which library to load when a statically linked setuid binary calls the dlopen() function. This includes internal calls to dlopen() triggered after setlocale() or calls to Name Service Switch (NSS) functions such as getaddrinfo(). A local attacker can exploit this to load an attacker-controlled dynamically shared library, potentially leading to a denial of service, privilege escalation, or arbitrary code execution with root privileges.
Recommendations Update to version 2.39. For Debian 11 bullseye, update glibc packages to version 2.31-13+deb11u13. For Ubuntu systems, update glibc packages to version 2.31-0ubuntu9.18. As a temporary mitigation, audit setuid binaries and remove unnecessary statically linked files. Implement access control mechanisms such as SELinux or AppArmor to restrict the manipulation of environment variables.

Exploit

Fix

LPE

Untrusted Search Path

Weakness Enumeration

Related Identifiers

ALSA-2025:8655
ALSA-2025:8686
AZL-61873
AZL-61877
BDU:2025-05682
CESA-2025_8686
CVE-2025-4802
DLA-4181-1
ECHO-9557-5D0C-3A13
INFSA-2025_8655
INFSA-2025_8686
MGASA-2025-0164
OESA-2025-1581
OPENSUSE-SU-2025:15222-1
OPENSUSE-SU-2025:15697-1
OPENSUSE-SU-2025_01702-1
OPENSUSE-SU-2025_01784-1
RHSA-2025:10219
RHSA-2025:10220
RHSA-2025:8655
RHSA-2025:8686
RHSA-2025:9336
RHSA-2025_8655
RHSA-2025_8686
SUSE-SU-2025:01702-1
SUSE-SU-2025:01702-2
SUSE-SU-2025:01784-1
SUSE-SU-2025:20332-1
SUSE-SU-2025:20361-1
SUSE-SU-2025_01702-1
SUSE-SU-2025_01702-2
SUSE-SU-2025_01784-1
USN-7541-1

Affected Products

Almalinux
Astra Linux
Centos
Debian
Gnu C Library
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu