CVE-2018-6952
published 2018-02-13CVE-2018-6952: A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
PriorityP341high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
8.41%
94.3th percentile
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
Affected
33 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | patch | — | — |
| gnu | patch | <= 2.7.6 | — |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| gnu | patch | >= 0 < 2.7.6-r7 | 2.7.6-r7 |
| 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 | cbl2_patch_2.7.6-8_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 | — | — |
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
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-w88p-xvmw-fxgg: GNU patch through 2
ghsa_unreviewed·2022-05-24·CVSS 7.5
CVE-2019-20633 [HIGH] CWE-415 GHSA-w88p-xvmw-fxgg: GNU patch through 2
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
GHSA
GHSA-ffqc-f68h-qq8w: A double free exists in the another_hunk function in pch
ghsa_unreviewed·2022-05-14
CVE-2018-6952 [HIGH] CWE-415 GHSA-ffqc-f68h-qq8w: A double free exists in the another_hunk function in pch
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
OSV
CVE-2019-20633: GNU patch through 2
osv·2020-03-25·CVSS 7.5
CVE-2019-20633 [HIGH] CVE-2019-20633: GNU patch through 2
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
OSV
CVE-2018-6952: A double free exists in the another_hunk function in pch
osv·2018-02-13·CVSS 7.5
CVE-2018-6952 [HIGH] CVE-2018-6952: A double free exists in the another_hunk function in pch
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
Microsoft
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exi
vendor_msrc·2020-03-10·CVSS 5.5
CVE-2019-20633 [HIGH] CWE-415 GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exi
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
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 ad
Red Hat
patch: double free in another_hunk function in pch.c
vendor_redhat·2019-07-28·CVSS 7.5
CVE-2019-20633 [HIGH] CWE-416 patch: double free in another_hunk function in pch.c
patch: double free in another_hunk function in pch.c
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
A vulnerability was found in GNU Patch due to a double-free issue in the another_hunk function within pch.c, where an attacker could exploit this flaw to cause memory corruption, leading the application to crash and resulting in a denial of service.
Statement: This vulnerability was rated as LOW severity because it causes the application to crash, it doesn’t compromise system security, it can disrupt the application's normal function.
Package: patch (Red Hat Enterprise Linux 5) - Out of
Debian
CVE-2019-20633: patch - GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability...
vendor_debian·2019·CVSS 7.5
CVE-2019-20633 [HIGH] CVE-2019-20633: patch - GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability...
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
Microsoft
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
vendor_msrc·2018-02-13·CVSS 7.5
CVE-2018-6952 [HIGH] CWE-415 A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
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 identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Action Required: Yes
Remediation: CBL-Mariner Rel
Red Hat
patch: Double free of memory in pch.c:another_hunk() causes a crash
vendor_redhat·2018-02-03·CVSS 7.5
CVE-2018-6952 [HIGH] CWE-416 patch: Double free of memory in pch.c:another_hunk() causes a crash
patch: Double free of memory in pch.c:another_hunk() causes a crash
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
A double-free flaw was found in the way the patch utility processed patch files. An attacker could potentially use this flaw to crash the patch utility by tricking it into processing crafted patches.
Package: patch (Red Hat Enterprise Linux 5) - Will not fix
Package: patch (Red Hat Enterprise Linux 6) - Fix deferred
Package: patch (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-6952: patch - A double free exists in the another_hunk function in pch.c in GNU patch through ...
vendor_debian·2018·CVSS 7.5
CVE-2018-6952 [HIGH] CVE-2018-6952: patch - A double free exists in the another_hunk function in pch.c in GNU patch through ...
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
Scope: local
bookworm: open
bullseye: open
forky: open
sid: open
trixie: open
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-20633 patch: double free in another_hunk function in pch.c
bugzilla·2020-03-30·CVSS 7.5
CVE-2019-20633 [HIGH] CVE-2019-20633 patch: double free in another_hunk function in pch.c
CVE-2019-20633 patch: double free in another_hunk function in pch.c
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
Reference:
https://savannah.gnu.org/bugs/index.php?56683
Discussion:
Created patch tracking bugs for this issue:
Affects: fedora-all [bug 1818938]
Bugzilla
CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() causes a crash
bugzilla·2018-02-14·CVSS 7.5
CVE-2018-6952 [HIGH] CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() causes a crash
CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() causes a crash
GNU patch through version 2.7.6 is vulnerable to a double freeing of memory when supplied a crafted patch file leading to a crash.
Upstream Issue:
https://savannah.gnu.org/bugs/index.php?53133
Discussion:
Created patch tracking bugs for this issue:
Affects: fedora-all [bug 1545054]
---
This issue has been addressed in the following products:
Red Hat Enterprise Linux 7
Via RHSA-2019:2033 https://access.redhat.com/errata/RHSA-2019:2033
---
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):
https://access.redhat.com/security/cve/cve-2018-6952
Bugzilla
CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() causes a crash [fedora-all]
bugzilla·2018-02-14·CVSS 7.5
CVE-2018-6952 [HIGH] CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() causes a crash [fedora-all]
CVE-2018-6952 patch: Double free of memory in pch.c:another_hunk() 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 multiple s
arXiv
Binary-level Directed Fuzzing for Use-After-Free Vulnerabilities
arxiv_fulltext·2020-08-17
Binary-level Directed Fuzzing for Use-After-Free Vulnerabilities
-2emBinary-level Directed Fuzzing for Use-After-Free Vulnerabilities
## Abstract
Directed fuzzing focuses on automatically testing specific parts of the code by taking advantage of additional information such as (partial) bug stack trace, patches
or risky operations. Key applications include bug reproduction, patch testing and static analysis report verification. Although directed fuzzing has received
a lot of attention recently,
hard-to-detect vulnerabilities such as Use-After-Free ( ) are still not well
addressed,
especially at the binary level.
We propose , the first (binary-level) directed greybox fuzzer dedicated to
\ bugs.
The technique features a fuzzing engine tailored to \ specifics, a lightweight code instrumentation and an efficient bug triage step.
Experimental evaluation f
http://www.securityfocus.com/bid/103047https://access.redhat.com/errata/RHSA-2019:2033https://savannah.gnu.org/bugs/index.php?53133https://security.gentoo.org/glsa/201904-17http://www.securityfocus.com/bid/103047https://access.redhat.com/errata/RHSA-2019:2033https://savannah.gnu.org/bugs/index.php?53133https://security.gentoo.org/glsa/201904-17
2018-02-13
Published