CVEfocus › CVE database › CVE-2018-20657

CVE-2018-20657

CVSS 3.3 LowEPSS 4.0% (higher than 91% of CVEs)Published 2019-01-02Updated 2024-08-05Assigner: mitre

The demangle_template function in cplus-dem.c in GNU libiberty, as distributed in GNU Binutils 2.31.1, has a memory leak via a crafted string, leading to a denial of service (memory consumption), as demonstrated by cxxfilt, a related issue to CVE-2018-12698.

What to do

Fixed builds are available from Red Hat: 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

4Fixed
3Fix pending
110Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04binutilsNot affected
vulnerable_code_not_present
Ubuntu 25.10binutilsNot affected
vulnerable_code_not_present
Ubuntu 24.04binutilsNot affected
vulnerable_code_not_present
Ubuntu 22.04binutilsNot affected
vulnerable_code_not_present
Ubuntu 18.04binutilsFix pendingUBUNTU-CVE-2018-20657
Ubuntu 16.04binutilsFix pendingUBUNTU-CVE-2018-20657
Ubuntu 14.04binutilsFix pendingUBUNTU-CVE-2018-20657
Red Hat Enterprise Linux 8binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 8binutils-develWill not fix
Will not fix
Red Hat Enterprise Linux 8cppWill not fix
Will not fix
Red Hat Enterprise Linux 8gccWill not fix
Will not fix
Red Hat Enterprise Linux 8gcc-c++Will not fix
Will not fix
Red Hat Enterprise Linux 8gcc-gdb-pluginWill not fix
Will not fix
Red Hat Enterprise Linux 8gcc-gfortranWill not fix
Will not fix
Red Hat Enterprise Linux 8gcc-offload-nvptxWill not fix
Will not fix
Red Hat Enterprise Linux 8gcc-plugin-annobinWill not fix
Will not fix
Red Hat Enterprise Linux 8gcc-plugin-develWill not fix
Will not fix
Red Hat Enterprise Linux 8gdbFixed0:8.2-6.el8RHSA-2019:3352
Red Hat Enterprise Linux 8gdb-docFixed0:8.2-6.el8RHSA-2019:3352
Red Hat Enterprise Linux 8gdb-gdbserverFixed0:8.2-6.el8RHSA-2019:3352
Red Hat Enterprise Linux 8gdb-headlessFixed0:8.2-6.el8RHSA-2019:3352
Red Hat Enterprise Linux 8libasanWill not fix
Will not fix
Red Hat Enterprise Linux 8libatomicWill not fix
Will not fix
Red Hat Enterprise Linux 8libatomic-staticWill not fix
Will not fix
Red Hat Enterprise Linux 8libgccWill not fix
Will not fix
Red Hat Enterprise Linux 8libgfortranWill not fix
Will not fix
Red Hat Enterprise Linux 8libgfortran-staticWill not fix
Will not fix
Red Hat Enterprise Linux 8libgompWill not fix
Will not fix
Red Hat Enterprise Linux 8libgomp-offload-nvptxWill not fix
Will not fix
Red Hat Enterprise Linux 8libitmWill not fix
Will not fix
Red Hat Enterprise Linux 8libitm-develWill not fix
Will not fix
Red Hat Enterprise Linux 8liblsanWill not fix
Will not fix
Red Hat Enterprise Linux 8libquadmathWill not fix
Will not fix
Red Hat Enterprise Linux 8libquadmath-develWill not fix
Will not fix
Red Hat Enterprise Linux 8libquadmath-staticWill not fix
Will not fix
Red Hat Enterprise Linux 8libstdc++Will not fix
Will not fix
Red Hat Enterprise Linux 8libstdc++-develWill not fix
Will not fix
Red Hat Enterprise Linux 8libstdc++-docsWill not fix
Will not fix
Red Hat Enterprise Linux 8libstdc++-staticWill not fix
Will not fix
Red Hat Enterprise Linux 8libtsanWill not fix
Will not fix
Red Hat Enterprise Linux 8libubsanWill not fix
Will not fix
Red Hat Enterprise Linux 8mingw-binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 8mingw-binutils-genericWill not fix
Will not fix
Red Hat Enterprise Linux 8mingw32-binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 8mingw64-binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 7binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 7binutils-develWill not fix
Will not fix
Red Hat Enterprise Linux 7cppWill not fix
Will not fix
Red Hat Enterprise Linux 7gccWill not fix
Will not fix
Red Hat Enterprise Linux 7gcc-c++Will not fix
Will not fix
Red Hat Enterprise Linux 7gcc-gfortranWill not fix
Will not fix
Red Hat Enterprise Linux 7gcc-gnatWill not fix
Will not fix
Red Hat Enterprise Linux 7gcc-goWill not fix
Will not fix
Red Hat Enterprise Linux 7gcc-objcWill not fix
Will not fix
Red Hat Enterprise Linux 7gcc-objc++Will not fix
Will not fix
Red Hat Enterprise Linux 7gcc-plugin-develWill not fix
Will not fix
Red Hat Enterprise Linux 7gdbWill not fix
Will not fix
Red Hat Enterprise Linux 7gdb-docWill not fix
Will not fix
Red Hat Enterprise Linux 7gdb-gdbserverWill not fix
Will not fix
Red Hat Enterprise Linux 7libasanWill not fix
Will not fix
Red Hat Enterprise Linux 7libasan-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libatomicWill not fix
Will not fix
Red Hat Enterprise Linux 7libatomic-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libgccWill not fix
Will not fix
Red Hat Enterprise Linux 7libgfortranWill not fix
Will not fix
Red Hat Enterprise Linux 7libgfortran-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libgnatWill not fix
Will not fix
Red Hat Enterprise Linux 7libgnat-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libgnat-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libgoWill not fix
Will not fix
Red Hat Enterprise Linux 7libgo-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libgo-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libgompWill not fix
Will not fix
Red Hat Enterprise Linux 7libitmWill not fix
Will not fix
Red Hat Enterprise Linux 7libitm-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libitm-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libmudflapWill not fix
Will not fix
Red Hat Enterprise Linux 7libmudflap-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libmudflap-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libobjcWill not fix
Will not fix
Red Hat Enterprise Linux 7libquadmathWill not fix
Will not fix
Red Hat Enterprise Linux 7libquadmath-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libquadmath-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libstdc++Will not fix
Will not fix
Red Hat Enterprise Linux 7libstdc++-develWill not fix
Will not fix
Red Hat Enterprise Linux 7libstdc++-docsWill not fix
Will not fix
Red Hat Enterprise Linux 7libstdc++-staticWill not fix
Will not fix
Red Hat Enterprise Linux 7libtsanWill not fix
Will not fix
Red Hat Enterprise Linux 7libtsan-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 6binutils-develWill not fix
Will not fix
Red Hat Enterprise Linux 6cppWill not fix
Will not fix
Red Hat Enterprise Linux 6gccWill not fix
Will not fix
Red Hat Enterprise Linux 6gcc-c++Will not fix
Will not fix
Red Hat Enterprise Linux 6gcc-gfortranWill not fix
Will not fix
Red Hat Enterprise Linux 6gcc-gnatWill not fix
Will not fix
Red Hat Enterprise Linux 6gcc-javaWill not fix
Will not fix
Red Hat Enterprise Linux 6gcc-objcWill not fix
Will not fix
Red Hat Enterprise Linux 6gcc-objc++Will not fix
Will not fix
Red Hat Enterprise Linux 6gdbWill not fix
Will not fix
Red Hat Enterprise Linux 6gdb-gdbserverWill not fix
Will not fix
Red Hat Enterprise Linux 6libatomicWill not fix
Will not fix
Red Hat Enterprise Linux 6libgccWill not fix
Will not fix
Red Hat Enterprise Linux 6libgcjWill not fix
Will not fix
Red Hat Enterprise Linux 6libgcj-develWill not fix
Will not fix
Red Hat Enterprise Linux 6libgcj-srcWill not fix
Will not fix
Red Hat Enterprise Linux 6libgfortranWill not fix
Will not fix
Red Hat Enterprise Linux 6libgnatWill not fix
Will not fix
Red Hat Enterprise Linux 6libgnat-develWill not fix
Will not fix
Red Hat Enterprise Linux 6libgompWill not fix
Will not fix
Red Hat Enterprise Linux 6libitmWill not fix
Will not fix
Red Hat Enterprise Linux 6libmudflapWill not fix
Will not fix
Red Hat Enterprise Linux 6libmudflap-develWill not fix
Will not fix
Red Hat Enterprise Linux 6libobjcWill not fix
Will not fix
Red Hat Enterprise Linux 6libquadmathWill not fix
Will not fix
Red Hat Enterprise Linux 6libstdc++Will not fix
Will not fix
Red Hat Enterprise Linux 6libstdc++-develWill not fix
Will not fix
Red Hat Enterprise Linux 6libstdc++-docsWill not fix
Will not fix
Red Hat Enterprise Linux 5binutilsWill not fix
Will not fix
Red Hat Enterprise Linux 5gccWill not fix
Will not fix
Red Hat Enterprise Linux 5gdbWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

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.