{"id":"CVE-2018-17985","details":"An issue was discovered in cp-demangle.c in GNU libiberty, as distributed in GNU Binutils 2.31. There is a stack consumption problem caused by the cplus_demangle_type function making recursive calls to itself in certain scenarios involving many 'P' characters.","modified":"2026-04-11T18:45:31.592135Z","published":"2018-10-04T23:29:00.807Z","related":["SUSE-SU-2019:2650-1","SUSE-SU-2019:2779-1","SUSE-SU-2019:2780-1","openSUSE-SU-2019:2415-1","openSUSE-SU-2019:2432-1","openSUSE-SU-2024:10651-1"],"references":[{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00072.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00008.html"},{"type":"WEB","url":"https://usn.ubuntu.com/4326-1/"},{"type":"WEB","url":"https://usn.ubuntu.com/4336-1/"},{"type":"REPORT","url":"https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87335"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://sourceware.org/git/binutils-gdb.git","events":[{"introduced":"0"},{"last_affected":"af127c216949509e57ab2a28cc56c44e4e548813"}],"database_specific":{"source":"CPE_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"2.31"}],"cpe":"cpe:2.3:a:gnu:binutils:2.31:*:*:*:*:*:*:*"}}],"versions":["binutils-2_31","gdb-4_18-branchpoint","gdb-7.10-branchpoint","gdb-7.11-branchpoint","gdb-7.12-branchpoint","gdb-7.7-branchpoint","gdb-7.8-branchpoint","gdb-7.9-branchpoint","gdb-8.0-branchpoint","gdb-8.1-branchpoint","gdb_5_2-branchpoint","gdb_5_3-branchpoint","gdb_6_0-branchpoint","gdb_6_1-branchpoint","gdb_6_2-branchpoint","gdb_6_3-branchpoint","gdb_6_4-branchpoint","gdb_6_5-branchpoint","gdb_6_6-branchpoint","gdb_6_7-branchpoint","gdb_6_8-branchpoint","gdb_7_0-branchpoint","gdb_7_1-branchpoint","gdb_7_2-branchpoint","gdb_7_3-branchpoint","gdb_7_4-branchpoint","gdb_7_5-branchpoint","gdb_7_6-branchpoint","users/ARM/embedded-binutils-master-2016q4","users/ARM/embedded-binutils-master-2017q4","users/ARM/embedded-gdb-master-2017q4"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-17985.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}