CVEfocus › CVE database › CVE-2018-6952

CVE-2018-6952

CVSS 7.5 HighEPSS 8.2% (higher than 95% of CVEs)Published 2018-02-13Updated 2024-08-05Assigner: mitre

A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.

What to do

Fixed builds are available from Alpine, Red Hat: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

19Fixed
3Fix pending
8Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04patchNot affected
vulnerable_code_not_present
Ubuntu 25.10patchWill not fix
The patch for this introduced CVE-2019-20633, but no targeted fix for CVE-2019-20633 exists as of 2026-11-06
UBUNTU-CVE-2018-6952
Ubuntu 24.04patchFix pendingUBUNTU-CVE-2018-6952
Ubuntu 22.04patchNot affected
vulnerable_code_not_present
Ubuntu 20.04patchWill not fix
The patch for this introduced CVE-2019-20633, but no targeted fix for CVE-2019-20633 exists as of 2026-11-06
UBUNTU-CVE-2018-6952
Ubuntu 18.04patchWill not fix
The patch for this introduced CVE-2019-20633, but no targeted fix for CVE-2019-20633 exists as of 2026-11-06
UBUNTU-CVE-2018-6952
Ubuntu 16.04patchWill not fix
The patch for this introduced CVE-2019-20633, but no targeted fix for CVE-2019-20633 exists as of 2026-11-06
UBUNTU-CVE-2018-6952
Ubuntu 14.04patchFix pendingUBUNTU-CVE-2018-6952
Debian 14patchWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-6952
Debian 13patchWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-6952
Debian 12patchWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2018-6952
Red Hat Enterprise Linux 8patchNot affected
Red Hat Enterprise Linux 7patchFixed0:2.7.1-11.el7RHSA-2019:2033
Red Hat Enterprise Linux 6patchFix pending
Fix deferred
Red Hat Enterprise Linux 5patchWill not fix
Will not fix
Alpine Linux 3.24patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.23patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.22patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.21patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.20patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.19patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.18patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.17patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.16patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.15patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.14patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.13patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.12patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.11patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.10patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.9patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.8patchFixed2.7.6-r4ALPINE-CVE-2018-6952
Alpine Linux 3.7patchFixed2.7.6-r0ALPINE-CVE-2018-6952

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.