Description
The bfd_cache_close function in bfd/cache.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29 and earlier, allows remote attackers to cause a heap use after free and possibly achieve code execution via a crafted nested archive file. This issue occurs because incorrect functions are called during an attempt to release memory. The issue can be addressed by better input validation in the bfd_generic_archive_p function in bfd/archive.c.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | binutils | 2.29-9 | — |
| Debian 13 | binutils | 2.29-9 | — |
| Debian 12 | binutils | 2.29-9 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | binutils | 2.26.1-1ubuntu1~16.04.8+esm1 | USN-4336-2 |
| Ubuntu Pro 14.04 LTS | binutils | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | binutils +2 | 2.29.1-9.20.2 | SUSE-SU-2017:3170-1 |
| SLES 12 SP2 | binutils +2 | 2.29.1-9.20.2 | SUSE-SU-2017:3170-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | binutils | 2.29.1-9.20.2 | SUSE-SU-2017:3170-1 |
| SLES for SAP 12 SP2 | binutils | 2.29.1-9.20.2 | SUSE-SU-2017:3170-1 |
| SLES for SAP 12 SP1 | binutils | 2.29.1-9.20.2 | SUSE-SU-2017:3170-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | binutils | 2.37-1.3 | openSUSE-SU-2024:10651-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | binutils +1 | 2.29.1-27.amzn2.0.1 | ALAS2-2019-1185 |
Advisories 4
- USN-4336-2 binutils vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- openSUSE-SU-2024:10651-1 binutils-2.37-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:3170-1 Security update for binutils SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2019-1185 Moderate: binutils security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 8, 2025