CVEfocus › CVE database › CVE-2026-56288

CVE-2026-56288NULL Pointer Dereference in GNU patch

CVSS 4.6 MediumEPSS 0.2% (higher than 3% of CVEs)Published 2026-07-09Updated 2026-07-09Assigner: CERT-PL

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

CWE-476

What to do

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

Ubuntu has 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

1Fixed
8Fix pending
4Will not fix

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.10patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 26.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 25.10patchWill not fix
This is a crash in a command line tool with little security impact, marking priority as low
UBUNTU-CVE-2026-56288
Ubuntu 24.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 22.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 20.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 18.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 16.04patchFix pendingUBUNTU-CVE-2026-56288
Ubuntu 14.04patchFix pendingUBUNTU-CVE-2026-56288
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-2026-56288
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-2026-56288
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-2026-56288
Alpine Linux 3.24patchFixed2.8.1-r0ALPINE-CVE-2026-56288

What the vendor says

As published in the CVE record by CERT-PL, 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.