CVE-2025-1151GNU Binutils ld xmemdup.c xmemdup memory leak
A vulnerability was found in GNU Binutils 2.43. It has been rated as problematic. This issue affects the function xmemdup of the file xmemdup.c of the component ld. The manipulation leads to memory leak. 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. 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."
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | binutils | Fix pending | UBUNTU-CVE-2025-1151 | |
| Ubuntu 26.04 | binutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | binutils | Will not fix binutils isn't safe for untrusted inputs. Fixed in jammy and noble by the CVE-2025-1148 patch (d4115c2c8d4), which replaced the lexer's xmemdup with… | UBUNTU-CVE-2025-1151 | |
| Ubuntu 24.04 | binutils | Fixed | 2.42-4ubuntu2.6 | UBUNTU-CVE-2025-1151 |
| Ubuntu 22.04 | binutils | Fixed | 2.38-4ubuntu2.10 | UBUNTU-CVE-2025-1151 |
| Ubuntu 20.04 | binutils | Fix pending | UBUNTU-CVE-2025-1151 | |
| Ubuntu 18.04 | binutils | Fix pending | UBUNTU-CVE-2025-1151 | |
| Ubuntu 16.04 | binutils | Fix pending | UBUNTU-CVE-2025-1151 | |
| Ubuntu 14.04 | binutils | Fix pending | UBUNTU-CVE-2025-1151 | |
| Debian 14 | binutils | Fixed | 2.45-3 | DEBIAN-CVE-2025-1151 |
| Debian 13 | binutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-1151 | |
| Debian 12 | binutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-1151 | |
| Red Hat Enterprise Linux 10 | binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw-binutils-generic | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw32-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw64-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-13-gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gcc-toolset-14-binutils-gprofng | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gdb-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gdb-gdbserver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gdb-headless | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gdb-minimal | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw-binutils-generic | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw32-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw64-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-13-gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-gold | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-binutils-gprofng | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gcc-toolset-14-gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gdb-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gdb-gdbserver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | gdb-headless | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-binutils-generic | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | binutils-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gdb-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | gdb-gdbserver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | binutils | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | binutils-devel | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Binutils: affected: 2.43
References
- https://vuldb.com/?id.295055
- https://vuldb.com/?ctiid.295055
- https://sourceware.org/bugzilla/show_bug.cgi?id=32576
- https://sourceware.org/bugzilla/attachment.cgi?id=15887
- https://www.gnu.org/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.