cve.bz

CVE-2018-6951 NULL Pointer Dereference

7.5 highEPSS 8.4%Fix available

High (7.5). EPSS 8.4% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
8.4% (unchanged from 8.4% a week ago; 8.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-6951 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6951?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6951?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6951 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:patchthrough 2.7.6
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14patchno fix listedDEBIAN-CVE-2018-6951
Ubuntu14.04:LTSpatch2.7.1-4ubuntu2.4UBUNTU-CVE-2018-6951 USN-3624-1
Ubuntu16.04:LTSpatch2.7.5-1ubuntu0.16.04.1UBUNTU-CVE-2018-6951 USN-3624-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3patch2.7.5-8.5.1SUSE-SU-2018:1128-1
openSUSETumbleweedpatch2.7.6-3.43openSUSE-SU-2024:11151-1
Alpinev3.4, v3.5, v3.6 and 1 morepatch2.7.5-r2ALPINE-CVE-2018-6951
Alpinev3.8, v3.9, v3.10 and 14 morepatch2.7.6-r2ALPINE-CVE-2018-6951
Azure Linux2patch2.7.6-7AZL-6787
Azure Linux3patch2.7.6-9AZL-35103

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5patchNot affected
Red Hat Enterprise Linux 6patchNot affected
Red Hat Enterprise Linux 7patchNot affected
Red Hat Enterprise Linux 8patchNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6951.

References

Check your stackJSON