Skip to content

CVE-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 crafted patch file. NOTE: this issue exi...

MediumCVSS 5.5 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known

Description

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 products

ProductAffected versionsFixed in
GNU patch <= 2.7.6 No fix listed
alpine/patch(Alpine:v3.11) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.12) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.13) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.14) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.15) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.16) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.17) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.18) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.19) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.20) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.21) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.22) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.23) < 2.7.6-r7 2.7.6-r7
alpine/patch(Alpine:v3.24) < 2.7.6-r7 2.7.6-r7
ubuntu/patch(Ubuntu:24.04) All versions No fix listed
ubuntu/patch(Ubuntu:22.04) All versions No fix listed

References