CVE-2026-56288NULL Pointer Dereference in GNU patch
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
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 26.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 25.10 | patch | Will 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.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 22.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 20.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 18.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 16.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Ubuntu 14.04 | patch | Fix pending | UBUNTU-CVE-2026-56288 | |
| Debian 14 | patch | Will 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 13 | patch | Will 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 12 | patch | Will 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.24 | patch | Fixed | 2.8.1-r0 | ALPINE-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.
- GNU patch: affected: up to 2.8.0
Vendor advisories:
References
- https://cert.pl/en/posts/2026/07/CVE-2026-56288
- https://cgit.git.savannah.gnu.org/cgit/patch.git/
- https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313
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.