Description
An issue was discovered in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.29 and 2.30. Stack Exhaustion occurs in the C++ demangling functions provided by libiberty, and there are recursive stack frames: demangle_nested_args, demangle_args, do_arg, and do_type.
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.32.51.20190707-1 | — |
| Debian 13 | binutils | 2.32.51.20190707-1 | — |
| Debian 12 | binutils | 2.32.51.20190707-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | binutils | 2.30-21ubuntu1~18.04.3 | USN-4336-1 |
| Ubuntu 18.04 LTS | libiberty | 20170913-1ubuntu0.1 | USN-4326-1 |
| Ubuntu 16.04 LTS | libiberty | 20160215-1ubuntu0.3 | USN-4326-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| 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 | — |
Advisories 3
- USN-4336-2 binutils vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-4336-1 binutils vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-4326-1 libiberty vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
References
- https://sourceware.org/bugzilla/show_bug.cgi?id=23008
- USN-4326-1 vendor-advisory
- USN-4336-1 vendor-advisory