CVE-2026-56288
Fixed in a distro release EPSS <1%CVSS 4.6
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
Products: gnu patch
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 12 | patch | no fix |
| Debian 13 | patch | no fix |
| Debian 14 | patch | no fix |
| Red Hat hummingbird 1 | patch | 0:2.8-4.3.hum1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | patch | 2.7.6-150000.5.12.1 |
| SUSE Linux Enterprise Server 16.0 | patch | 2.7.6-160000.4.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | patch | 2.7.5-8.14.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | patch | 2.7.6-160000.4.1 |
| SUSE Linux Micro 6.0 | patch | 2.7.6-4.1 |
| SUSE Linux Micro 6.1 | patch | 2.7.6-slfo.1.1_2.1 |
| SUSE Linux Micro 6.2 | patch | 2.7.6-160000.4.1 |
| Ubuntu 16.04 LTS | patch | no fix |
| Ubuntu 18.04 LTS | patch | no fix |
| Ubuntu 20.04 LTS | patch | no fix |
| Ubuntu 22.04 LTS | patch | no fix |
| Ubuntu 24.04 LTS | patch | no fix |
| Ubuntu 25.10 | patch | no fix |
| Ubuntu 26.04 LTS | patch | no fix |
| Ubuntu 26.10 | patch | no fix |
| Ubuntu Pro 14.04 LTS | patch | no fix |
| openSUSE Leap 16.0 | patch | 2.7.6-160000.4.1 |
| openSUSE Tumbleweed | patch | 2.8-3.1 |