CVE-2018-20673
The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, contains an integer overflow vulnerability (for "Create an array for saving the template argument values") that can trigger a heap-based buffer overflow, as demonstrated by nm.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has 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 22.04 | binutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | binutils | Fix pending | UBUNTU-CVE-2018-20673 | |
| Ubuntu 16.04 | binutils | Will not fix code was removed in 2.32, see bug for more info provided patch removes functionality for versions before 2.32. See gcc bug for more information. | UBUNTU-CVE-2018-20673 | |
| Ubuntu 14.04 | binutils | Fix pending | UBUNTU-CVE-2018-20673 | |
| Debian 14 | 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-2018-20673 | |
| 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-2018-20673 | |
| 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-2018-20673 | |
| Red Hat Enterprise Linux 8 | binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | binutils-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cpp | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-c++ | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-gdb-plugin | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-gfortran | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-offload-nvptx | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gcc-plugin-devel | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | gdb | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 8 | gdb-headless | Not affected | ||
| Red Hat Enterprise Linux 8 | libasan | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libatomic | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libatomic-static | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libgcc | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libgfortran | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libgomp | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libgomp-offload-nvptx | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libitm | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libitm-devel | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | liblsan | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libquadmath | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libquadmath-devel | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libstdc++ | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libstdc++-devel | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libstdc++-docs | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libstdc++-static | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libtsan | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | libubsan | Fixed | 0:8.5.0-3.el8 | RHSA-2021:4386 |
| Red Hat Enterprise Linux 8 | mingw-binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | mingw-binutils-generic | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | mingw32-binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | mingw64-binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | binutils-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | cpp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-c++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-gfortran | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-gnat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-go | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-objc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-objc++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gcc-plugin-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | gdb | Not affected | ||
| Red Hat Enterprise Linux 7 | gdb-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | gdb-gdbserver | Not affected | ||
| Red Hat Enterprise Linux 7 | libasan | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libasan-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libatomic | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libatomic-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgcc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgfortran | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgfortran-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgnat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgnat-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgnat-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgo-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgo-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libgomp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libitm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libitm-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libitm-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libmudflap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libmudflap-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libmudflap-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libobjc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libquadmath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libquadmath-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libquadmath-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libstdc++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libstdc++-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libstdc++-docs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libstdc++-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtsan | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtsan-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | binutils-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | cpp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-c++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-gfortran | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-gnat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-java | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-objc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gcc-objc++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | gdb-gdbserver | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libatomic | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgcc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgcj | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgcj-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgcj-src | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgfortran | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgnat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgnat-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libgomp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libitm | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libmudflap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libmudflap-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libobjc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libquadmath | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libstdc++ | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libstdc++-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libstdc++-docs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | binutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | gcc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | gdb | Will not fix Will not fix | ||
| AlmaLinux 8 | cpp | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc-c++ | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc-gdb-plugin | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc-gfortran | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc-offload-nvptx | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | gcc-plugin-devel | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | libitm-devel | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | libquadmath-devel | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | libstdc++-devel | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | libstdc++-docs | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| AlmaLinux 8 | libstdc++-static | Fixed | 8.5.0-3.el8.alma | ALSA-2021:4386 |
| Rocky Linux 8 | gcc | Fixed | 0:8.5.0-3.el8 | RLSA-2021:4386 |
References
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.