{"id":"UBUNTU-CVE-2018-18521","details":"Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.","modified":"2026-02-04T03:08:47.507417Z","published":"2018-10-19T00:00:00Z","related":["USN-4012-1","USN-6322-1"],"upstream":["CVE-2018-18521"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-18521"},{"type":"REPORT","url":"https://sourceware.org/ml/elfutils-devel/2018-q4/msg00055.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4012-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6322-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-18521"}],"affected":[{"package":{"name":"elfutils","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/elfutils@0.158-0ubuntu5.3+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.158-0ubuntu5.3+esm1"}]}],"versions":["0.157-1ubuntu1","0.158-0ubuntu3","0.158-0ubuntu4","0.158-0ubuntu5","0.158-0ubuntu5.1","0.158-0ubuntu5.2","0.158-0ubuntu5.3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"elfutils"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libasm-dev"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libasm1"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libdw-dev"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libdw1"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libelf-dev"},{"binary_version":"0.158-0ubuntu5.3+esm1","binary_name":"libelf1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18521.json"}},{"package":{"name":"elfutils","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/elfutils@0.165-3ubuntu1.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.165-3ubuntu1.2"}]}],"versions":["0.163-4ubuntu1","0.163-5.1","0.164-1","0.165-3","0.165-3ubuntu1","0.165-3ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.165-3ubuntu1.2","binary_name":"elfutils"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libasm-dev"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libasm1"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libdw-dev"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libdw1"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libelf-dev"},{"binary_version":"0.165-3ubuntu1.2","binary_name":"libelf1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18521.json"}},{"package":{"name":"elfutils","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/elfutils@0.170-0.4ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.170-0.4ubuntu0.1"}]}],"versions":["0.170-0.1","0.170-0.2","0.170-0.3","0.170-0.4"],"ecosystem_specific":{"binaries":[{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"elfutils"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libasm-dev"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libasm1"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libdw-dev"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libdw1"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libelf-dev"},{"binary_version":"0.170-0.4ubuntu0.1","binary_name":"libelf1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18521.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}