cve.bz

CVE-2026-56288 gnu patch: NULL Pointer Dereference

4.6 mediumEPSS 0.1%Fix available

Medium (4.6) in gnu patch. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313

Severity

CVSS 4.0

4.6 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-56288 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-56288?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-56288?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-2026-56288 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.

Badge for a README or a site

CVE-2026-56288

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-56288](https://cve.bz/cve/badge/CVE-2026-56288.svg)](https://cve.bz/cve/CVE-2026-56288)

HTML:

<a href="https://cve.bz/cve/CVE-2026-56288"><img src="https://cve.bz/cve/badge/CVE-2026-56288.svg" alt="CVE-2026-56288"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU patchthrough 2.8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14patchno fix listedDEBIAN-CVE-2026-56288
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 6 morepatchno fix listedUBUNTU-CVE-2026-56288
Red Hathummingbird:1patch0:2.8-4.3.hum1RHSA-2026:38019
SUSELinux Enterprise Module for Basesystem 15 SP7patch2.7.6-150000.5.12.1SUSE-SU-2026:3161-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0patch2.7.6-160000.4.1SUSE-SU-2026:22651-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5patch2.7.5-8.14.1SUSE-SU-2026:2922-1
SUSELinux Micro 6.0patch2.7.6-4.1SUSE-SU-2026:23210-1
SUSELinux Micro 6.1patch2.7.6-slfo.1.1_2.1SUSE-SU-2026:22905-1
SUSELinux Micro 6.2patch2.7.6-160000.4.1SUSE-SU-2026:22604-1
openSUSELeap 16.0patch2.7.6-160000.4.1openSUSE-SU-2026:21332-1
openSUSETumbleweedpatch2.8-3.1openSUSE-SU-2026:11260-1
Alpinev3.24patch2.8.1-r0ALPINE-CVE-2026-56288
Azure Linux3patch2.7.6-10AZL-92154
Alpaquita23patch2.7.6-r10BELL-CVE-2026-56288
Alpaquita25, streampatch2.8.1-r0BELL-CVE-2026-56288
BellSoft Hardened Containers23patch2.7.6-r10BELL-CVE-2026-56288
BellSoft Hardened Containers25, streampatch2.8.1-r0BELL-CVE-2026-56288

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A denial-of-service vulnerability of moderate severity was found in GNU patch, which is shipped in Red Hat Hardened Images. When patch processes a specially crafted unified-diff patch file, improper handling of consecutive end-of-file newline markers can corrupt internal hunk data structures, causing a NULL pointer to be passed to fwrite() during patch processing and the utility to crash. An attacker who supplies a malicious patch file that a user then applies can trigger this crash, disrupting patch processing on the affected system; the flaw has no impact on confidentiality or integrity, and exploitation requires local processing of an attacker-controlled patch file with user interaction. Red Hat Product Security rated this flaw Moderate impact (CVSS 3.1 score 5.0), slightly lower than the NIST score of 5.5 because applying the crafted patch file requires user interaction. The Red Hat Hardened Images product is affected by this flaw, and a fix is being pursued through the responsible upstream and product channels.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagespatch-main-2.8-4.3.hum1Fixed 2026-07-10RHSA-2026:38019

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-2026-56288.

References

Check your stackJSON