Skip to content
Fencer Intel
high 7.5

CVE-2018-6952 json

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

published 2018-02-13 8 y ago modified 2026-07-25 3 mo ago also EUVD-2018-18696 , JLSEC-2026-15

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
8.2%
EPSS 8.2% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known

Summary

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

Patch / fix

  • julia patch_jll 2.8.0+0
  • patch RHEL 7 2.7.1-11.el7

red hat advisories RHSA-2019:2033

  • patch SLES for SAP 12 SP5, SLES 12 SP5 2.7.5-8.8.1
  • patch SLE Module for Basesystem 15 SP4, SLE Module for Basesystem 15 SP3, openSUSE Leap 15.4 +1 more 2.7.6-150000.5.3.1

suse advisories SUSE-SU-2022:1932-1SUSE-SU-2022:1925-1

  • patch openSUSE Tumbleweed 2.7.6-5.1

opensuse advisories openSUSE-SU-2024:12060-1

  • patch Alpine 3.24, Alpine 3.23, Alpine 3.22 +14 more 2.7.6-r4
  • patch Alpine 3.7 2.7.6-r0

alpine advisories ALPINE-CVE-2018-6952

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • patch Azure Linux 3.0 2.7.6-9
  • patch CBL-Mariner 2.0 2.7.6-7

azure linux advisories AZL-35104AZL-6788

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • patch Arch Linux 2.7.6-3
  • patch Arch Linux 2.7.6-7

arch linux advisories AVG-619AVG-808

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-6952 updated cvss 3.3

patch: Double free of memory in pch.c:another_hunk() causes a crash

  • Red Hat Enterprise Linux 5 patch
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 6 patch
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux Client (v. 7) patch 2.7.1-11.el7 Red Hat Enterprise Linux ComputeNode (v. 7) patch 2.7.1-11.el7 Red Hat Enterprise Linux Server (v. 7) patch 2.7.1-11.el7 Red Hat Enterprise Linux Workstation (v. 7) patch 2.7.1-11.el7
    fixed: vendor fix RHSA-2019:2033
  • Red Hat Enterprise Linux 8 patch
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

8.19% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia patch_jll
<2.8.0+0
2.8.0+0

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.