CVE-2026-56289
Fixed in a distro release EPSS <1%CVSS 4.6
GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in diff) line offsets in unified-diff input. A specially crafted patch can specify an extremely large line number, causing the application to enter an effectively infinite processing loop while attempting to locate the requested position. This results in excessive CPU consumption and prevents the process from completing. An attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination. This issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9
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.2.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 |