CVE-2026-56289
published medium CVSS 4.0 · 4.6Loop with Unreachable Exit Condition in GNU patch
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU | — | patch0 through 2.8.0 · Other versions: unaffected | Affected | Not stated | CERT-PL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | patch | Fixed | 2.8.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | patchx86_64 | Advisory build | 2.7.5-8.14.1 | SUSE-SU-2026:2922-1 |
| Alpine Linux | v3.24 | patch | Fixed | 2.8.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP7 | patchaarch64 | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-15-SP7 | patchppc64le | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | patchs390x | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-15-SP7 | patchx86_64 | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-16 | patchaarch64 | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchppc64le | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchs390x | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchx86_64 | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchaarch64 | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchppc64le | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchs390x | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchx86_64 | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchaarch64 | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchppc64le | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchs390x | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchx86_64 | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
Description
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.6 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU | patch | 0 through 2.8.0 (affected · semver)Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-835 CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
3Provider assertions
2CERT-PL · cna
Loop with Unreachable Exit Condition in GNU patch
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7589b132e57bc27f634a813e9bfa74c4816a2f7a74b03bb029699319aa085962
- Ingested
- 23 Sep 2026, 09:21:21 UTC
- Source record
- Official CVE record