CVE-2018-1125 Memory corruption in procps-ng, procps
A stack buffer overflow in pgrep allows attackers to cause a crash or potentially execute code, primarily affecting Linux system utilities.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-1125?
CVE-2018-1125 is a medium-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 23 May 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
procps-ng before version 3.3.15 is vulnerable to a stack buffer overflow in pgrep. This vulnerability is mitigated by FORTIFY, as it involves strncat() to a stack-allocated string. When pgrep is compiled with FORTIFY (as on Red Hat Enterprise Linux and Fedora), the impact is limited to a crash.
Which versions are affected by CVE-2018-1125?
It affects 4 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Opensuse Leap, Procps-Ng Project Procps-Ng.
How do I fix CVE-2018-1125?
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-1125 being exploited?
There is no known exploitation of CVE-2018-1125 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2018-1125, GHSA-jpw5-97m6-c8m2, UBUNTU-CVE-2018-1125.