CVE Database›Document archive›CVE-2025-5244

CVE-2025-5244

binutils: GNU Binutils ld elflink.c elf_gc_sweep memory corruption

Loading…

Severity

Moderate

Red Hat Product Security

4

CVSS 3.1

Review impact separately from score.

Published · May 27, 2025

Updated · September 1, 2026

Description

A vulnerability was found in GNU Binutils 2.40 to version 2.44 and affects the elf_gc_sweep function of the bfd/elflink.c file of the component ld. The manipulation leads to memory corruption and a program crash. An attacker must have local access to exploit this vulnerability.

Statement

The vulnerability relies upon the linker's -w command line option, which disables warnings and forces the linker to continue working even though it knows that it cannot produce valid output. With this option enabled a code path is exposed which leads to a dereferencing of a NULL pointer and the segmentation fault. The -w command line option was introduced with the 2.40 release.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer