CVE-2019-20633
published 2020-03-25CVE-2019-20633: 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…
PriorityP418medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EPSS
1.00%
58.8th percentile
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.
Affected
18 ranges
| 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-8_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_patch_2.7.6-7_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
vendor_msrc5.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-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.
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.
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
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-2019-20633 patch: double free in another_hunk function in pch.c [fedora-all]
bugzilla·2020-03-30·CVSS 5.5
CVE-2019-20633 [MEDIUM] CVE-2019-20633 patch: double free in another_hunk function in pch.c [fedora-all]
CVE-2019-20633 patch: double free in another_hunk function in pch.c [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 supported versi
2020-03-25
Published