CVE-2025-1152: GNU Binutils ld xstrdup.c xstrdup memory leak

Published Feb 10, 2025
·
Updated

A vulnerability classified as problematic has been found in GNU Binutils 2.43. Affected is the function xstrdup of the file xstrdup.c of the component ld. The manipulation leads to memory leak. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. It is recommended to apply a patch to fix this issue. The code maintainer explains: "I'm not going to commit some of the leak fixes I've been working on to the 2.44 branch due to concern that would destabilise ld. All of the reported leaks in this bugzilla have been fixed on binutils master."

Other sources

GNU Binutils ld xstrdup.c xstrdup memory leak

— Microsoft

Affected Software

56 affected componentsFixes available
GNU binutils
GNU binutils=2.43
All of the following
azurelinux/crash=9.0.0-1
Microsoft Azure Linux=3.0
All of the following
azurelinux/crash=8.0.1-5
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/gcc=11.2.0-9
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/gdb=11.2-10
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/binutils=2.37-16
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/gdb=13.2-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/gdb=11.2-7
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/binutils=2.37-17
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/binutils=2.37-19
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/annobin=12.49-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/gcc=11.2.0-8
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/crash=8.0.1-4
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/binutils=2.41-9
Microsoft Azure Linux=3.0
All of the following
azurelinux/crash=8.0.4-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/binutils=2.41-10
Microsoft Azure Linux=3.0
All of the following
azurelinux/binutils=2.37-15
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/gdb=13.2-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/crash=8.0.4-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/gdb=11.2-6
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/gdb=13.2-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/gcc=13.2.0-7
Microsoft Azure Linux=3.0
All of the following
azurelinux/binutils=2.41-7
Microsoft Azure Linux=3.0
debian/binutils<=2.40-2, <=2.44-3
2.45-3
ubuntu/binutils*
ubuntu/binutils*
ubuntu/binutils*
ubuntu/binutils*
ubuntu/binutils<2.38-4ubuntu2.10
2.38-4ubuntu2.10
ubuntu/binutils<2.42-4ubuntu2.6
2.42-4ubuntu2.6
debian/binutils*
debian/binutils*
debian/binutils<2.45-3
2.45-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/binutils to a version that resolves this vulnerability.

    Fixed in 2.45-3
  2. Upgrade

    Upgrade ubuntu/binutils to a version that resolves this vulnerability.

    Fixed in 2.38-4ubuntu2.10
  3. Upgrade

    Upgrade ubuntu/binutils to a version that resolves this vulnerability.

    Fixed in 2.42-4ubuntu2.6
  4. Upgrade

    Upgrade GNU Binutils (ld/xstrdup.c) to a version that resolves this vulnerability.

    Fixed in 2.43
  5. Compensating control

    Since the vulnerability (memory leak in ld xstrdup.c/xstrdup) is remotely exploitable, restrict network access to systems running GNU Binutils ld (e.g., limit who can submit/link untrusted inputs) using firewall/ACL controls.

Event History

Feb 10, 2025
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Mar 3, 2025
Data Sourced
via NVD·04:52 PM
Affected Software
Updated
via NVD·04:52 PM
SeverityWeakness
Updated
via NVD·05:32 PM
Affected Software
Event
via NVD·05:32 PM
Sep 3, 2025
Data Sourced
via Microsoft·11:21 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:21 PM
Affected Software
Updated
via Microsoft·11:21 PM
Weakness
Updated
via Microsoft·11:21 PM
Affected Software
Sep 6, 2026
Updated
via Microsoft·11:47 AM
Weakness
Nov 25, 2026
Updated
via OSV·06:15 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-1152?

CVE-2025-1152 is classified as problematic due to the potential for memory leaks.

2

How do I fix CVE-2025-1152?

To fix CVE-2025-1152, update to the latest version of GNU Binutils that addresses this vulnerability.

3

What component is affected by CVE-2025-1152?

CVE-2025-1152 affects the xstrdup function in the ld component of GNU Binutils.

4

Can CVE-2025-1152 be exploited remotely?

Yes, CVE-2025-1152 can be exploited remotely, although the attack complexity is considered high.

5

What type of vulnerability is CVE-2025-1152?

CVE-2025-1152 is a memory leak vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203