{"id":"UBUNTU-CVE-2018-18520","details":"An Invalid Memory Address Dereference exists in the function elf_end in libelf in elfutils through v0.174. Although eu-size is intended to support ar files inside ar files, handle_ar in size.c closes the outer ar file before handling all inner entries. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file.","modified":"2026-04-22T13:00:42.388682Z","published":"2018-10-19T00:00:00Z","related":["USN-4012-1","USN-6322-1"],"upstream":["CVE-2018-18520"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-18520"},{"type":"REPORT","url":"https://sourceware.org/ml/elfutils-devel/2018-q4/msg00057.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-18520"}],"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":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"elfutils","binary_version":"0.158-0ubuntu5.3+esm1"},{"binary_name":"libasm1","binary_version":"0.158-0ubuntu5.3+esm1"},{"binary_name":"libdw1","binary_version":"0.158-0ubuntu5.3+esm1"},{"binary_name":"libelf1","binary_version":"0.158-0ubuntu5.3+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18520.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":{"availability":"No subscription required","binaries":[{"binary_name":"elfutils","binary_version":"0.165-3ubuntu1.2"},{"binary_name":"libasm1","binary_version":"0.165-3ubuntu1.2"},{"binary_name":"libdw1","binary_version":"0.165-3ubuntu1.2"},{"binary_name":"libelf1","binary_version":"0.165-3ubuntu1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18520.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":{"availability":"No subscription required","binaries":[{"binary_name":"elfutils","binary_version":"0.170-0.4ubuntu0.1"},{"binary_name":"libasm1","binary_version":"0.170-0.4ubuntu0.1"},{"binary_name":"libdw1","binary_version":"0.170-0.4ubuntu0.1"},{"binary_name":"libelf1","binary_version":"0.170-0.4ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-18520.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}