
CVE catalog
CVE-2026-56289
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 e
- Severity
- Medium · CVSS 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.11% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | patch | sid | 2.8.1-1 | vulnerable |
| Debian | patch | forky | 2.8.1-1 | vulnerable |
| Debian | patch | trixie | 2.8-2 | vulnerable |
| Debian | patch | bookworm | 2.7.6-7 | vulnerable |
| Cpe | patch | Not reported | Not reported | vulnerable |
| Cpe | patch | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | patch | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [patch]Affected
Details (2)
2.7.6-7· amd64 · bookwormAffected
nvd · patch · debian · bookworm; nvd · patch · debian · 12
2.7.6-7· arm64 · bookwormAffected
nvd · patch · debian · bookworm; nvd · patch · debian · 12
[Debian 13 (Trixie)]
- [patch]Affected
Details (2)
2.8-2· amd64 · trixieAffected
nvd · patch · debian · 13
2.8-2· arm64 · trixieAffected
nvd · patch · debian · 13
Observed:
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=faba04ef4f2b410257f76c1b9dc85e350929c4b9]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_23210-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-56289]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-56289]
- [https://security-tracker.debian.org/tracker/CVE-2026-56289]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-56289.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2274.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]