CVE-2026-56289
CVE-2026-56289 · Loop with Unreachable Exit Condition in GNU patch
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
CVSS 4.6 · Medium · EPSS 0.1%
- Published
- Updated
Stack: system
Affected products and versions
patch
- Versions
- ≥ 0, ≤ 2.8.0: Affected (semver)
No fix published
patch Debian:12
- Versions
- 2.7.6-7
- 2.8-1
- 2.8-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Debian:13
- Versions
- 2.8-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Debian:14
- Versions
- 2.8-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:Pro:14.04:LTS
- Versions
- 2.7.1-3
- 2.7.1-4
- 2.7.1-4ubuntu1
- 2.7.1-4ubuntu2
- 2.7.1-4ubuntu2.3
- 2.7.1-4ubuntu2.4
- 2.7.1-4ubuntu2.4+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:16.04:LTS
- Versions
- 2.7.5-1
- 2.7.5-1ubuntu0.16.04.1
- 2.7.5-1ubuntu0.16.04.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:18.04:LTS
- Versions
- 2.7.5-1build1
- 2.7.6-1
- 2.7.6-2ubuntu1
- 2.7.6-2ubuntu1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:20.04:LTS
- Versions
- 2.7.6-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:22.04:LTS
- Versions
- 2.7.6-7
- 2.7.6-7build1
- 2.7.6-7build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:24.04:LTS
- Versions
- 2.7.6-7build2
- 2.7.6-7build3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:25.10
- Versions
- 2.7.6-7build3
- 2.8-1
- 2.8-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:26.10
- Versions
- 2.8-2build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
patch Ubuntu:26.04:LTS
- Versions
- 2.8-2
- 2.8-2build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published