DescriptionA double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
patch (PTS)jessie2.7.5-1+deb8u1vulnerable
jessie (security)2.7.5-1+deb8u3vulnerable
stretch (security), stretch2.7.5-1+deb9u2vulnerable
buster, buster (security)2.7.6-3+deb10u1vulnerable
bullseye, sid2.7.6-6vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs

When fixing this issue make sure to not apply only the incomplete fix,
and opening CVE-2019-20633, cf.
Crash in CLI tool, no security impact

Search for package or bug name: Reporting problems