CVE-2018-1000156
Description
GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.
How to fix
- usn.ubuntu.com/3624-2/
- usn.ubuntu.com/3624-1/
- access.redhat.com/errata/RHSA-2018:2091
- access.redhat.com/errata/RHSA-2018:2094
- access.redhat.com/errata/RHSA-2018:2093
- access.redhat.com/errata/RHSA-2018:1200
- access.redhat.com/errata/RHSA-2018:2095
- access.redhat.com/errata/RHSA-2018:1199
- access.redhat.com/errata/RHSA-2018:2092
- access.redhat.com/errata/RHSA-2018:2097
- access.redhat.com/errata/RHSA-2018:2096
- security.gentoo.org/glsa/201904-17
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gnu patch | 2.7.6 | — |
| canonical ubuntu_linux | 12.04, 14.04, 16.04, 17.10 | — |
| debian debian_linux | 7.0 | — |
| redhat enterprise_linux_desktop | 6.0, 7.0 | — |
| redhat enterprise_linux_server | 6.0, 7.0 | — |
| redhat enterprise_linux_server_aus | 6.4, 6.5, 6.6, 7.2, 7.3, 7.4, 7.6 | — |
| redhat enterprise_linux_server_eus | 6.7, 7.3, 7.4, 7.5, 7.6 | — |
| redhat enterprise_linux_server_tus | 6.6, 7.2, 7.3, 7.4, 7.6 | — |
| redhat enterprise_linux_workstation | 6.0, 7.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.