CVE-2025-1176 GNU Binutils ld elflink.c _bfd_elf_gc_mark_rsec heap-based overflow

Low 2.3 Published Updated

A heap-based buffer overflow in the GNU Binutils linker allows remote attackers to execute arbitrary code or cause denial of service via crafted ELF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-1176?

CVE-2025-1176 is a low-severity memory corruption vulnerability in Gnu Binutils, published on 11 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A vulnerability was found in GNU Binutils 2.43 and classified as critical. This issue affects the function _bfd_elf_gc_mark_rsec of the file elflink.c of the component ld. The manipulation leads to heap-based buffer overflow. The attack may be initiated remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The patch is named f9978defb6fab0bd8583942d97c112b0932ac814. It is recommended to apply a patch to fix this issue.

Weakness: CWE-122, CWE-119

Which versions are affected by CVE-2025-1176?

It affects 1 product.

Products include Gnu Binutils.

How do I fix CVE-2025-1176?

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

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

All Gnu Binutils vulnerabilities

Sources

Also known as AZL-56579, AZL-56652, AZL-56655, AZL-86934, BELL-CVE-2025-1176, CLSA-2025-1754649018 and 6 more.

Is CVE-2025-1176 in your software?

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

Check your SBOMs for free