CVE-2018-19931 Memory corruption in n/a
A heap-based buffer overflow in the BFD library allows attackers to execute arbitrary code or cause denial of service via crafted ELF files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-19931?
CVE-2018-19931 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 7 Dec 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
An issue was discovered in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils through 2.31. There is a heap-based buffer overflow in bfd_elf32_swap_phdr_in in elfcode.h because the number of program headers is not restricted.
Weakness: CWE-787
Which versions are affected by CVE-2018-19931?
It affects 3 products.
Products include Canonical Ubuntu Linux, Gnu Binutils, Netapp Vasa Provider.
How do I fix CVE-2018-19931?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2018-19931 being exploited?
There is no known exploitation of CVE-2018-19931 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2018-19931, CLEANSTART-2025-JG55495, DEBIAN-CVE-2018-19931, GHSA-7w52-j2x8-qcp8, UBUNTU-CVE-2018-19931.