Description
A heap-based buffer over-read exists in the function d_expression_1 in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31.1. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by c++filt.
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 | No fix yet | — |
| Debian 13 | binutils | No fix yet | — |
| Debian 12 | binutils | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libiberty | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | binutils | 2.32-r0 | — |
| Alpine v3.23 | binutils | 2.32-r0 | — |
| Alpine v3.22 | binutils | 2.32-r0 | — |
| Alpine v3.21 | binutils | 2.32-r0 | — |
| Alpine v3.20 | binutils | 2.32-r0 | — |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | binutils | 2.32-r0 | — |
| Alpine v3.18 | binutils | 2.32-r0 | — |
| Alpine v3.17 | binutils | 2.32-r0 | — |
| Alpine v3.16 | binutils | 2.32-r0 | — |
| Alpine v3.15 | binutils | 2.32-r0 | — |
| Alpine v3.14 | binutils | 2.32-r0 | — |
| Alpine v3.13 | binutils | 2.32-r0 | — |
| Alpine v3.12 | binutils +1 | 2.32-r0 | — |
| Alpine v3.11 | binutils +1 | 2.32-r0 | — |
| Alpine v3.10 | binutils | 2.32-r0 | — |