CVE-2018-18520
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.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: 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 | elfutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | elfutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | elfutils | Fixed | 0.170-0.4ubuntu0.1 | UBUNTU-CVE-2018-18520 |
| Ubuntu 16.04 | elfutils | Fixed | 0.165-3ubuntu1.2 | UBUNTU-CVE-2018-18520 |
| Ubuntu 14.04 | elfutils | Fix pending | 0.158-0ubuntu5.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-18520 |
| Debian 14 | elfutils | Fixed | 0.175-1 | DEBIAN-CVE-2018-18520 |
| Debian 13 | elfutils | Fixed | 0.175-1 | DEBIAN-CVE-2018-18520 |
| Debian 12 | elfutils | Fixed | 0.175-1 | DEBIAN-CVE-2018-18520 |
| Red Hat Enterprise Linux 8 | elfutils | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-default-yama-scope | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-devel-static | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-libelf | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-libelf-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-libelf-devel-static | Not affected | ||
| Red Hat Enterprise Linux 8 | elfutils-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | elfutils | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-default-yama-scope | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-devel | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-devel-static | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-libelf | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-libelf-devel | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-libelf-devel-static | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 7 | elfutils-libs | Fixed | 0:0.176-2.el7 | RHSA-2019:2197 |
| Red Hat Enterprise Linux 6 | elfutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-devel-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-libelf | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-libelf-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-libelf-devel-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | elfutils-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | elfutils | Will 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:
- https://usn.ubuntu.com/4012-1/ (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00052.html (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:2197 (vendor-advisory)
References
- https://lists.debian.org/debian-lts-announce/2019/02/msg00036.html
- https://sourceware.org/ml/elfutils-devel/2018-q4/msg00057.html
- https://sourceware.org/bugzilla/show_bug.cgi?id=23787
- https://usn.ubuntu.com/4012-1/
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00052.html
- https://access.redhat.com/errata/RHSA-2019:2197
- https://lists.debian.org/debian-lts-announce/2021/10/msg00030.html
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.