CVE-2025-1372 GNU elfutils eu-readelf readelf.c print_string_section buffer overflow

Medium 4.8 Published Updated

A buffer overflow in GNU elfutils eu-readelf allows local attackers to execute arbitrary code or cause denial of service via crafted arguments.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-1372?

CVE-2025-1372 is a medium-severity memory corruption vulnerability in GNU elfutils, published on 17 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in GNU elfutils 0.192. It has been declared as critical. Affected by this vulnerability is the function dump_data_section/print_string_section of the file readelf.c of the component eu-readelf. The manipulation of the argument z/x leads to buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The identifier of the patch is 73db9d2021cab9e23fd734b0a76a612d52a6f1db. It is recommended to apply a patch to fix this issue.

Weakness: CWE-120, CWE-119

Which versions are affected by CVE-2025-1372?

It affects 1 product.

Products include Elfutils Project Elfutils.

How do I fix CVE-2025-1372?

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

There is no known exploitation of CVE-2025-1372 in the wild and no public exploit code.

Sources

Also known as AZL-56977, BELL-CVE-2025-1372, DEBIAN-CVE-2025-1372, ECHO-d1e1-d410-d8fb, GHSA-r49j-8ffh-3gvm, ROOT-OS-DEBIAN-12-CVE-2025-1372 and 1 more.

Is CVE-2025-1372 in your software?

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

Check your SBOMs for free