CVE-2025-1365
Medium · 5.3CVSS
5.3
EPSS
0.3%
Published
Feb 17, 2025
CISA due date
—
Cloudanix analysis
A bug in a widely used Linux tool for examining program files lets someone already on the system potentially crash it or run their own code.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Buffer overflow in process_symtab of readelf.c triggered by crafted input to the D/a argument, allowing memory corruption during ELF symbol table processing.
Why it matters to the business
Local users may crash analysis tools or execute arbitrary code on systems that use elfutils for binary inspection, increasing risk of privilege escalation or service disruption in development and forensic workflows.
How an attack unfolds
An attacker with local access crafts input that manipulates the D/a argument passed to eu-readelf, causing the process_symtab function to overflow a buffer and corrupt memory, potentially leading to code execution; a public exploit is available.
How to fix it
Apply the upstream patch identified by commit 5e5c0394d82c53e97750fe7b18023e6f84157b81 or upgrade to a version of elfutils that contains the fix; rebuild and redeploy any dependent packages.
How to confirm the fix worked
Confirm the installed elfutils version is newer than 0.192 or contains commit 5e5c0394d82c53e97750fe7b18023e6f84157b81; run eu-readelf against known-good and crafted test inputs to verify absence of crashes or overflows.
Typical attack path
- Gain local shell access on a target system
- Prepare a malicious ELF file or command-line argument targeting the D/a parameter
- Invoke eu-readelf with the crafted input
- Trigger buffer overflow in process_symtab
- Leverage memory corruption for code execution or denial of service
How to detect it
Review local process execution logs and command history for invocations of eu-readelf with unusual arguments or files; inspect core dumps or crash reports from readelf processes for signs of memory corruption.
What your security team should do
- Prioritize patching elfutils on all systems that invoke eu-readelf or related utilities
- Restrict local access to binary analysis tools where feasible
- Monitor for new public exploits and update EPSS tracking
- Include elfutils in regular vulnerability scanning and SBOM inventories
The record
A vulnerability, which was classified as critical, was found in GNU elfutils 0.192. This affects the function process_symtab of the file readelf.c of the component eu-readelf. The manipulation of the argument D/a leads to buffer overflow. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used. The identifier of the patch is 5e5c0394d82c53e97750fe7b18023e6f84157b81. It is recommended to apply a patch to fix this issue.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | elfutils | 0 | No fix |
| Debian:12 | elfutils | 0 | No fix |
| Debian:13 | elfutils | 0 | No fix |
Related vulnerabilities
- CVE-2025-1377 A vulnerability, which was classified as problematic, has been found in GNU elfutils… Also affects elfutils
- CVE-2025-1376 A vulnerability classified as problematic was found in GNU elfutils 0.192. Also affects elfutils
- CVE-2025-1371 A vulnerability has been found in GNU elfutils 0.192 and classified as problematic. Also affects elfutils
- CVE-2025-1372 A vulnerability was found in GNU elfutils 0.192. Also affects elfutils
- CVE-2025-1352 A vulnerability has been found in GNU elfutils 0.192 and classified as critical. Also affects elfutils
- CVE-2016-10254 The allocate_elf function in common.h in elfutils before 0.168 allows remote attackers to… Also affects elfutils
- CVE-2014-9447 Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c… Also affects elfutils
- CVE-2014-0172 Integer overflow in the check_section function in dwarf_begin_elf.c in the libdw library… Also affects elfutils