CVE-2018-6951
published 2018-02-13CVE-2018-6951: An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service…
PriorityP339high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
8.58%
94.5th percentile
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
Affected
24 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | patch | — | — |
| gnu | patch | <= 2.7.6 | — |
| gnu | patch | >= 0 < 2.7.1-4ubuntu2.4 | 2.7.1-4ubuntu2.4 |
| gnu | patch | >= 0 < 2.7.5-1ubuntu0.16.04.1 | 2.7.5-1ubuntu0.16.04.1 |
| msrc | azl3_patch_2.7.6-9_on_azure_linux_3.0 | — | — |
| msrc | cbl2_patch_2.7.6-7_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_patch_2.7.6-7_on_cbl_mariner_1.0 | — | — |
| msrc | patch-2.7.6-7.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | patch-2.7.6-7.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | patch-2.7.6-7.cm2.aarch64.rpm_on_cbl_mariner_2.0_arm | — | — |
| msrc | patch-2.7.6-7.cm2.x86_64.rpm_on_cbl_mariner_2.0_x64 | — | — |
| msrc | patch-2.7.6-9.azl3.aarch64.rpm_on_azure_linux_3.0_arm | — | — |
| msrc | patch-2.7.6-9.azl3.x86_64.rpm_on_azure_linux_3.0_x64 | — | — |
| msrc | patch-debuginfo-2.7.6-7.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | patch-debuginfo-2.7.6-7.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | patch-debuginfo-2.7.6-7.cm2.aarch64.rpm_on_cbl_mariner_2.0_arm | — | — |
| msrc | patch-debuginfo-2.7.6-7.cm2.x86_64.rpm_on_cbl_mariner_2.0_x64 | — | — |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-jx75-987w-4cqc: An issue was discovered in GNU patch through 2
ghsa_unreviewed·2022-05-14
CVE-2018-6951 [HIGH] CWE-476 GHSA-jx75-987w-4cqc: An issue was discovered in GNU patch through 2
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
OSV
patch vulnerabilities
osv·2018-04-10·CVSS 5.5
CVE-2016-10713 [MEDIUM] patch vulnerabilities
patch vulnerabilities
It was discovered that Patch incorrectly handled certain files. An attacker
could possibly use this to cause a denial of service. (CVE-2016-10713)
It was discovered that Patch incorrectly handled certain input validation. An
attacker could possibly use this to execute arbitrary code. (CVE-2018-1000156)
It was discovered that Patch incorrectly handled certain inputs. An attacker
could possibly use this to cause a denial of service. (CVE-2018-6951)
OSV
CVE-2018-6951: An issue was discovered in GNU patch through 2
osv·2018-02-13·CVSS 7.5
CVE-2018-6951 [HIGH] CVE-2018-6951: An issue was discovered in GNU patch through 2
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
Ubuntu
Patch vulnerabilities
vendor_ubuntu·2018-04-10·CVSS 5.5
CVE-2016-10713 [MEDIUM] Patch vulnerabilities
Title: Patch vulnerabilities
Summary: Several security issues were fixed in Patch.
It was discovered that Patch incorrectly handled certain files. An attacker
could possibly use this to cause a denial of service. (CVE-2016-10713)
It was discovered that Patch incorrectly handled certain input validation. An
attacker could possibly use this to execute arbitrary code. (CVE-2018-1000156)
It was discovered that Patch incorrectly handled certain inputs. An attacker
could possibly use this to cause a denial of service. (CVE-2018-6951)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault associated with a NULL pointer dereference leading to a denial of service in the intuit_diff_type function in pch.c ak
vendor_msrc·2018-02-13·CVSS 7.5
CVE-2018-6951 [HIGH] CWE-476 An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault associated with a NULL pointer dereference leading to a denial of service in the intuit_diff_type function in pch.c ak
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault associated with a NULL pointer dereference leading to a denial of service in the intuit_diff_type function in pch.c aka a "mangled rename" issue.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is ide
Red Hat
patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
vendor_redhat·2018-02-03·CVSS 7.5
CVE-2018-6951 [HIGH] CWE-476 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
A NULL pointer dereference flaw was found in the way patch processed patch files. An attacker could potentially use this flaw to crash patch by tricking it into processing crafted patches.
Package: patch (Red Hat Enterprise Linux 5) - Not affected
Package: patch (Red Hat Enterprise Linux 6) - Not affected
Package: patch (Red Hat Enterprise Linux 7) - Not affected
Package: patch (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-6951: patch - An issue was discovered in GNU patch through 2.7.6. There is a segmentation faul...
vendor_debian·2018·CVSS 7.5
CVE-2018-6951 [HIGH] CVE-2018-6951: patch - An issue was discovered in GNU patch through 2.7.6. There is a segmentation faul...
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
Scope: local
bookworm: open
bullseye: open
forky: open
sid: open
trixie: open
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash [fedora-all]
bugzilla·2018-02-14·CVSS 7.5
CVE-2018-6951 [HIGH] CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash [fedora-all]
CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mul
Bugzilla
CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
bugzilla·2018-02-14·CVSS 7.5
CVE-2018-6951 [HIGH] CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
CVE-2018-6951 patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
GNU patch through version 2.7.6 in pch.c:intuit_diff_type() is vulnerable to a crash caused by malicious patch file.
Upstream Issue:
https://savannah.gnu.org/bugs/index.php?53132
Upstream Patch:
https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6a
Discussion:
Created patch tracking bugs for this issue:
Affects: fedora-all [bug 1545047]
http://www.securityfocus.com/bid/103044https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6ahttps://savannah.gnu.org/bugs/index.php?53132https://security.gentoo.org/glsa/201904-17https://usn.ubuntu.com/3624-1/http://www.securityfocus.com/bid/103044https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6ahttps://savannah.gnu.org/bugs/index.php?53132https://security.gentoo.org/glsa/201904-17https://usn.ubuntu.com/3624-1/
2018-02-13
Published